Enforce a standard header file guard symbol name

Require that all headers are guarded by a symbol named

  LIBVIRT_$FILENAME

where $FILENAME is the uppercased filename, with all characters
outside a-z changed into '_'.

Note we do not use a leading __ because that is technically a
namespace reserved for the toolchain.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-12-13 14:53:50 +00:00
parent 4cfd709021
commit 568a417224
458 changed files with 1335 additions and 1335 deletions

View File

@ -70,6 +70,15 @@ while (<>) {
&mistake("$file: missing '#endif /* $ifdef */'");
}
$ifdef = uc $ARGV;
$ifdef =~ s,.*/,,;
$ifdef =~ s,[^A-Z0-9],_,g;
$ifdef =~ s,__+,_,g;
unless ($ifdef =~ /^LIBVIRT_/ && $ARGV !~ /libvirt_internal.h/) {
$ifdef = "LIBVIRT_" . $ifdef;
}
$ifdefpriv = $ifdef . "_ALLOW";
$file = $ARGV;
$state = $STATE_COPYRIGHT_COMMENT;
$mistake = 0;
@ -98,11 +107,10 @@ while (<>) {
} elsif ($state == $STATE_PRIV_START) {
if (/^$/) {
&mistake("$file: too many blank lines after coyright header");
} elsif (/#ifndef\s(.*ALLOW.*)/) {
$ifdefpriv = $1;
} elsif (/#ifndef $ifdefpriv$/) {
$state = $STATE_PRIV_ERROR;
} else {
&mistake("$file: missing '#ifndef SYMBOL_ALLOW'");
&mistake("$file: missing '#ifndef $ifdefpriv'");
}
} elsif ($state == $STATE_PRIV_ERROR) {
if (/# error ".*"$/) {
@ -124,11 +132,10 @@ while (<>) {
} elsif ($state == $STATE_GUARD_START) {
if (/^$/) {
&mistake("$file: too many blank lines after coyright header");
} elsif (/#ifndef\s(.*)$/) {
$ifdef = $1;
} elsif (/#ifndef $ifdef$/) {
$state = $STATE_GUARD_DEFINE;
} else {
&mistake("$file: missing '#ifndef SYMBOL'");
&mistake("$file: missing '#ifndef $ifdef'");
}
} elsif ($state == $STATE_GUARD_DEFINE) {
if (/# define $ifdef$/) {

View File

@ -1003,6 +1003,8 @@ class CParser:
# skip hidden macros
if name in hidden_macros:
return token
if name[-2:] == "_H" or name[-8:] == "_H_ALLOW":
return token
strValue = None
if len(lst) == 1 and lst[0][0] == '"' and lst[0][-1] == '"':

View File

@ -21,8 +21,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ADMIN_H__
# define __VIR_ADMIN_H__
#ifndef LIBVIRT_ADMIN_H
# define LIBVIRT_ADMIN_H
# ifdef __cplusplus
extern "C" {
@ -422,4 +422,4 @@ int virAdmConnectSetLoggingFilters(virAdmConnectPtr conn,
}
# endif
#endif /* __VIR_ADMIN_H__ */
#endif /* LIBVIRT_ADMIN_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_DOMAIN_SNAPSHOT_H__
# define __VIR_LIBVIRT_DOMAIN_SNAPSHOT_H__
#ifndef LIBVIRT_DOMAIN_SNAPSHOT_H
# define LIBVIRT_DOMAIN_SNAPSHOT_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -210,4 +210,4 @@ int virDomainSnapshotDelete(virDomainSnapshotPtr snapshot,
int virDomainSnapshotRef(virDomainSnapshotPtr snapshot);
int virDomainSnapshotFree(virDomainSnapshotPtr snapshot);
#endif /* __VIR_LIBVIRT_DOMAIN_SNAPSHOT_H__ */
#endif /* LIBVIRT_DOMAIN_SNAPSHOT_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_DOMAIN_H__
# define __VIR_LIBVIRT_DOMAIN_H__
#ifndef LIBVIRT_DOMAIN_H
# define LIBVIRT_DOMAIN_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -4839,4 +4839,4 @@ int virDomainGetLaunchSecurityInfo(virDomainPtr domain,
int *nparams,
unsigned int flags);
#endif /* __VIR_LIBVIRT_DOMAIN_H__ */
#endif /* LIBVIRT_DOMAIN_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_EVENT_H__
# define __VIR_LIBVIRT_EVENT_H__
#ifndef LIBVIRT_EVENT_H
# define LIBVIRT_EVENT_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -186,4 +186,4 @@ void virEventUpdateTimeout(int timer, int frequency);
int virEventRemoveTimeout(int timer);
#endif /* __VIR_LIBVIRT_EVENT_H__ */
#endif /* LIBVIRT_EVENT_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_HOST_H__
# define __VIR_LIBVIRT_HOST_H__
#ifndef LIBVIRT_HOST_H
# define LIBVIRT_HOST_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -743,4 +743,4 @@ int virNodeAllocPages(virConnectPtr conn,
unsigned int flags);
#endif /* __VIR_LIBVIRT_HOST_H__ */
#endif /* LIBVIRT_HOST_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_INTERFACE_H__
# define __VIR_LIBVIRT_INTERFACE_H__
#ifndef LIBVIRT_INTERFACE_H
# define LIBVIRT_INTERFACE_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -106,4 +106,4 @@ int virInterfaceChangeRollback(virConnectPtr conn,
int virInterfaceIsActive(virInterfacePtr iface);
#endif /* __VIR_LIBVIRT_INTERFACE_H__ */
#endif /* LIBVIRT_INTERFACE_H */

View File

@ -21,8 +21,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LXC_H__
# define __VIR_LXC_H__
#ifndef LIBVIRT_LXC_H
# define LIBVIRT_LXC_H
# include <libvirt/libvirt.h>
@ -51,4 +51,4 @@ int virDomainLxcEnterCGroup(virDomainPtr domain,
}
# endif
#endif /* __VIR_LXC_H__ */
#endif /* LIBVIRT_LXC_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_NETWORK_H__
# define __VIR_LIBVIRT_NETWORK_H__
#ifndef LIBVIRT_NETWORK_H
# define LIBVIRT_NETWORK_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -333,4 +333,4 @@ int virConnectNetworkEventRegisterAny(virConnectPtr conn,
int virConnectNetworkEventDeregisterAny(virConnectPtr conn,
int callbackID);
#endif /* __VIR_LIBVIRT_NETWORK_H__ */
#endif /* LIBVIRT_NETWORK_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_NODEDEV_H__
# define __VIR_LIBVIRT_NODEDEV_H__
#ifndef LIBVIRT_NODEDEV_H
# define LIBVIRT_NODEDEV_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -216,4 +216,4 @@ typedef void (*virConnectNodeDeviceEventLifecycleCallback)(virConnectPtr conn,
int detail,
void *opaque);
#endif /* __VIR_LIBVIRT_NODEDEV_H__ */
#endif /* LIBVIRT_NODEDEV_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_NWFILTER_H__
# define __VIR_LIBVIRT_NWFILTER_H__
#ifndef LIBVIRT_NWFILTER_H
# define LIBVIRT_NWFILTER_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -130,4 +130,4 @@ int virNWFilterBindingDelete(virNWFilterBindingPtr binding);
int virNWFilterBindingRef(virNWFilterBindingPtr binding);
int virNWFilterBindingFree(virNWFilterBindingPtr binding);
#endif /* __VIR_LIBVIRT_NWFILTER_H__ */
#endif /* LIBVIRT_NWFILTER_H */

View File

@ -21,8 +21,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_QEMU_H__
# define __VIR_QEMU_H__
#ifndef LIBVIRT_QEMU_H
# define LIBVIRT_QEMU_H
# include <libvirt/libvirt.h>
@ -101,4 +101,4 @@ int virConnectDomainQemuMonitorEventDeregister(virConnectPtr conn,
}
# endif
#endif /* __VIR_QEMU_H__ */
#endif /* LIBVIRT_QEMU_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_SECRET_H__
# define __VIR_LIBVIRT_SECRET_H__
#ifndef LIBVIRT_SECRET_H
# define LIBVIRT_SECRET_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -202,4 +202,4 @@ typedef void (*virConnectSecretEventLifecycleCallback)(virConnectPtr conn,
void *opaque);
#endif /* __VIR_LIBVIRT_SECRET_H__ */
#endif /* LIBVIRT_SECRET_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_STORAGE_H__
# define __VIR_LIBVIRT_STORAGE_H__
#ifndef LIBVIRT_STORAGE_H
# define LIBVIRT_STORAGE_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -495,4 +495,4 @@ typedef void (*virConnectStoragePoolEventLifecycleCallback)(virConnectPtr conn,
int detail,
void *opaque);
#endif /* __VIR_LIBVIRT_STORAGE_H__ */
#endif /* LIBVIRT_STORAGE_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_LIBVIRT_STREAM_H__
# define __VIR_LIBVIRT_STREAM_H__
#ifndef LIBVIRT_STREAM_H
# define LIBVIRT_STREAM_H
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# error "Don't include this file directly, only use libvirt/libvirt.h"
@ -266,4 +266,4 @@ int virStreamAbort(virStreamPtr st);
int virStreamFree(virStreamPtr st);
#endif /* __VIR_LIBVIRT_STREAM_H__ */
#endif /* LIBVIRT_STREAM_H */

