]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Put <stdbool.h> into internal.h so it is available everywhere
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Feb 2011 11:37:03 +0000 (11:37 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 24 Feb 2011 12:04:06 +0000 (12:04 +0000)
Remove the <stdbool.h> header from all source files / headers
and just put it into internal.h

* src/internal.h: Add <stdbool.h>

40 files changed:
daemon/dispatch.c
src/conf/capabilities.h
src/conf/nwfilter_conf.h
src/conf/storage_encryption_conf.h
src/driver.h
src/esx/esx_util.h
src/fdstream.h
src/internal.h
src/lxc/lxc_driver.c
src/lxc/veth.c
src/nodeinfo.c
src/opennebula/one_driver.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.h
src/secret/secret_driver.c
src/security/security_apparmor.c
src/security/virt-aa-helper.c
src/storage/storage_backend.h
src/storage/storage_backend_fs.c
src/util/bitmap.h
src/util/cgroup.c
src/util/command.c
src/util/files.h
src/util/hash.c
src/util/network.h
src/util/storage_file.h
src/util/threadpool.c
src/util/threads.h
src/util/util.h
src/util/virtaudit.h
src/vbox/vbox_XPCOMCGlue.c
src/vbox/vbox_tmpl.c
src/vmx/vmx.h
src/xen/xend_internal.c
src/xen/xend_internal.h
tests/nwfilterxml2xmltest.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvtest.c
tools/console.c

index 3397a003b7b4441cbe073655afbd3afdf96577ac..dc3b48ace883129c68c4ebe53b08dc1c03bd177a 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <stdbool.h>
 
 #include "dispatch.h"
 #include "remote.h"
index 759265d27aca0ca242c0e3bc7e6a98cc211c6d92..96bf0a25c841171b364fa6bb47824ff48c6a9342 100644 (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"
index 5db465890abbeaf9ec4d231855adaa387be1448b..40da8c37c1f16d116ea9acd00ce59220ec73ea20 100644 (file)
@@ -28,7 +28,6 @@
 
 # include <stdint.h>
 # include <stddef.h>
-# include <stdbool.h>
 
 # include "internal.h"
 
index c722cc698d6572e3752af1c040589329bb458c83..fa5f3cbf0a7529c951393eba2d5ac51b8f573c4e 100644 (file)
@@ -27,7 +27,6 @@
 # include "buf.h"
 # include "util.h"
 
-# include <stdbool.h>
 # include <libxml/tree.h>
 
 enum virStorageEncryptionSecretType {
index 745100416bccfbd602a9b5795423905a071dd1f5..c65a4b99469790d69bd56d89c79888bab3573808 100644 (file)
@@ -7,7 +7,6 @@
 # define __VIR_DRIVER_H__
 
 # include "config.h"
-# include <stdbool.h>
 
 # include <libxml/uri.h>
 
index 4cbf9b73b41cad9fd656aa40cf4dcbc08310fe84..d00e28aa2bc42f0a865107ffe0d21711dddb3748 100644 (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"
index f8d22d5900dea691d7a1da3753dabfe98474df2b..53cbaa73d27d38b3f3a6650766c8fdac37332192 100644 (file)
@@ -24,7 +24,6 @@
 # define __VIR_FDSTREAM_H_
 
 # include "internal.h"
-# include <stdbool.h>
 
 int virFDStreamOpen(virStreamPtr st,
                     int fd);
index e263684839b47ad73fcd2794913e320a1d33b5f9..be9780171b476c3a74cfc7e22acaba2d06d9c4bc 100644 (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.  */
index a17b0b682b9a65c330bf0c3eebe760a3b90002f9..70e74d5ac8ced6e22f216fd781141e641da729d2 100644 (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>
index 78e011e49cd8196a92cb3a97452e161e202f06cd..65ff5d8e8835cf7f52545c917d1f6e7ec86a0689 100644 (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>
index f4ea36e8ffdcf31cdb34ac723f895fab8b43a0e8..5d40aca8c9edaead91dc939e13c9678159eeed2b 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <config.h>
 
-#include <stdbool.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
index 75d7b9a409a9b0a12738dea5b6b91ac34eb436be..a0654e245a980e8268663b64889a282856b11a0f 100644 (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>
index af1be2ec8e8dfdff530bb8165c8c98830b4ec18e..7c6fde79c92996727605d36cd11fc12f6b2c7730 100644 (file)
@@ -25,7 +25,6 @@
 # define __QEMUD_CONF_H
 
 # include <config.h>
-# include <stdbool.h>
 
 # include "ebtables.h"
 # include "internal.h"
index c58c20e118b3a1493cc614c6b3073cdc62460edb..102f7801a4807a4eaef085f6532a4583d2dd3475 100644 (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>
index 984c3b8795dce214879caa22defa9664cec70046..c84d4966dc982aef0d7943473ec17b5bb39209f3 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef __QEMU_HOTPLUG_H__
 # define __QEMU_HOTPLUG_H__
 
-# include <stdbool.h>
-
 # include "qemu_conf.h"
 # include "domain_conf.h"
 
index c5a876bed17ca1c1b6160d10481c181bbac64a56..5ca50064e07e0a547d9f7ccdc4441aff684d6127 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <dirent.h>
 #include <fcntl.h>
-#include <stdbool.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 7dc01acbb94daea49abf207ff4fa3b4cd290ea6c..deb41811fb06bb5e59915941bb1b27971d8377d5 100644 (file)
@@ -23,7 +23,6 @@
 #include <errno.h>
 #include <unistd.h>
 #include <wait.h>
-#include <stdbool.h>
 
 #include "internal.h"
 
index b91cf989d0fcaa4525f44c41e1f97c9b0b02548f..77df5144a4745ad4520a1f030bce8e1985b9826c 100644 (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>
 
index 6f395c767b3a8736962fe0789fe307e5ee73b68b..65cbd7eac7404380e26fba3e4874a79b846c0bcd 100644 (file)
@@ -25,7 +25,6 @@
 # define __VIR_STORAGE_BACKEND_H__
 
 # include <stdint.h>
-# include <stdbool.h>
 # include "internal.h"
 # include "storage_conf.h"
 
index ff39d48d6649eee674d5496ab74b7285cf051fe7..c33fb05086f5ea8a51b3a566f4ea6fb00ee736d3 100644 (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>
index db297b6dd012d137515d05ace5f91b846cb73496..ef62cca975a3b8cd5bb6a75b142c28bc0b068261 100644 (file)
@@ -25,7 +25,6 @@
 
 # include "internal.h"
 
-# include <stdbool.h>
 # include <sys/types.h>
 
 
index b71eef94edea76c989c52d07d6d84f3c51026bad..a1299aa76f72a57daaac7eb34093b32e609e7c7b 100644 (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>
index 0d5cb7986c9dd6ab12f22e048a1861e0ac263274..ff2bd4617db3f46c74744152b494562789daf74a 100644 (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>
index 744ba93f4e3980a2aff065f825f8606033115daf..5137fb34e928b4508761956d168cc652a0311170 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef __VIR_FILES_H_
 # define __VIR_FILES_H_
 
-# include <stdbool.h>
 # include <stdio.h>
 
 # include "internal.h"
index d7950b9634cf6e966c2815cac58924be673f7bc0..3ab73dda510d5caf2a5b91cc8396939b666aec76 100644 (file)
@@ -22,7 +22,6 @@
 #include <config.h>
 
 #include <string.h>
-#include <stdbool.h>
 #include <stdlib.h>
 
 #include "virterror_internal.h"
index 0b43bf6776d7e26089fa56337ac663140ea4de43..ed0b78c3b6612b0f3cf58bc08614bac5f9372cff 100644 (file)
@@ -19,7 +19,6 @@
 #  include <sys/un.h>
 # endif
 # include <netdb.h>
-# include <stdbool.h>
 # include <netinet/in.h>
 
 typedef struct {
index 04c1bb231a39935cf127d591b8fe8e9a152695fc..f1bdd024729c7f407a56ace96185e2f3f4076438 100644 (file)
@@ -25,7 +25,6 @@
 # define __VIR_STORAGE_FILE_H__
 
 # include "util.h"
-# include <stdbool.h>
 
 enum virStorageFileFormat {
     VIR_STORAGE_FILE_AUTO_SAFE = -2,
index 121386225f827be74c4b559f4d49b59a19fe6562..821759133d873d7dc40823082d9a911218266701 100644 (file)
@@ -25,8 +25,6 @@
 
 #include <config.h>
 
-#include <stdbool.h>
-
 #include "threadpool.h"
 #include "memory.h"
 #include "threads.h"
index 35e319e6d551392cb678dae2a8bd70c8553c3eba..c129301545d88883146747393219178d2a472f75 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef __THREADS_H_
 # define __THREADS_H_
 
-# include <stdbool.h>
-
 # include "internal.h"
 
 typedef struct virMutex virMutex;
index c822174cbb0b03adf3d1d541b5e86367dbcfe462..5f6473c70c436f6165f6639341beb01e226f3be1 100644 (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))
index 6c4deebc4ad8ec0298f1541ea0dc0e2907b262c7..a558a17ab524d8fd60aa0f781fccd28a3c812144 100644 (file)
@@ -24,7 +24,6 @@
 # define __LIBVIRT_AUDIT_H__
 
 # include "internal.h"
-# include <stdbool.h>
 
 enum virAuditRecordType {
     VIR_AUDIT_RECORD_MACHINE_CONTROL,
index fbe210c624c03f3cbab01a78fe9c7f24663567f4..0caeef9f8e9739847f20ee97c64be0f62be0447a 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <stdlib.h>
 #include <dlfcn.h>
-#include <stdbool.h>
 
 #include "vbox_XPCOMCGlue.h"
 #include "internal.h"
index 1c4e46fe5635eb8219858a0f2f20e388cb719e7c..8848cc0933eb0f536b59a9447046916089f4dd49 100644 (file)
@@ -35,7 +35,6 @@
 #include <config.h>
 
 #include <sys/utsname.h>
-#include <stdbool.h>
 #include <unistd.h>
 
 #include "internal.h"
index c31710834995bfd0731f8ee3ef1392423913c95b..4d546607beebfc55f70fb16e2319125edad46992 100644 (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"
index e811b860e0c8606ce181f09ccc508079f8515391..bfaed6515bec953e51d9c786ac64df8c1c124d4c 100644 (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>
index c90c57268ea574d5b877f80db41b7c13238f18c6..805cf91bd76489ec53e58f0d7f4465467af6aae7 100644 (file)
@@ -18,7 +18,6 @@
 
 # include <sys/types.h>
 # include <stdint.h>
-# include <stdbool.h>
 # include <libxml/uri.h>
 
 # include "internal.h"
index 9cad9130ada3dc8ea272616f495e4f8dc4539cd2..575177af89a8d1565153ae7c6683f1a78dc21655 100644 (file)
@@ -4,7 +4,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <stdbool.h>
 
 #include <sys/types.h>
 #include <fcntl.h>
index 74bc76369e18dfd409380e2c467776187f3d43cd..0214db09866fca826b827ce0b576223df3c8f4e5 100644 (file)
@@ -4,7 +4,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <stdbool.h>
 
 #include <sys/types.h>
 #include <fcntl.h>
index fec0dbcbc7d182f02a7d5952118f7db147a17151..d2864ef4d34e920e79e6cacd12389669b81c54e6 100644 (file)
@@ -4,7 +4,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <stdbool.h>
 
 #include <sys/types.h>
 #include <fcntl.h>
index e12632055e4d085a05a165f8ff9fcecfc2122b61..224cf0389bae4c1bdf2d23abd8628f5f69af29fb 100644 (file)
@@ -34,7 +34,6 @@
 # include <errno.h>
 # include <unistd.h>
 # include <signal.h>
-# include <stdbool.h>
 
 # include "internal.h"
 # include "console.h"