mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
9fc4b6a606
commit
35416720c2
@ -26,7 +26,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "dispatch.h"
|
||||
#include "remote.h"
|
||||
|
@ -24,8 +24,6 @@
|
||||
#ifndef __VIR_CAPABILITIES_H
|
||||
# define __VIR_CAPABILITIES_H
|
||||
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "internal.h"
|
||||
# include "util.h"
|
||||
# include "buf.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
|
||||
# include <stdint.h>
|
||||
# include <stddef.h>
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "internal.h"
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
# include "buf.h"
|
||||
# include "util.h"
|
||||
|
||||
# include <stdbool.h>
|
||||
# include <libxml/tree.h>
|
||||
|
||||
enum virStorageEncryptionSecretType {
|
||||
|
@ -7,7 +7,6 @@
|
||||
# define __VIR_DRIVER_H__
|
||||
|
||||
# include "config.h"
|
||||
# include <stdbool.h>
|
||||
|
||||
# include <libxml/uri.h>
|
||||
|
||||
|
@ -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"
|
||||
|
@ -24,7 +24,6 @@
|
||||
# define __VIR_FDSTREAM_H_
|
||||
|
||||
# include "internal.h"
|
||||
# include <stdbool.h>
|
||||
|
||||
int virFDStreamOpen(virStreamPtr st,
|
||||
int fd);
|
||||
|
@ -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. */
|
||||
|
@ -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>
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -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>
|
||||
|
@ -25,7 +25,6 @@
|
||||
# define __QEMUD_CONF_H
|
||||
|
||||
# include <config.h>
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "ebtables.h"
|
||||
# include "internal.h"
|
||||
|
@ -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>
|
||||
|
@ -24,8 +24,6 @@
|
||||
#ifndef __QEMU_HOTPLUG_H__
|
||||
# define __QEMU_HOTPLUG_H__
|
||||
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "qemu_conf.h"
|
||||
# include "domain_conf.h"
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <wait.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
#include <stdbool.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <locale.h>
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
# define __VIR_STORAGE_BACKEND_H__
|
||||
|
||||
# include <stdint.h>
|
||||
# include <stdbool.h>
|
||||
# include "internal.h"
|
||||
# include "storage_conf.h"
|
||||
|
||||
|
@ -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>
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
# include "internal.h"
|
||||
|
||||
# include <stdbool.h>
|
||||
# include <sys/types.h>
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include <poll.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -26,7 +26,6 @@
|
||||
#ifndef __VIR_FILES_H_
|
||||
# define __VIR_FILES_H_
|
||||
|
||||
# include <stdbool.h>
|
||||
# include <stdio.h>
|
||||
|
||||
# include "internal.h"
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "virterror_internal.h"
|
||||
|
@ -19,7 +19,6 @@
|
||||
# include <sys/un.h>
|
||||
# endif
|
||||
# include <netdb.h>
|
||||
# include <stdbool.h>
|
||||
# include <netinet/in.h>
|
||||
|
||||
typedef struct {
|
||||
|
@ -25,7 +25,6 @@
|
||||
# define __VIR_STORAGE_FILE_H__
|
||||
|
||||
# include "util.h"
|
||||
# include <stdbool.h>
|
||||
|
||||
enum virStorageFileFormat {
|
||||
VIR_STORAGE_FILE_AUTO_SAFE = -2,
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "threadpool.h"
|
||||
#include "memory.h"
|
||||
#include "threads.h"
|
||||
|
@ -22,8 +22,6 @@
|
||||
#ifndef __THREADS_H_
|
||||
# define __THREADS_H_
|
||||
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "internal.h"
|
||||
|
||||
typedef struct virMutex virMutex;
|
||||
|
@ -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))
|
||||
|
@ -24,7 +24,6 @@
|
||||
# define __LIBVIRT_AUDIT_H__
|
||||
|
||||
# include "internal.h"
|
||||
# include <stdbool.h>
|
||||
|
||||
enum virAuditRecordType {
|
||||
VIR_AUDIT_RECORD_MACHINE_CONTROL,
|
||||
|
@ -34,7 +34,6 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <dlfcn.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "vbox_XPCOMCGlue.h"
|
||||
#include "internal.h"
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <sys/utsname.h>
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "internal.h"
|
||||
|
@ -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"
|
||||
|
@ -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>
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# include <sys/types.h>
|
||||
# include <stdint.h>
|
||||
# include <stdbool.h>
|
||||
# include <libxml/uri.h>
|
||||
|
||||
# include "internal.h"
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -34,7 +34,6 @@
|
||||
# include <errno.h>
|
||||
# include <unistd.h>
|
||||
# include <signal.h>
|
||||
# include <stdbool.h>
|
||||
|
||||
# include "internal.h"
|
||||
# include "console.h"
|
||||
|
Loading…
Reference in New Issue
Block a user