Put <stdbool.h> into internal.h so it is available everywhere

Remove the <stdbool.h> header from all source files / headers
and just put it into internal.h

* src/internal.h: Add <stdbool.h>
This commit is contained in:
Daniel P. Berrange 2011-02-23 11:37:03 +00:00
parent 9fc4b6a606
commit 35416720c2
40 changed files with 1 additions and 45 deletions

View File

@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include "dispatch.h"
#include "remote.h"

View File

@ -24,8 +24,6 @@
#ifndef __VIR_CAPABILITIES_H
# define __VIR_CAPABILITIES_H
# include <stdbool.h>
# include "internal.h"
# include "util.h"
# include "buf.h"

View File

@ -28,7 +28,6 @@
# include <stdint.h>
# include <stddef.h>
# include <stdbool.h>
# include "internal.h"

View File

@ -27,7 +27,6 @@
# include "buf.h"
# include "util.h"
# include <stdbool.h>
# include <libxml/tree.h>
enum virStorageEncryptionSecretType {

View File

@ -7,7 +7,6 @@
# define __VIR_DRIVER_H__
# include "config.h"
# include <stdbool.h>
# include <libxml/uri.h>

View File

@ -1,4 +1,3 @@
/*
* esx_util.h: utility functions for the VMware ESX driver
*
@ -23,7 +22,6 @@
#ifndef __ESX_UTIL_H__
# define __ESX_UTIL_H__
# include <stdbool.h>
# include <libxml/uri.h>
# include "internal.h"

View File

@ -24,7 +24,6 @@
# define __VIR_FDSTREAM_H_
# include "internal.h"
# include <stdbool.h>
int virFDStreamOpen(virStreamPtr st,
int fd);

View File

@ -8,6 +8,7 @@
# include <errno.h>
# include <limits.h>
# include <verify.h>
# include <stdbool.h>
# if STATIC_ANALYSIS
# undef NDEBUG /* Don't let a prior NDEBUG definition cause trouble. */

View File

@ -27,7 +27,6 @@
#include <fcntl.h>
#include <sched.h>
#include <sys/utsname.h>
#include <stdbool.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -13,7 +13,6 @@
#include <config.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>

View File

@ -23,7 +23,6 @@
#include <config.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

View File

@ -25,7 +25,6 @@
#include <fcntl.h>
#include <sched.h>
#include <sys/utsname.h>
#include <stdbool.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -25,7 +25,6 @@
# define __QEMUD_CONF_H
# include <config.h>
# include <stdbool.h>
# include "ebtables.h"
# include "internal.h"

View File

@ -29,7 +29,6 @@
#include <dirent.h>
#include <limits.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

View File

@ -24,8 +24,6 @@
#ifndef __QEMU_HOTPLUG_H__
# define __QEMU_HOTPLUG_H__
# include <stdbool.h>
# include "qemu_conf.h"
# include "domain_conf.h"

View File

@ -24,7 +24,6 @@
#include <dirent.h>
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -23,7 +23,6 @@
#include <errno.h>
#include <unistd.h>
#include <wait.h>
#include <stdbool.h>
#include "internal.h"

View File

@ -24,7 +24,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdbool.h>
#include <sys/utsname.h>
#include <locale.h>

View File

@ -25,7 +25,6 @@
# define __VIR_STORAGE_BACKEND_H__
# include <stdint.h>
# include <stdbool.h>
# include "internal.h"
# include "storage_conf.h"

View File

@ -26,7 +26,6 @@
#include <sys/statvfs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdbool.h>
#include <stdio.h>
#include <dirent.h>
#include <errno.h>

View File

@ -25,7 +25,6 @@
# include "internal.h"
# include <stdbool.h>
# include <sys/types.h>

View File

@ -20,7 +20,6 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <libgen.h>

View File

@ -23,7 +23,6 @@
#include <poll.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/wait.h>

View File

@ -26,7 +26,6 @@
#ifndef __VIR_FILES_H_
# define __VIR_FILES_H_
# include <stdbool.h>
# include <stdio.h>
# include "internal.h"

View File

@ -22,7 +22,6 @@
#include <config.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include "virterror_internal.h"

View File

@ -19,7 +19,6 @@
# include <sys/un.h>
# endif
# include <netdb.h>
# include <stdbool.h>
# include <netinet/in.h>
typedef struct {

View File

@ -25,7 +25,6 @@
# define __VIR_STORAGE_FILE_H__
# include "util.h"
# include <stdbool.h>
enum virStorageFileFormat {
VIR_STORAGE_FILE_AUTO_SAFE = -2,

View File

@ -25,8 +25,6 @@
#include <config.h>
#include <stdbool.h>
#include "threadpool.h"
#include "memory.h"
#include "threads.h"

View File

@ -22,8 +22,6 @@
#ifndef __THREADS_H_
# define __THREADS_H_
# include <stdbool.h>
# include "internal.h"
typedef struct virMutex virMutex;

View File

@ -31,7 +31,6 @@
# include <sys/select.h>
# include <sys/types.h>
# include <stdarg.h>
# include <stdbool.h>
# ifndef MIN
# define MIN(a, b) ((a) < (b) ? (a) : (b))

View File

@ -24,7 +24,6 @@
# define __LIBVIRT_AUDIT_H__
# include "internal.h"
# include <stdbool.h>
enum virAuditRecordType {
VIR_AUDIT_RECORD_MACHINE_CONTROL,

View File

@ -34,7 +34,6 @@
#include <stdlib.h>
#include <dlfcn.h>
#include <stdbool.h>
#include "vbox_XPCOMCGlue.h"
#include "internal.h"

View File

@ -35,7 +35,6 @@
#include <config.h>
#include <sys/utsname.h>
#include <stdbool.h>
#include <unistd.h>
#include "internal.h"

View File

@ -23,8 +23,6 @@
#ifndef __VIR_VMX_H__
# define __VIR_VMX_H__
# include <stdbool.h>
# include "internal.h"
# include "conf.h"
# include "domain_conf.h"

View File

@ -21,7 +21,6 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <stdarg.h>
#include <netinet/in.h>

View File

@ -18,7 +18,6 @@
# include <sys/types.h>
# include <stdint.h>
# include <stdbool.h>
# include <libxml/uri.h>
# include "internal.h"

View File

@ -4,7 +4,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <sys/types.h>
#include <fcntl.h>

View File

@ -4,7 +4,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <sys/types.h>
#include <fcntl.h>

View File

@ -4,7 +4,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <sys/types.h>
#include <fcntl.h>

View File

@ -34,7 +34,6 @@
# include <errno.h>
# include <unistd.h>
# include <signal.h>
# include <stdbool.h>
# include "internal.h"
# include "console.h"