View File

@ -21,8 +21,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_VIRLIB_H__
# define __VIR_VIRLIB_H__
#ifndef LIBVIRT_H
# define LIBVIRT_H
# include <sys/types.h>
@ -49,4 +49,4 @@ extern "C" {
}
# endif
#endif /* __VIR_VIRLIB_H__ */
#endif /* LIBVIRT_H */

View File

@ -21,8 +21,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_VIRERR_H__
# define __VIR_VIRERR_H__
#ifndef LIBVIRT_VIRTERROR_H
# define LIBVIRT_VIRTERROR_H
# include <libvirt/libvirt.h>
@ -364,4 +364,4 @@ int virConnCopyLastError (virConnectPtr conn,
}
# endif
#endif /* __VIR_VIRERR_H__ */
#endif /* LIBVIRT_VIRTERROR_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_DRIVER_H__
# define __VIR_ACCESS_DRIVER_H__
#ifndef LIBVIRT_VIRACCESSDRIVER_H
# define LIBVIRT_VIRACCESSDRIVER_H
# include "conf/domain_conf.h"
# include "access/viraccessmanager.h"
@ -91,4 +91,4 @@ struct _virAccessDriver {
};
#endif /* __VIR_ACCESS_DRIVER_H__ */
#endif /* LIBVIRT_VIRACCESSDRIVER_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_DRIVER_NOP_H__
# define __VIR_ACCESS_DRIVER_NOP_H__
#ifndef LIBVIRT_VIRACCESSDRIVERNOP_H
# define LIBVIRT_VIRACCESSDRIVERNOP_H
# include "access/viraccessdriver.h"
extern virAccessDriver accessDriverNop;
#endif /* __VIR_ACCESS_DRIVER_NOP_H__ */
#endif /* LIBVIRT_VIRACCESSDRIVERNOP_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_DRIVER_POLKIT_H__
# define __VIR_ACCESS_DRIVER_POLKIT_H__
#ifndef LIBVIRT_VIRACCESSDRIVERPOLKIT_H
# define LIBVIRT_VIRACCESSDRIVERPOLKIT_H
# include "viraccessdriver.h"
extern virAccessDriver accessDriverPolkit;
#endif /* __VIR_ACCESS_DRIVER_POLKIT_H__ */
#endif /* LIBVIRT_VIRACCESSDRIVERPOLKIT_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_DRIVER_STACK_H__
# define __VIR_ACCESS_DRIVER_STACK_H__
#ifndef LIBVIRT_VIRACCESSDRIVERSTACK_H
# define LIBVIRT_VIRACCESSDRIVERSTACK_H
# include "access/viraccessdriver.h"
@ -29,4 +29,4 @@ int virAccessDriverStackAppend(virAccessManagerPtr manager,
extern virAccessDriver accessDriverStack;
#endif /* __VIR_ACCESS_DRIVER_STACK_H__ */
#endif /* LIBVIRT_VIRACCESSDRIVERSTACK_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_MANAGER_H__
# define __VIR_ACCESS_MANAGER_H__
#ifndef LIBVIRT_VIRACCESSMANAGER_H
# define LIBVIRT_VIRACCESSMANAGER_H
# include "viridentity.h"
# include "conf/domain_conf.h"
@ -93,4 +93,4 @@ int virAccessManagerCheckStorageVol(virAccessManagerPtr manager,
virAccessPermStorageVol perm);
#endif /* __VIR_ACCESS_MANAGER_H__ */
#endif /* LIBVIRT_VIRACCESSMANAGER_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_ACCESS_PERM_H__
# define __VIR_ACCESS_PERM_H__
#ifndef LIBVIRT_VIRACCESSPERM_H
# define LIBVIRT_VIRACCESSPERM_H
# include "internal.h"
# include "virutil.h"
@ -699,4 +699,4 @@ VIR_ENUM_DECL(virAccessPermSecret);
VIR_ENUM_DECL(virAccessPermStoragePool);
VIR_ENUM_DECL(virAccessPermStorageVol);
#endif /* __VIR_ACCESS_PERM_H__ */
#endif /* LIBVIRT_VIRACCESSPERM_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __ADMIN_SERVER_H__
# define __ADMIN_SERVER_H__
#ifndef LIBVIRT_ADMIN_SERVER_H
# define LIBVIRT_ADMIN_SERVER_H
# include "rpc/virnetdaemon.h"
# include "rpc/virnetserver.h"
@ -69,4 +69,4 @@ int adminServerSetClientLimits(virNetServerPtr srv,
int nparams,
unsigned int flags);
#endif /* __ADMIN_SERVER_H__ */
#endif /* LIBVIRT_ADMIN_SERVER_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __ADMIN_SERVER_DISPATCH_H__
# define __ADMIN_SERVER_DISPATCH_H__
#ifndef LIBVIRT_ADMIN_SERVER_DISPATCH_H
# define LIBVIRT_ADMIN_SERVER_DISPATCH_H
# include "rpc/virnetserverprogram.h"
# include "rpc/virnetserverclient.h"
@ -37,4 +37,4 @@ void *remoteAdmClientNewPostExecRestart(virNetServerClientPtr client,
virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client,
void *data);
#endif /* __ADMIN_SERVER_DISPATCH_H__ */
#endif /* LIBVIRT_ADMIN_SERVER_DISPATCH_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef _BHYVE_CAPABILITIES
# define _BHYVE_CAPABILITIES
#ifndef LIBVIRT_BHYVE_CAPABILITIES_H
# define LIBVIRT_BHYVE_CAPABILITIES_H
# include "capabilities.h"
# include "conf/domain_capabilities.h"
@ -55,4 +55,4 @@ typedef enum {
int virBhyveProbeGrubCaps(virBhyveGrubCapsFlags *caps);
int virBhyveProbeCaps(unsigned int *caps);
#endif /* _BHYVE_CAPABILITIES */
#endif /* LIBVIRT_BHYVE_CAPABILITIES_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef __BHYVE_COMMAND_H__
# define __BHYVE_COMMAND_H__
#ifndef LIBVIRT_BHYVE_COMMAND_H
# define LIBVIRT_BHYVE_COMMAND_H
# include "bhyve_domain.h"
# include "bhyve_utils.h"
@ -42,4 +42,4 @@ virCommandPtr
virBhyveProcessBuildLoadCmd(virConnectPtr conn, virDomainDefPtr def,
const char *devmap_file, char **devicesmap_out);
#endif /* __BHYVE_COMMAND_H__ */
#endif /* LIBVIRT_BHYVE_COMMAND_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef BHYVE_CONF_H
# define BHYVE_CONF_H
#ifndef LIBVIRT_BHYVE_CONF_H
# define LIBVIRT_BHYVE_CONF_H
# include "bhyve_utils.h"
@ -29,4 +29,4 @@ virBhyveDriverConfigPtr virBhyveDriverGetConfig(bhyveConnPtr driver);
int virBhyveLoadDriverConfig(virBhyveDriverConfigPtr cfg,
const char *filename);
#endif /* BHYVE_CONF_H */
#endif /* LIBVIRT_BHYVE_CONF_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __BHYVE_DEVICE_H__
# define __BHYVE_DEVICE_H__
#ifndef LIBVIRT_BHYVE_DEVICE_H
# define LIBVIRT_BHYVE_DEVICE_H
# include "domain_conf.h"
# include "virpci.h"
@ -33,4 +33,4 @@ virDomainPCIAddressSetPtr bhyveDomainPCIAddressSetCreate(virDomainDefPtr def,
int bhyveDomainAssignAddresses(virDomainDefPtr def, virDomainObjPtr obj)
ATTRIBUTE_NONNULL(1);
#endif /* __BHYVE_DEVICE_H__ */
#endif /* LIBVIRT_BHYVE_DEVICE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __BHYVE_DOMAIN_H__
# define __BHYVE_DOMAIN_H__
#ifndef LIBVIRT_BHYVE_DOMAIN_H
# define LIBVIRT_BHYVE_DOMAIN_H
# include "domain_addr.h"
# include "domain_conf.h"
@ -40,4 +40,4 @@ virDomainXMLOptionPtr virBhyveDriverCreateXMLConf(bhyveConnPtr);
extern virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks;
extern virDomainDefParserConfig virBhyveDriverDomainDefParserConfig;
#endif /* __BHYVE_DOMAIN_H__ */
#endif /* LIBVIRT_BHYVE_DOMAIN_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __BHYVE_DRIVER_H__
# define __BHYVE_DRIVER_H__
#ifndef LIBVIRT_BHYVE_DRIVER_H
# define LIBVIRT_BHYVE_DRIVER_H
# include "capabilities.h"
# include "bhyve_utils.h"
@ -32,4 +32,4 @@ unsigned bhyveDriverGetGrubCaps(virConnectPtr conn);
virCapsPtr bhyveDriverGetCapabilities(bhyveConnPtr driver);
#endif /* __BHYVE_DRIVER_H__ */
#endif /* LIBVIRT_BHYVE_DRIVER_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef BHYVE_MONITOR_H
# define BHYVE_MONITOR_H
#ifndef LIBVIRT_BHYVE_MONITOR_H
# define LIBVIRT_BHYVE_MONITOR_H
# include "internal.h"
# include "domain_conf.h"
@ -31,4 +31,4 @@ typedef bhyveMonitor *bhyveMonitorPtr;
bhyveMonitorPtr bhyveMonitorOpen(virDomainObjPtr vm, bhyveConnPtr driver);
void bhyveMonitorClose(bhyveMonitorPtr mon);
#endif /* BHYVE_MONITOR_H */
#endif /* LIBVIRT_BHYVE_MONITOR_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __BHYVE_PARSE_COMMAND_H__
# define __BHYVE_PARSE_COMMAND_H__
#ifndef LIBVIRT_BHYVE_PARSE_COMMAND_H
# define LIBVIRT_BHYVE_PARSE_COMMAND_H
virDomainDefPtr bhyveParseCommandLineString(const char* nativeConfig,
unsigned caps,
virDomainXMLOptionPtr xmlopt);
#endif /* __BHYVE_PARSE_COMMAND_H__ */
#endif /* LIBVIRT_BHYVE_PARSE_COMMAND_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef __BHYVE_PROCESS_H__
# define __BHYVE_PROCESS_H__
#ifndef LIBVIRT_BHYVE_PROCESS_H
# define LIBVIRT_BHYVE_PROCESS_H
# include "bhyve_utils.h"
@ -45,4 +45,4 @@ typedef enum {
VIR_BHYVE_PROCESS_START_AUTODESTROY = 1 << 0,
} bhyveProcessStartFlags;
#endif /* __BHYVE_PROCESS_H__ */
#endif /* LIBVIRT_BHYVE_PROCESS_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef __BHYVE_UTILS_H__
# define __BHYVE_UTILS_H__
#ifndef LIBVIRT_BHYVE_UTILS_H
# define LIBVIRT_BHYVE_UTILS_H
# include "driver.h"
# include "domain_event.h"
@ -76,4 +76,4 @@ struct bhyveAutostartData {
void bhyveDriverLock(bhyveConnPtr driver);
void bhyveDriverUnlock(bhyveConnPtr driver);
#endif /* __BHYVE_UTILS_H__ */
#endif /* LIBVIRT_BHYVE_UTILS_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CAPABILITIES_H
# define __VIR_CAPABILITIES_H
#ifndef LIBVIRT_CAPABILITIES_H
# define LIBVIRT_CAPABILITIES_H
# include "internal.h"
# include "virbuffer.h"
@ -355,4 +355,4 @@ int virCapabilitiesInitCaches(virCapsPtr caps);
void virCapabilitiesHostInitIOMMU(virCapsPtr caps);
#endif /* __VIR_CAPABILITIES_H */
#endif /* LIBVIRT_CAPABILITIES_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_CONF_H__
# define __VIR_CPU_CONF_H__
#ifndef LIBVIRT_CPU_CONF_H
# define LIBVIRT_CPU_CONF_H
# include "virutil.h"
# include "virbuffer.h"
@ -224,4 +224,4 @@ virCPUDefListParse(const char **xmlCPUs,
void
virCPUDefListFree(virCPUDefPtr *cpus);
#endif /* __VIR_CPU_CONF_H__ */
#endif /* LIBVIRT_CPU_CONF_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __DEVICE_CONF_H__
# define __DEVICE_CONF_H__
#ifndef LIBVIRT_DEVICE_CONF_H
# define LIBVIRT_DEVICE_CONF_H
# include <libxml/parser.h>
# include <libxml/tree.h>
@ -231,4 +231,4 @@ int virInterfaceLinkParseXML(xmlNodePtr node,
int virInterfaceLinkFormat(virBufferPtr buf,
const virNetDevIfLink *lnk);
#endif /* __DEVICE_CONF_H__ */
#endif /* LIBVIRT_DEVICE_CONF_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __DOMAIN_ADDR_H__
# define __DOMAIN_ADDR_H__
#ifndef LIBVIRT_DOMAIN_ADDR_H
# define LIBVIRT_DOMAIN_ADDR_H
# include "domain_conf.h"
@ -312,4 +312,4 @@ int
virDomainUSBAddressRelease(virDomainUSBAddressSetPtr addrs,
virDomainDeviceInfoPtr info)
ATTRIBUTE_NONNULL(2);
#endif /* __DOMAIN_ADDR_H__ */
#endif /* LIBVIRT_DOMAIN_ADDR_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DOMAIN_AUDIT_H__
# define __VIR_DOMAIN_AUDIT_H__
#ifndef LIBVIRT_DOMAIN_AUDIT_H
# define LIBVIRT_DOMAIN_AUDIT_H
# include "domain_conf.h"
# include "vircgroup.h"
@ -138,4 +138,4 @@ void virDomainAuditInput(virDomainObjPtr vm,
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
#endif /* __VIR_DOMAIN_AUDIT_H__ */
#endif /* LIBVIRT_DOMAIN_AUDIT_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __DOMAIN_CAPABILITIES_H__
# define __DOMAIN_CAPABILITIES_H__
#ifndef LIBVIRT_DOMAIN_CAPABILITIES_H
# define LIBVIRT_DOMAIN_CAPABILITIES_H
# include "internal.h"
# include "domain_conf.h"
@ -217,4 +217,4 @@ virSEVCapabilitiesFree(virSEVCapability *capabilities);
VIR_DEFINE_AUTOPTR_FUNC(virSEVCapability, virSEVCapabilitiesFree);
#endif /* __DOMAIN_CAPABILITIES_H__ */
#endif /* LIBVIRT_DOMAIN_CAPABILITIES_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __DOMAIN_CONF_H
# define __DOMAIN_CONF_H
#ifndef LIBVIRT_DOMAIN_CONF_H
# define LIBVIRT_DOMAIN_CONF_H
# include <libxml/parser.h>
# include <libxml/tree.h>
@ -3678,4 +3678,4 @@ virDomainGraphicsGetRenderNode(const virDomainGraphicsDef *graphics);
bool
virDomainGraphicsNeedsAutoRenderNode(const virDomainGraphicsDef *graphics);
#endif /* __DOMAIN_CONF_H */
#endif /* LIBVIRT_DOMAIN_CONF_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __DOMAIN_EVENT_H__
# define __DOMAIN_EVENT_H__
#ifndef LIBVIRT_DOMAIN_EVENT_H
# define LIBVIRT_DOMAIN_EVENT_H
# include "internal.h"
# include "object_event.h"
@ -324,4 +324,4 @@ virDomainQemuMonitorEventNew(int id,
const char *details)
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
#endif /* __DOMAIN_EVENT_H__ */
#endif /* LIBVIRT_DOMAIN_EVENT_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef DOMAIN_NWFILTER_H
# define DOMAIN_NWFILTER_H
#ifndef LIBVIRT_DOMAIN_NWFILTER_H
# define LIBVIRT_DOMAIN_NWFILTER_H
int virDomainConfNWFilterInstantiate(const char *vmname,
const unsigned char *vmuuid,
@ -29,4 +29,4 @@ int virDomainConfNWFilterInstantiate(const char *vmname,
void virDomainConfNWFilterTeardown(virDomainNetDefPtr net);
void virDomainConfVMNWFilterTeardown(virDomainObjPtr vm);
#endif /* DOMAIN_NWFILTER_H */
#endif /* LIBVIRT_DOMAIN_NWFILTER_H */

View File

@ -19,8 +19,8 @@
* Laine Stump <laine@redhat.com>
*/
#ifndef __INTERFACE_CONF_H__
# define __INTERFACE_CONF_H__
#ifndef LIBVIRT_INTERFACE_CONF_H
# define LIBVIRT_INTERFACE_CONF_H
# include <libxml/parser.h>
# include <libxml/tree.h>
@ -179,4 +179,4 @@ virInterfaceDefFormat(const virInterfaceDef *def);
(VIR_CONNECT_LIST_INTERFACES_ACTIVE | \
VIR_CONNECT_LIST_INTERFACES_INACTIVE)
#endif /* __INTERFACE_CONF_H__ */
#endif /* LIBVIRT_INTERFACE_CONF_H */

View File

@ -16,8 +16,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NETDEV_BANDWIDTH_CONF_H__
# define __VIR_NETDEV_BANDWIDTH_CONF_H__
#ifndef LIBVIRT_NETDEV_BANDWIDTH_CONF_H
# define LIBVIRT_NETDEV_BANDWIDTH_CONF_H
# include "internal.h"
# include "virnetdevbandwidth.h"
@ -57,4 +57,4 @@ static inline bool virNetDevSupportBandwidth(virDomainNetType type)
return false;
}
#endif /* __VIR_NETDEV_BANDWIDTH_CONF_H__ */
#endif /* LIBVIRT_NETDEV_BANDWIDTH_CONF_H */

View File

@ -16,8 +16,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NETDEV_VLAN_CONF_H__
# define __VIR_NETDEV_VLAN_CONF_H__
#ifndef LIBVIRT_NETDEV_VLAN_CONF_H
# define LIBVIRT_NETDEV_VLAN_CONF_H
# include "internal.h"
# include "virnetdevvlan.h"
@ -27,4 +27,4 @@
int virNetDevVlanParse(xmlNodePtr node, xmlXPathContextPtr ctxt, virNetDevVlanPtr def);
int virNetDevVlanFormat(const virNetDevVlan *def, virBufferPtr buf);
#endif /* __VIR_NETDEV_VLAN_CONF_H__ */
#endif /* LIBVIRT_NETDEV_VLAN_CONF_H */

View File

@ -16,8 +16,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NETDEV_VPORT_PROFILE_CONF_H__
# define __VIR_NETDEV_VPORT_PROFILE_CONF_H__
#ifndef LIBVIRT_NETDEV_VPORT_PROFILE_CONF_H
# define LIBVIRT_NETDEV_VPORT_PROFILE_CONF_H
# include "internal.h"
# include "virnetdevvportprofile.h"
@ -45,4 +45,4 @@ virNetDevVPortProfileFormat(virNetDevVPortProfilePtr virtPort,
virBufferPtr buf);
#endif /* __VIR_NETDEV_VPORT_PROFILE_CONF_H__ */
#endif /* LIBVIRT_NETDEV_VPORT_PROFILE_CONF_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __NETWORK_CONF_H__
# define __NETWORK_CONF_H__
#ifndef LIBVIRT_NETWORK_CONF_H
# define LIBVIRT_NETWORK_CONF_H
# define DNS_RECORD_LENGTH_SRV (512 - 30) /* Limit minus overhead as mentioned in RFC-2782 */
@ -383,4 +383,4 @@ virNetworkDefUpdateSection(virNetworkDefPtr def,
unsigned int flags); /* virNetworkUpdateFlags */
VIR_ENUM_DECL(virNetworkTaint)
#endif /* __NETWORK_CONF_H__ */
#endif /* LIBVIRT_NETWORK_CONF_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __NETWORK_EVENT_H__
# define __NETWORK_EVENT_H__
#ifndef LIBVIRT_NETWORK_EVENT_H
# define LIBVIRT_NETWORK_EVENT_H
# include "internal.h"
# include "object_event.h"
@ -56,4 +56,4 @@ virNetworkEventLifecycleNew(const char *name,
int type,
int detail);
#endif /* __NETWORK_EVENT_H__ */
#endif /* LIBVIRT_NETWORK_EVENT_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __NETWORKCOMMON_CONF_H__
# define __NETWORKCOMMON_CONF_H__
#ifndef LIBVIRT_NETWORKCOMMON_CONF_H
# define LIBVIRT_NETWORKCOMMON_CONF_H
# include <libxml/tree.h>
# include <libxml/xpath.h>
@ -50,4 +50,4 @@ int
virNetDevIPRouteFormat(virBufferPtr buf,
const virNetDevIPRoute *def);
#endif /* __NETWORKCOMMON_CONF_H__ */
#endif /* LIBVIRT_NETWORKCOMMON_CONF_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NODE_DEVICE_CONF_H__
# define __VIR_NODE_DEVICE_CONF_H__
#ifndef LIBVIRT_NODE_DEVICE_CONF_H
# define LIBVIRT_NODE_DEVICE_CONF_H
# include "internal.h"
# include "virbitmap.h"
@ -383,4 +383,4 @@ int
virNodeDeviceCapsListExport(virNodeDeviceDefPtr def,
virNodeDevCapType **list);
#endif /* __VIR_NODE_DEVICE_CONF_H__ */
#endif /* LIBVIRT_NODE_DEVICE_CONF_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __NODE_DEVICE_EVENT_H__
# define __NODE_DEVICE_EVENT_H__
#ifndef LIBVIRT_NODE_DEVICE_EVENT_H
# define LIBVIRT_NODE_DEVICE_EVENT_H
# include "internal.h"
# include "object_event.h"
@ -59,4 +59,4 @@ virNodeDeviceEventLifecycleNew(const char *name,
virObjectEventPtr
virNodeDeviceEventUpdateNew(const char *name);
#endif /* __NODE_DEVICE_EVENT_H__ */
#endif /* LIBVIRT_NODE_DEVICE_EVENT_H */

View File

@ -16,8 +16,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NODE_DEVICE_UTIL_H__
# define __VIR_NODE_DEVICE_UTIL_H__
#ifndef LIBVIRT_NODE_DEVICE_UTIL_H
# define LIBVIRT_NODE_DEVICE_UTIL_H
# include "conf/storage_adapter_conf.h"
@ -32,4 +32,4 @@ int
virNodeDeviceDeleteVport(virConnectPtr conn,
virStorageAdapterFCHostPtr fchost);
#endif /* __VIR_NODE_DEVICE_UTIL_H__ */
#endif /* LIBVIRT_NODE_DEVICE_UTIL_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __NUMA_CONF_H__
# define __NUMA_CONF_H__
#ifndef LIBVIRT_NUMA_CONF_H
# define LIBVIRT_NUMA_CONF_H
# include <libxml/xpath.h>
@ -186,4 +186,4 @@ int virDomainNumaDefCPUFormatXML(virBufferPtr buf, virDomainNumaPtr def);
unsigned int virDomainNumaGetCPUCountTotal(virDomainNumaPtr numa);
#endif /* __NUMA_CONF_H__ */
#endif /* LIBVIRT_NUMA_CONF_H */

View File

@ -22,8 +22,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef NWFILTER_CONF_H
# define NWFILTER_CONF_H
#ifndef LIBVIRT_NWFILTER_CONF_H
# define LIBVIRT_NWFILTER_CONF_H
# include "internal.h"
@ -615,4 +615,4 @@ VIR_ENUM_DECL(virNWFilterChainPolicy);
VIR_ENUM_DECL(virNWFilterEbtablesTable);
VIR_ENUM_DECL(virNWFilterChainSuffix);
#endif /* NWFILTER_CONF_H */
#endif /* LIBVIRT_NWFILTER_CONF_H */

View File

@ -20,8 +20,8 @@
*
*/
#ifndef __VIR_NWFILTER_IPADDRMAP_H
# define __VIR_NWFILTER_IPADDRMAP_H
#ifndef LIBVIRT_NWFILTER_IPADDRMAP_H
# define LIBVIRT_NWFILTER_IPADDRMAP_H
int virNWFilterIPAddrMapInit(void);
void virNWFilterIPAddrMapShutdown(void);
@ -31,4 +31,4 @@ int virNWFilterIPAddrMapDelIPAddr(const char *ifname,
const char *ipaddr);
virNWFilterVarValuePtr virNWFilterIPAddrMapGetIPAddr(const char *ifname);
#endif /* __VIR_NWFILTER_IPADDRMAP_H */
#endif /* LIBVIRT_NWFILTER_IPADDRMAP_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef NWFILTER_PARAMS_H
# define NWFILTER_PARAMS_H
#ifndef LIBVIRT_NWFILTER_PARAMS_H
# define LIBVIRT_NWFILTER_PARAMS_H
# include "virhash.h"
# include "virbuffer.h"
@ -152,4 +152,4 @@ const char *virNWFilterVarCombIterGetVarValue(virNWFilterVarCombIterPtr ci,
const virNWFilterVarAccess *);
#endif /* NWFILTER_PARAMS_H */
#endif /* LIBVIRT_NWFILTER_PARAMS_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __OBJECT_EVENT_H__
# define __OBJECT_EVENT_H__
#ifndef LIBVIRT_OBJECT_EVENT_H
# define LIBVIRT_OBJECT_EVENT_H
# include "internal.h"
@ -89,4 +89,4 @@ virObjectEventStateSetRemote(virConnectPtr conn,
int remoteID)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
#endif /* __OBJECT_EVENT_H__ */
#endif /* LIBVIRT_OBJECT_EVENT_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __OBJECT_EVENT_PRIVATE_H__
# define __OBJECT_EVENT_PRIVATE_H__
#ifndef LIBVIRT_OBJECT_EVENT_PRIVATE_H
# define LIBVIRT_OBJECT_EVENT_PRIVATE_H
# include "datatypes.h"
@ -106,4 +106,4 @@ virObjectEventNew(virClassPtr klass,
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5)
ATTRIBUTE_NONNULL(7);
#endif /* __OBJECT_EVENT_PRIVATE_H__ */
#endif /* LIBVIRT_OBJECT_EVENT_PRIVATE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_SECRET_CONF_H__
# define __VIR_SECRET_CONF_H__
#ifndef LIBVIRT_SECRET_CONF_H
# define LIBVIRT_SECRET_CONF_H
# include "internal.h"
# include "virutil.h"
@ -52,4 +52,4 @@ char *virSecretDefFormat(const virSecretDef *def);
(VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL | \
VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE)
#endif /* __VIR_SECRET_CONF_H__ */
#endif /* LIBVIRT_SECRET_CONF_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __SECRET_EVENT_H__
# define __SECRET_EVENT_H__
#ifndef LIBVIRT_SECRET_EVENT_H
# define LIBVIRT_SECRET_EVENT_H
# include "internal.h"
# include "object_event.h"
@ -62,4 +62,4 @@ virSecretEventValueChangedNew(const unsigned char *uuid,
int usage_type,
const char *usage_id);
#endif /* __SECRET_EVENT_H__ */
#endif /* LIBVIRT_SECRET_EVENT_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __SNAPSHOT_CONF_H
# define __SNAPSHOT_CONF_H
#ifndef LIBVIRT_SNAPSHOT_CONF_H
# define LIBVIRT_SNAPSHOT_CONF_H
# include "internal.h"
# include "domain_conf.h"
@ -189,4 +189,4 @@ int virDomainSnapshotRedefinePrep(virDomainPtr domain,
VIR_ENUM_DECL(virDomainSnapshotLocation)
VIR_ENUM_DECL(virDomainSnapshotState)
#endif /* __SNAPSHOT_CONF_H */
#endif /* LIBVIRT_SNAPSHOT_CONF_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_STORAGE_ADAPTER_CONF_H__
# define __VIR_STORAGE_ADAPTER_CONF_H__
#ifndef LIBVIRT_STORAGE_ADAPTER_CONF_H
# define LIBVIRT_STORAGE_ADAPTER_CONF_H
# include "virpci.h"
# include "virxml.h"
@ -81,4 +81,4 @@ void
virStorageAdapterFormat(virBufferPtr buf,
virStorageAdapterPtr adapter);
#endif /* __VIR_STORAGE_ADAPTER_CONF_H__ */
#endif /* LIBVIRT_STORAGE_ADAPTER_CONF_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_STORAGE_CONF_H__
# define __VIR_STORAGE_CONF_H__
#ifndef LIBVIRT_STORAGE_CONF_H
# define LIBVIRT_STORAGE_CONF_H
# include "internal.h"
# include "virstorageencryption.h"
@ -433,4 +433,4 @@ VIR_ENUM_DECL(virStoragePartedFs)
VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_AUTOSTART | \
VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_POOL_TYPE)
#endif /* __VIR_STORAGE_CONF_H__ */
#endif /* LIBVIRT_STORAGE_CONF_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __STORAGE_EVENT_H__
# define __STORAGE_EVENT_H__
#ifndef LIBVIRT_STORAGE_EVENT_H
# define LIBVIRT_STORAGE_EVENT_H
# include "internal.h"
# include "object_event.h"
@ -61,4 +61,4 @@ virObjectEventPtr
virStoragePoolEventRefreshNew(const char *name,
const unsigned char *uuid);
#endif /* __STORAGE_EVENT_H__ */
#endif /* LIBVIRT_STORAGE_EVENT_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CHRDEV_H__
# define __VIR_CHRDEV_H__
#ifndef LIBVIRT_VIRCHRDEV_H
# define LIBVIRT_VIRCHRDEV_H
# include "internal.h"
# include "domain_conf.h"
@ -34,4 +34,4 @@ void virChrdevFree(virChrdevsPtr devs);
int virChrdevOpen(virChrdevsPtr devs, virDomainChrSourceDefPtr source,
virStreamPtr st, bool force);
#endif /* __VIR_CHRDEV_H__ */
#endif /* LIBVIRT_VIRCHRDEV_H */

View File

@ -20,8 +20,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRDOMAINOBJLIST_H__
# define __VIRDOMAINOBJLIST_H__
#ifndef LIBVIRT_VIRDOMAINOBJLIST_H
# define LIBVIRT_VIRDOMAINOBJLIST_H
# include "domain_conf.h"
@ -150,4 +150,4 @@ int virDomainObjListConvert(virDomainObjListPtr domlist,
unsigned int flags,
bool skip_missing);
#endif /* __VIRDOMAINOBJLIST_H__ */
#endif /* LIBVIRT_VIRDOMAINOBJLIST_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRINTERFACEOBJ_H__
# define __VIRINTERFACEOBJ_H__
#ifndef LIBVIRT_VIRINTERFACEOBJ_H
# define LIBVIRT_VIRINTERFACEOBJ_H
# include "internal.h"
@ -89,4 +89,4 @@ virInterfaceObjListExport(virConnectPtr conn,
virInterfaceObjListFilter filter,
unsigned int flags);
#endif /* __VIRINTERFACEOBJ_H__ */
#endif /* LIBVIRT_VIRINTERFACEOBJ_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRNETWORKOBJ_H__
# define __VIRNETWORKOBJ_H__
#ifndef LIBVIRT_VIRNETWORKOBJ_H
# define LIBVIRT_VIRNETWORKOBJ_H
# include "internal.h"
@ -221,4 +221,4 @@ void
virNetworkObjListPrune(virNetworkObjListPtr nets,
unsigned int flags);
#endif /* __VIRNETWORKOBJ_H__ */
#endif /* LIBVIRT_VIRNETWORKOBJ_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRNODEDEVICEOBJ_H__
# define __VIRNODEDEVICEOBJ_H__
#ifndef LIBVIRT_VIRNODEDEVICEOBJ_H
# define LIBVIRT_VIRNODEDEVICEOBJ_H
# include "internal.h"
# include "virthread.h"
@ -113,4 +113,4 @@ void
virNodeDeviceObjSetSkipUpdateCaps(virNodeDeviceObjPtr obj,
bool skipUpdateCaps);
#endif /* __VIRNODEDEVICEOBJ_H__ */
#endif /* LIBVIRT_VIRNODEDEVICEOBJ_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef VIR_NWFILTER_BINDING_DEF_H
# define VIR_NWFILTER_BINDING_DEF_H
#ifndef LIBVIRT_VIRNWFILTERBINDINGDEF_H
# define LIBVIRT_VIRNWFILTERBINDINGDEF_H
# include "internal.h"
# include "virmacaddr.h"
@ -63,4 +63,4 @@ int
virNWFilterBindingDefFormatBuf(virBufferPtr buf,
const virNWFilterBindingDef *def);
#endif /* VIR_NWFILTER_BINDING_DEF_H */
#endif /* LIBVIRT_VIRNWFILTERBINDINGDEF_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef VIR_NWFILTER_BINDING_OBJ_H
# define VIR_NWFILTER_BINDING_OBJ_H
#ifndef LIBVIRT_VIRNWFILTERBINDINGOBJ_H
# define LIBVIRT_VIRNWFILTERBINDINGOBJ_H
# include "internal.h"
# include "virnwfilterbindingdef.h"
@ -67,4 +67,4 @@ virNWFilterBindingObjParseFile(const char *filename);
char *
virNWFilterBindingObjFormat(const virNWFilterBindingObj *obj);
#endif /* VIR_NWFILTER_BINDING_OBJ_H */
#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJ_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_NWFILTER_BINDING_OBJ_LIST_H__
# define __VIR_NWFILTER_BINDING_OBJ_LIST_H__
#ifndef LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H
# define LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H
# include "virnwfilterbindingobj.h"
@ -64,4 +64,4 @@ virNWFilterBindingObjListExport(virNWFilterBindingObjListPtr bindings,
virNWFilterBindingObjListACLFilter filter);
#endif /* __VIR_NWFILTER_BINDING_OBJ_LIST_H__ */
#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef VIRNWFILTEROBJ_H
# define VIRNWFILTEROBJ_H
#ifndef LIBVIRT_VIRNWFILTEROBJ_H
# define LIBVIRT_VIRNWFILTEROBJ_H
# include "internal.h"
@ -115,4 +115,4 @@ virNWFilterObjLock(virNWFilterObjPtr obj);
void
virNWFilterObjUnlock(virNWFilterObjPtr obj);
#endif /* VIRNWFILTEROBJ_H */
#endif /* LIBVIRT_VIRNWFILTEROBJ_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_SAVE_COOKIE_H__
# define __VIR_SAVE_COOKIE_H__
#ifndef LIBVIRT_VIRSAVECOOKIE_H
# define LIBVIRT_VIRSAVECOOKIE_H
# include <libxml/xpath.h>
@ -60,4 +60,4 @@ char *
virSaveCookieFormat(virObjectPtr obj,
virSaveCookieCallbacksPtr saveCookie);
#endif /* __VIR_SAVE_COOKIE_H__ */
#endif /* LIBVIRT_VIRSAVECOOKIE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRSECRETOBJ_H__
# define __VIRSECRETOBJ_H__
#ifndef LIBVIRT_VIRSECRETOBJ_H
# define LIBVIRT_VIRSECRETOBJ_H
# include "internal.h"
@ -118,4 +118,4 @@ int
virSecretLoadAllConfigs(virSecretObjListPtr secrets,
const char *configDir);
#endif /* __VIRSECRETOBJ_H__ */
#endif /* LIBVIRT_VIRSECRETOBJ_H */

View File

@ -17,8 +17,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIRSTORAGEOBJ_H__
# define __VIRSTORAGEOBJ_H__
#ifndef LIBVIRT_VIRSTORAGEOBJ_H
# define LIBVIRT_VIRSTORAGEOBJ_H
# include "internal.h"
@ -252,4 +252,4 @@ virStoragePoolObjListExport(virConnectPtr conn,
virStoragePoolObjListFilter filter,
unsigned int flags);
#endif /* __VIRSTORAGEOBJ_H__ */
#endif /* LIBVIRT_VIRSTORAGEOBJ_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_H__
# define __VIR_CPU_H__
#ifndef LIBVIRT_CPU_H
# define LIBVIRT_CPU_H
# include "virerror.h"
# include "datatypes.h"
@ -265,4 +265,4 @@ char *virCPUDataFormat(const virCPUData *data)
virCPUDataPtr virCPUDataParse(const char *xmlStr)
ATTRIBUTE_NONNULL(1);
#endif /* __VIR_CPU_H__ */
#endif /* LIBVIRT_CPU_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_ARM_H__
# define __VIR_CPU_ARM_H__
#ifndef LIBVIRT_CPU_ARM_H
# define LIBVIRT_CPU_ARM_H
# include "cpu.h"
extern struct cpuArchDriver cpuDriverArm;
#endif /* __VIR_CPU_ARM_H__ */
#endif /* LIBVIRT_CPU_ARM_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_MAP_H__
# define __VIR_CPU_MAP_H__
#ifndef LIBVIRT_CPU_MAP_H
# define LIBVIRT_CPU_MAP_H
# include "virxml.h"
@ -35,4 +35,4 @@ cpuMapLoad(const char *arch,
cpuMapLoadCallback modelCB,
void *data);
#endif /* __VIR_CPU_MAP_H__ */
#endif /* LIBVIRT_CPU_MAP_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_PPC64_H__
# define __VIR_CPU_PPC64_H__
#ifndef LIBVIRT_CPU_PPC64_H
# define LIBVIRT_CPU_PPC64_H
# include "cpu.h"
extern struct cpuArchDriver cpuDriverPPC64;
#endif /* __VIR_CPU_PPC64_H__ */
#endif /* LIBVIRT_CPU_PPC64_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_PPC64_DATA_H__
# define __VIR_CPU_PPC64_DATA_H__
#ifndef LIBVIRT_CPU_PPC64_DATA_H
# define LIBVIRT_CPU_PPC64_DATA_H
typedef struct _virCPUppc64PVR virCPUppc64PVR;
@ -36,4 +36,4 @@ struct _virCPUppc64Data {
virCPUppc64PVR *pvr;
};
#endif /* __VIR_CPU_PPC64_DATA_H__ */
#endif /* LIBVIRT_CPU_PPC64_DATA_H */

View File

@ -18,11 +18,11 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_S390X_H__
# define __VIR_CPU_S390X_H__
#ifndef LIBVIRT_CPU_S390_H
# define LIBVIRT_CPU_S390_H
# include "cpu.h"
extern struct cpuArchDriver cpuDriverS390;
#endif /* __VIR_CPU_S390X_H__ */
#endif /* LIBVIRT_CPU_S390_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_X86_H__
# define __VIR_CPU_X86_H__
#ifndef LIBVIRT_CPU_X86_H
# define LIBVIRT_CPU_X86_H
# include "cpu.h"
# include "cpu_x86_data.h"
@ -40,4 +40,4 @@ int virCPUx86DataSetVendor(virCPUDataPtr cpuData,
int virCPUx86DataAddFeature(virCPUDataPtr cpuData,
const char *name);
#endif /* __VIR_CPU_X86_H__ */
#endif /* LIBVIRT_CPU_X86_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_CPU_X86_DATA_H__
# define __VIR_CPU_X86_DATA_H__
#ifndef LIBVIRT_CPU_X86_DATA_H
# define LIBVIRT_CPU_X86_DATA_H
typedef struct _virCPUx86CPUID virCPUx86CPUID;
@ -74,4 +74,4 @@ struct _virCPUx86Data {
virCPUx86CPUID *data;
};
#endif /* __VIR_CPU_X86_DATA_H__ */
#endif /* LIBVIRT_CPU_X86_DATA_H */

View File

@ -19,8 +19,8 @@
*
*/
#ifndef __VIR_DATATYPES_H_
# define __VIR_DATATYPES_H_
#ifndef LIBVIRT_DATATYPES_H
# define LIBVIRT_DATATYPES_H
# include "internal.h"
@ -777,4 +777,4 @@ int virAdmConnectCloseCallbackDataRegister(virAdmConnectCloseCallbackDataPtr cbd
int virAdmConnectCloseCallbackDataUnregister(virAdmConnectCloseCallbackDataPtr cbdata,
virAdmConnectCloseFunc cb);
#endif /* __VIR_DATATYPES_H_ */
#endif /* LIBVIRT_DATATYPES_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_HYPERVISOR_H__
# define __VIR_DRIVER_HYPERVISOR_H__
#ifndef LIBVIRT_DRIVER_HYPERVISOR_H
# define LIBVIRT_DRIVER_HYPERVISOR_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -1583,4 +1583,4 @@ struct _virHypervisorDriver {
};
#endif /* __VIR_DRIVER_HYPERVISOR_H__ */
#endif /* LIBVIRT_DRIVER_HYPERVISOR_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_INTERFACE_H__
# define __VIR_DRIVER_INTERFACE_H__
#ifndef LIBVIRT_DRIVER_INTERFACE_H
# define LIBVIRT_DRIVER_INTERFACE_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -119,4 +119,4 @@ struct _virInterfaceDriver {
};
#endif /* __VIR_DRIVER_INTERFACE_H__ */
#endif /* LIBVIRT_DRIVER_INTERFACE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_NETWORK_H__
# define __VIR_DRIVER_NETWORK_H__
#ifndef LIBVIRT_DRIVER_NETWORK_H
# define LIBVIRT_DRIVER_NETWORK_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -154,4 +154,4 @@ struct _virNetworkDriver {
};
#endif /* __VIR_DRIVER_NETWORK_H__ */
#endif /* LIBVIRT_DRIVER_NETWORK_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_NODEDEV_H__
# define __VIR_DRIVER_NODEDEV_H__
#ifndef LIBVIRT_DRIVER_NODEDEV_H
# define LIBVIRT_DRIVER_NODEDEV_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -117,4 +117,4 @@ struct _virNodeDeviceDriver {
};
#endif /* __VIR_DRIVER_NODEDEV_H__ */
#endif /* LIBVIRT_DRIVER_NODEDEV_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_NWFILTER_H__
# define __VIR_DRIVER_NWFILTER_H__
#ifndef LIBVIRT_DRIVER_NWFILTER_H
# define LIBVIRT_DRIVER_NWFILTER_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -110,4 +110,4 @@ struct _virNWFilterDriver {
};
#endif /* __VIR_DRIVER_NWFILTER_H__ */
#endif /* LIBVIRT_DRIVER_NWFILTER_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_SECRET_H__
# define __VIR_DRIVER_SECRET_H__
#ifndef LIBVIRT_DRIVER_SECRET_H
# define LIBVIRT_DRIVER_SECRET_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -115,4 +115,4 @@ struct _virSecretDriver {
};
#endif /* __VIR_DRIVER_SECRET_H__ */
#endif /* LIBVIRT_DRIVER_SECRET_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_STATE_H__
# define __VIR_DRIVER_STATE_H__
#ifndef LIBVIRT_DRIVER_STATE_H
# define LIBVIRT_DRIVER_STATE_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -55,4 +55,4 @@ struct _virStateDriver {
};
#endif /* __VIR_DRIVER_STATE_H__ */
#endif /* LIBVIRT_DRIVER_STATE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_STORAGE_H__
# define __VIR_DRIVER_STORAGE_H__
#ifndef LIBVIRT_DRIVER_STORAGE_H
# define LIBVIRT_DRIVER_STORAGE_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -276,4 +276,4 @@ struct _virStorageDriver {
};
#endif /* __VIR_DRIVER_STORAGE_H__ */
#endif /* LIBVIRT_DRIVER_STORAGE_H */

View File

@ -18,8 +18,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_STREAM_H__
# define __VIR_DRIVER_STREAM_H__
#ifndef LIBVIRT_DRIVER_STREAM_H
# define LIBVIRT_DRIVER_STREAM_H
# ifndef __VIR_DRIVER_H_INCLUDES___
# error "Don't include this file directly, only use driver.h"
@ -94,4 +94,4 @@ struct _virStreamDriver {
};
#endif /* __VIR_DRIVER_STREAM_H__ */
#endif /* LIBVIRT_DRIVER_STREAM_H */

View File

@ -19,8 +19,8 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef __VIR_DRIVER_H__
# define __VIR_DRIVER_H__
#ifndef LIBVIRT_DRIVER_H
# define LIBVIRT_DRIVER_H
# include <unistd.h>
@ -127,4 +127,4 @@ int virSetConnectNodeDev(virConnectPtr conn);
int virSetConnectSecret(virConnectPtr conn);
int virSetConnectStorage(virConnectPtr conn);
#endif /* __VIR_DRIVER_H__ */
#endif /* LIBVIRT_DRIVER_H */

View File

@ -20,9 +20,9 @@
*
*/
#ifndef __ESX_DRIVER_H__
# define __ESX_DRIVER_H__
#ifndef LIBVIRT_ESX_DRIVER_H
# define LIBVIRT_ESX_DRIVER_H
int esxRegister(void);
#endif /* __ESX_DRIVER_H__ */
#endif /* LIBVIRT_ESX_DRIVER_H */

View File

@ -20,11 +20,11 @@
*
*/
#ifndef __ESX_INTERFACE_DRIVER_H__
# define __ESX_INTERFACE_DRIVER_H__
#ifndef LIBVIRT_ESX_INTERFACE_DRIVER_H
# define LIBVIRT_ESX_INTERFACE_DRIVER_H
# include "driver.h"
extern virInterfaceDriver esxInterfaceDriver;
#endif /* __ESX_INTERFACE_DRIVER_H__ */
#endif /* LIBVIRT_ESX_INTERFACE_DRIVER_H */

Some files were not shown because too many files have changed in this diff Show More