&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;
} 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 ".*"$/) {
} 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$/) {
# 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] == '"':
* <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" {
}
# endif
-#endif /* __VIR_ADMIN_H__ */
+#endif /* LIBVIRT_ADMIN_H */
* <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"
int virDomainSnapshotRef(virDomainSnapshotPtr snapshot);
int virDomainSnapshotFree(virDomainSnapshotPtr snapshot);
-#endif /* __VIR_LIBVIRT_DOMAIN_SNAPSHOT_H__ */
+#endif /* LIBVIRT_DOMAIN_SNAPSHOT_H */
* <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"
int *nparams,
unsigned int flags);
-#endif /* __VIR_LIBVIRT_DOMAIN_H__ */
+#endif /* LIBVIRT_DOMAIN_H */
* <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"
int virEventRemoveTimeout(int timer);
-#endif /* __VIR_LIBVIRT_EVENT_H__ */
+#endif /* LIBVIRT_EVENT_H */
* <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"
unsigned int flags);
-#endif /* __VIR_LIBVIRT_HOST_H__ */
+#endif /* LIBVIRT_HOST_H */
* <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"
int virInterfaceIsActive(virInterfacePtr iface);
-#endif /* __VIR_LIBVIRT_INTERFACE_H__ */
+#endif /* LIBVIRT_INTERFACE_H */
* <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>
}
# endif
-#endif /* __VIR_LXC_H__ */
+#endif /* LIBVIRT_LXC_H */
* <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"
int virConnectNetworkEventDeregisterAny(virConnectPtr conn,
int callbackID);
-#endif /* __VIR_LIBVIRT_NETWORK_H__ */
+#endif /* LIBVIRT_NETWORK_H */
* <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"
int detail,
void *opaque);
-#endif /* __VIR_LIBVIRT_NODEDEV_H__ */
+#endif /* LIBVIRT_NODEDEV_H */
* <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"
int virNWFilterBindingRef(virNWFilterBindingPtr binding);
int virNWFilterBindingFree(virNWFilterBindingPtr binding);
-#endif /* __VIR_LIBVIRT_NWFILTER_H__ */
+#endif /* LIBVIRT_NWFILTER_H */
* <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>
}
# endif
-#endif /* __VIR_QEMU_H__ */
+#endif /* LIBVIRT_QEMU_H */
* <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"
void *opaque);
-#endif /* __VIR_LIBVIRT_SECRET_H__ */
+#endif /* LIBVIRT_SECRET_H */
* <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"
int detail,
void *opaque);
-#endif /* __VIR_LIBVIRT_STORAGE_H__ */
+#endif /* LIBVIRT_STORAGE_H */
* <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"
int virStreamFree(virStreamPtr st);
-#endif /* __VIR_LIBVIRT_STREAM_H__ */
+#endif /* LIBVIRT_STREAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_VIRLIB_H__
-# define __VIR_VIRLIB_H__
+#ifndef LIBVIRT_H
+# define LIBVIRT_H
# include <sys/types.h>
}
# endif
-#endif /* __VIR_VIRLIB_H__ */
+#endif /* LIBVIRT_H */
* <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>
}
# endif
-#endif /* __VIR_VIRERR_H__ */
+#endif /* LIBVIRT_VIRTERROR_H */
* <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"
};
-#endif /* __VIR_ACCESS_DRIVER_H__ */
+#endif /* LIBVIRT_VIRACCESSDRIVER_H */
* <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 */
* <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 */
* <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"
extern virAccessDriver accessDriverStack;
-#endif /* __VIR_ACCESS_DRIVER_STACK_H__ */
+#endif /* LIBVIRT_VIRACCESSDRIVERSTACK_H */
* <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"
virAccessPermStorageVol perm);
-#endif /* __VIR_ACCESS_MANAGER_H__ */
+#endif /* LIBVIRT_VIRACCESSMANAGER_H */
* <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"
VIR_ENUM_DECL(virAccessPermStoragePool);
VIR_ENUM_DECL(virAccessPermStorageVol);
-#endif /* __VIR_ACCESS_PERM_H__ */
+#endif /* LIBVIRT_VIRACCESSPERM_H */
* <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"
int nparams,
unsigned int flags);
-#endif /* __ADMIN_SERVER_H__ */
+#endif /* LIBVIRT_ADMIN_SERVER_H */
* <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"
virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client,
void *data);
-#endif /* __ADMIN_SERVER_DISPATCH_H__ */
+#endif /* LIBVIRT_ADMIN_SERVER_DISPATCH_H */
*
*/
-#ifndef _BHYVE_CAPABILITIES
-# define _BHYVE_CAPABILITIES
+#ifndef LIBVIRT_BHYVE_CAPABILITIES_H
+# define LIBVIRT_BHYVE_CAPABILITIES_H
# include "capabilities.h"
# include "conf/domain_capabilities.h"
int virBhyveProbeGrubCaps(virBhyveGrubCapsFlags *caps);
int virBhyveProbeCaps(unsigned int *caps);
-#endif /* _BHYVE_CAPABILITIES */
+#endif /* LIBVIRT_BHYVE_CAPABILITIES_H */
*
*/
-#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"
virBhyveProcessBuildLoadCmd(virConnectPtr conn, virDomainDefPtr def,
const char *devmap_file, char **devicesmap_out);
-#endif /* __BHYVE_COMMAND_H__ */
+#endif /* LIBVIRT_BHYVE_COMMAND_H */
*
*/
-#ifndef BHYVE_CONF_H
-# define BHYVE_CONF_H
+#ifndef LIBVIRT_BHYVE_CONF_H
+# define LIBVIRT_BHYVE_CONF_H
# include "bhyve_utils.h"
int virBhyveLoadDriverConfig(virBhyveDriverConfigPtr cfg,
const char *filename);
-#endif /* BHYVE_CONF_H */
+#endif /* LIBVIRT_BHYVE_CONF_H */
* <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"
int bhyveDomainAssignAddresses(virDomainDefPtr def, virDomainObjPtr obj)
ATTRIBUTE_NONNULL(1);
-#endif /* __BHYVE_DEVICE_H__ */
+#endif /* LIBVIRT_BHYVE_DEVICE_H */
* <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"
extern virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks;
extern virDomainDefParserConfig virBhyveDriverDomainDefParserConfig;
-#endif /* __BHYVE_DOMAIN_H__ */
+#endif /* LIBVIRT_BHYVE_DOMAIN_H */
* <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"
virCapsPtr bhyveDriverGetCapabilities(bhyveConnPtr driver);
-#endif /* __BHYVE_DRIVER_H__ */
+#endif /* LIBVIRT_BHYVE_DRIVER_H */
* <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"
bhyveMonitorPtr bhyveMonitorOpen(virDomainObjPtr vm, bhyveConnPtr driver);
void bhyveMonitorClose(bhyveMonitorPtr mon);
-#endif /* BHYVE_MONITOR_H */
+#endif /* LIBVIRT_BHYVE_MONITOR_H */
* <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 */
*
*/
-#ifndef __BHYVE_PROCESS_H__
-# define __BHYVE_PROCESS_H__
+#ifndef LIBVIRT_BHYVE_PROCESS_H
+# define LIBVIRT_BHYVE_PROCESS_H
# include "bhyve_utils.h"
VIR_BHYVE_PROCESS_START_AUTODESTROY = 1 << 0,
} bhyveProcessStartFlags;
-#endif /* __BHYVE_PROCESS_H__ */
+#endif /* LIBVIRT_BHYVE_PROCESS_H */
*
*/
-#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"
void bhyveDriverLock(bhyveConnPtr driver);
void bhyveDriverUnlock(bhyveConnPtr driver);
-#endif /* __BHYVE_UTILS_H__ */
+#endif /* LIBVIRT_BHYVE_UTILS_H */
* <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"
void virCapabilitiesHostInitIOMMU(virCapsPtr caps);
-#endif /* __VIR_CAPABILITIES_H */
+#endif /* LIBVIRT_CAPABILITIES_H */
* <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"
void
virCPUDefListFree(virCPUDefPtr *cpus);
-#endif /* __VIR_CPU_CONF_H__ */
+#endif /* LIBVIRT_CPU_CONF_H */
* <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>
int virInterfaceLinkFormat(virBufferPtr buf,
const virNetDevIfLink *lnk);
-#endif /* __DEVICE_CONF_H__ */
+#endif /* LIBVIRT_DEVICE_CONF_H */
* <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"
virDomainUSBAddressRelease(virDomainUSBAddressSetPtr addrs,
virDomainDeviceInfoPtr info)
ATTRIBUTE_NONNULL(2);
-#endif /* __DOMAIN_ADDR_H__ */
+#endif /* LIBVIRT_DOMAIN_ADDR_H */
* <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"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
-#endif /* __VIR_DOMAIN_AUDIT_H__ */
+#endif /* LIBVIRT_DOMAIN_AUDIT_H */
* <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"
VIR_DEFINE_AUTOPTR_FUNC(virSEVCapability, virSEVCapabilitiesFree);
-#endif /* __DOMAIN_CAPABILITIES_H__ */
+#endif /* LIBVIRT_DOMAIN_CAPABILITIES_H */
* <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>
bool
virDomainGraphicsNeedsAutoRenderNode(const virDomainGraphicsDef *graphics);
-#endif /* __DOMAIN_CONF_H */
+#endif /* LIBVIRT_DOMAIN_CONF_H */
* <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"
const char *details)
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
-#endif /* __DOMAIN_EVENT_H__ */
+#endif /* LIBVIRT_DOMAIN_EVENT_H */
* <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,
void virDomainConfNWFilterTeardown(virDomainNetDefPtr net);
void virDomainConfVMNWFilterTeardown(virDomainObjPtr vm);
-#endif /* DOMAIN_NWFILTER_H */
+#endif /* LIBVIRT_DOMAIN_NWFILTER_H */
* 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>
(VIR_CONNECT_LIST_INTERFACES_ACTIVE | \
VIR_CONNECT_LIST_INTERFACES_INACTIVE)
-#endif /* __INTERFACE_CONF_H__ */
+#endif /* LIBVIRT_INTERFACE_CONF_H */
* <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"
return false;
}
-#endif /* __VIR_NETDEV_BANDWIDTH_CONF_H__ */
+#endif /* LIBVIRT_NETDEV_BANDWIDTH_CONF_H */
* <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"
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 */
* <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"
virBufferPtr buf);
-#endif /* __VIR_NETDEV_VPORT_PROFILE_CONF_H__ */
+#endif /* LIBVIRT_NETDEV_VPORT_PROFILE_CONF_H */
* <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 */
unsigned int flags); /* virNetworkUpdateFlags */
VIR_ENUM_DECL(virNetworkTaint)
-#endif /* __NETWORK_CONF_H__ */
+#endif /* LIBVIRT_NETWORK_CONF_H */
* <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"
int type,
int detail);
-#endif /* __NETWORK_EVENT_H__ */
+#endif /* LIBVIRT_NETWORK_EVENT_H */
* <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>
virNetDevIPRouteFormat(virBufferPtr buf,
const virNetDevIPRoute *def);
-#endif /* __NETWORKCOMMON_CONF_H__ */
+#endif /* LIBVIRT_NETWORKCOMMON_CONF_H */
* <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"
virNodeDeviceCapsListExport(virNodeDeviceDefPtr def,
virNodeDevCapType **list);
-#endif /* __VIR_NODE_DEVICE_CONF_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_CONF_H */
* <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"
virObjectEventPtr
virNodeDeviceEventUpdateNew(const char *name);
-#endif /* __NODE_DEVICE_EVENT_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_EVENT_H */
* <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"
virNodeDeviceDeleteVport(virConnectPtr conn,
virStorageAdapterFCHostPtr fchost);
-#endif /* __VIR_NODE_DEVICE_UTIL_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_UTIL_H */
* <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>
unsigned int virDomainNumaGetCPUCountTotal(virDomainNumaPtr numa);
-#endif /* __NUMA_CONF_H__ */
+#endif /* LIBVIRT_NUMA_CONF_H */
* <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"
VIR_ENUM_DECL(virNWFilterEbtablesTable);
VIR_ENUM_DECL(virNWFilterChainSuffix);
-#endif /* NWFILTER_CONF_H */
+#endif /* LIBVIRT_NWFILTER_CONF_H */
*
*/
-#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);
const char *ipaddr);
virNWFilterVarValuePtr virNWFilterIPAddrMapGetIPAddr(const char *ifname);
-#endif /* __VIR_NWFILTER_IPADDRMAP_H */
+#endif /* LIBVIRT_NWFILTER_IPADDRMAP_H */
* <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"
const virNWFilterVarAccess *);
-#endif /* NWFILTER_PARAMS_H */
+#endif /* LIBVIRT_NWFILTER_PARAMS_H */
* <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"
int remoteID)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-#endif /* __OBJECT_EVENT_H__ */
+#endif /* LIBVIRT_OBJECT_EVENT_H */
* <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"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5)
ATTRIBUTE_NONNULL(7);
-#endif /* __OBJECT_EVENT_PRIVATE_H__ */
+#endif /* LIBVIRT_OBJECT_EVENT_PRIVATE_H */
* <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"
(VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL | \
VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE)
-#endif /* __VIR_SECRET_CONF_H__ */
+#endif /* LIBVIRT_SECRET_CONF_H */
* <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"
int usage_type,
const char *usage_id);
-#endif /* __SECRET_EVENT_H__ */
+#endif /* LIBVIRT_SECRET_EVENT_H */
* <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"
VIR_ENUM_DECL(virDomainSnapshotLocation)
VIR_ENUM_DECL(virDomainSnapshotState)
-#endif /* __SNAPSHOT_CONF_H */
+#endif /* LIBVIRT_SNAPSHOT_CONF_H */
* <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"
virStorageAdapterFormat(virBufferPtr buf,
virStorageAdapterPtr adapter);
-#endif /* __VIR_STORAGE_ADAPTER_CONF_H__ */
+#endif /* LIBVIRT_STORAGE_ADAPTER_CONF_H */
* <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"
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 */
* <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"
virStoragePoolEventRefreshNew(const char *name,
const unsigned char *uuid);
-#endif /* __STORAGE_EVENT_H__ */
+#endif /* LIBVIRT_STORAGE_EVENT_H */
* <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"
int virChrdevOpen(virChrdevsPtr devs, virDomainChrSourceDefPtr source,
virStreamPtr st, bool force);
-#endif /* __VIR_CHRDEV_H__ */
+#endif /* LIBVIRT_VIRCHRDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIRDOMAINOBJLIST_H__
-# define __VIRDOMAINOBJLIST_H__
+#ifndef LIBVIRT_VIRDOMAINOBJLIST_H
+# define LIBVIRT_VIRDOMAINOBJLIST_H
# include "domain_conf.h"
unsigned int flags,
bool skip_missing);
-#endif /* __VIRDOMAINOBJLIST_H__ */
+#endif /* LIBVIRT_VIRDOMAINOBJLIST_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIRINTERFACEOBJ_H__
-# define __VIRINTERFACEOBJ_H__
+#ifndef LIBVIRT_VIRINTERFACEOBJ_H
+# define LIBVIRT_VIRINTERFACEOBJ_H
# include "internal.h"
virInterfaceObjListFilter filter,
unsigned int flags);
-#endif /* __VIRINTERFACEOBJ_H__ */
+#endif /* LIBVIRT_VIRINTERFACEOBJ_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIRNETWORKOBJ_H__
-# define __VIRNETWORKOBJ_H__
+#ifndef LIBVIRT_VIRNETWORKOBJ_H
+# define LIBVIRT_VIRNETWORKOBJ_H
# include "internal.h"
virNetworkObjListPrune(virNetworkObjListPtr nets,
unsigned int flags);
-#endif /* __VIRNETWORKOBJ_H__ */
+#endif /* LIBVIRT_VIRNETWORKOBJ_H */
* <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"
virNodeDeviceObjSetSkipUpdateCaps(virNodeDeviceObjPtr obj,
bool skipUpdateCaps);
-#endif /* __VIRNODEDEVICEOBJ_H__ */
+#endif /* LIBVIRT_VIRNODEDEVICEOBJ_H */
*
*/
-#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"
virNWFilterBindingDefFormatBuf(virBufferPtr buf,
const virNWFilterBindingDef *def);
-#endif /* VIR_NWFILTER_BINDING_DEF_H */
+#endif /* LIBVIRT_VIRNWFILTERBINDINGDEF_H */
*
*/
-#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"
char *
virNWFilterBindingObjFormat(const virNWFilterBindingObj *obj);
-#endif /* VIR_NWFILTER_BINDING_OBJ_H */
+#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJ_H */
* <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"
virNWFilterBindingObjListACLFilter filter);
-#endif /* __VIR_NWFILTER_BINDING_OBJ_LIST_H__ */
+#endif /* LIBVIRT_VIRNWFILTERBINDINGOBJLIST_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIRNWFILTEROBJ_H
-# define VIRNWFILTEROBJ_H
+#ifndef LIBVIRT_VIRNWFILTEROBJ_H
+# define LIBVIRT_VIRNWFILTEROBJ_H
# include "internal.h"
void
virNWFilterObjUnlock(virNWFilterObjPtr obj);
-#endif /* VIRNWFILTEROBJ_H */
+#endif /* LIBVIRT_VIRNWFILTEROBJ_H */
* <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>
virSaveCookieFormat(virObjectPtr obj,
virSaveCookieCallbacksPtr saveCookie);
-#endif /* __VIR_SAVE_COOKIE_H__ */
+#endif /* LIBVIRT_VIRSAVECOOKIE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIRSECRETOBJ_H__
-# define __VIRSECRETOBJ_H__
+#ifndef LIBVIRT_VIRSECRETOBJ_H
+# define LIBVIRT_VIRSECRETOBJ_H
# include "internal.h"
virSecretLoadAllConfigs(virSecretObjListPtr secrets,
const char *configDir);
-#endif /* __VIRSECRETOBJ_H__ */
+#endif /* LIBVIRT_VIRSECRETOBJ_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIRSTORAGEOBJ_H__
-# define __VIRSTORAGEOBJ_H__
+#ifndef LIBVIRT_VIRSTORAGEOBJ_H
+# define LIBVIRT_VIRSTORAGEOBJ_H
# include "internal.h"
virStoragePoolObjListFilter filter,
unsigned int flags);
-#endif /* __VIRSTORAGEOBJ_H__ */
+#endif /* LIBVIRT_VIRSTORAGEOBJ_H */
* <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"
virCPUDataPtr virCPUDataParse(const char *xmlStr)
ATTRIBUTE_NONNULL(1);
-#endif /* __VIR_CPU_H__ */
+#endif /* LIBVIRT_CPU_H */
* <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 */
* <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"
cpuMapLoadCallback modelCB,
void *data);
-#endif /* __VIR_CPU_MAP_H__ */
+#endif /* LIBVIRT_CPU_MAP_H */
* <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 */
* <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;
virCPUppc64PVR *pvr;
};
-#endif /* __VIR_CPU_PPC64_DATA_H__ */
+#endif /* LIBVIRT_CPU_PPC64_DATA_H */
* <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 */
* <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"
int virCPUx86DataAddFeature(virCPUDataPtr cpuData,
const char *name);
-#endif /* __VIR_CPU_X86_H__ */
+#endif /* LIBVIRT_CPU_X86_H */
* <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;
virCPUx86CPUID *data;
};
-#endif /* __VIR_CPU_X86_DATA_H__ */
+#endif /* LIBVIRT_CPU_X86_DATA_H */
*
*/
-#ifndef __VIR_DATATYPES_H_
-# define __VIR_DATATYPES_H_
+#ifndef LIBVIRT_DATATYPES_H
+# define LIBVIRT_DATATYPES_H
# include "internal.h"
int virAdmConnectCloseCallbackDataUnregister(virAdmConnectCloseCallbackDataPtr cbdata,
virAdmConnectCloseFunc cb);
-#endif /* __VIR_DATATYPES_H_ */
+#endif /* LIBVIRT_DATATYPES_H */
* <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"
};
-#endif /* __VIR_DRIVER_HYPERVISOR_H__ */
+#endif /* LIBVIRT_DRIVER_HYPERVISOR_H */
* <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"
};
-#endif /* __VIR_DRIVER_INTERFACE_H__ */
+#endif /* LIBVIRT_DRIVER_INTERFACE_H */
* <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"
};
-#endif /* __VIR_DRIVER_NETWORK_H__ */
+#endif /* LIBVIRT_DRIVER_NETWORK_H */
* <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"
};
-#endif /* __VIR_DRIVER_NODEDEV_H__ */
+#endif /* LIBVIRT_DRIVER_NODEDEV_H */
* <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"
};
-#endif /* __VIR_DRIVER_NWFILTER_H__ */
+#endif /* LIBVIRT_DRIVER_NWFILTER_H */
* <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"
};
-#endif /* __VIR_DRIVER_SECRET_H__ */
+#endif /* LIBVIRT_DRIVER_SECRET_H */
* <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"
};
-#endif /* __VIR_DRIVER_STATE_H__ */
+#endif /* LIBVIRT_DRIVER_STATE_H */
* <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"
};
-#endif /* __VIR_DRIVER_STORAGE_H__ */
+#endif /* LIBVIRT_DRIVER_STORAGE_H */
* <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"
};
-#endif /* __VIR_DRIVER_STREAM_H__ */
+#endif /* LIBVIRT_DRIVER_STREAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_DRIVER_H__
-# define __VIR_DRIVER_H__
+#ifndef LIBVIRT_DRIVER_H
+# define LIBVIRT_DRIVER_H
# include <unistd.h>
int virSetConnectSecret(virConnectPtr conn);
int virSetConnectStorage(virConnectPtr conn);
-#endif /* __VIR_DRIVER_H__ */
+#endif /* LIBVIRT_DRIVER_H */
*
*/
-#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 */
*
*/
-#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 */
*
*/
-#ifndef __ESX_NETWORK_DRIVER_H__
-# define __ESX_NETWORK_DRIVER_H__
+#ifndef LIBVIRT_ESX_NETWORK_DRIVER_H
+# define LIBVIRT_ESX_NETWORK_DRIVER_H
# include "driver.h"
extern virNetworkDriver esxNetworkDriver;
-#endif /* __ESX_NETWORK_DRIVER_H__ */
+#endif /* LIBVIRT_ESX_NETWORK_DRIVER_H */
*
*/
-#ifndef __ESX_PRIVATE_H__
-# define __ESX_PRIVATE_H__
+#ifndef LIBVIRT_ESX_PRIVATE_H
+# define LIBVIRT_ESX_PRIVATE_H
# include "internal.h"
# include "virerror.h"
int32_t usedCpuTimeCounterId;
} esxPrivate;
-#endif /* __ESX_PRIVATE_H__ */
+#endif /* LIBVIRT_ESX_PRIVATE_H */
*
*/
-#ifndef __ESX_STORAGE_BACKEND_ISCSI_H__
-# define __ESX_STORAGE_BACKEND_ISCSI_H__
+#ifndef LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H
+# define LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H
# include "driver.h"
extern virStorageDriver esxStorageBackendISCSI;
-#endif /* __ESX_STORAGE_BACKEND_ISCSI_H__ */
+#endif /* LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H */
*
*/
-#ifndef __ESX_STORAGE_BACKEND_VMFS_H__
-# define __ESX_STORAGE_BACKEND_VMFS_H__
+#ifndef LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H
+# define LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H
# include "driver.h"
extern virStorageDriver esxStorageBackendVMFS;
-#endif /* __ESX_STORAGE_BACKEND_VMFS_H__ */
+#endif /* LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H */
*
*/
-#ifndef __ESX_STORAGE_DRIVER_H__
-# define __ESX_STORAGE_DRIVER_H__
+#ifndef LIBVIRT_ESX_STORAGE_DRIVER_H
+# define LIBVIRT_ESX_STORAGE_DRIVER_H
# include "driver.h"
extern virStorageDriver esxStorageDriver;
-#endif /* __ESX_STORAGE_DRIVER_H__ */
+#endif /* LIBVIRT_ESX_STORAGE_DRIVER_H */
*
*/
-#ifndef __ESX_STREAM_H__
-# define __ESX_STREAM_H__
+#ifndef LIBVIRT_ESX_STREAM_H
+# define LIBVIRT_ESX_STREAM_H
# include "internal.h"
# include "esx_private.h"
int esxStreamOpenDownload(virStreamPtr stream, esxPrivate *priv, const char *url,
unsigned long long offset, unsigned long long length);
-#endif /* __ESX_STREAM_H__ */
+#endif /* LIBVIRT_ESX_STREAM_H */
*
*/
-#ifndef __ESX_UTIL_H__
-# define __ESX_UTIL_H__
+#ifndef LIBVIRT_ESX_UTIL_H
+# define LIBVIRT_ESX_UTIL_H
# include <netdb.h>
# include "internal.h"
char *esxUtil_EscapeForXml(const char *string);
-#endif /* __ESX_UTIL_H__ */
+#endif /* LIBVIRT_ESX_UTIL_H */
*
*/
-#ifndef __ESX_VI_H__
-# define __ESX_VI_H__
+#ifndef LIBVIRT_ESX_VI_H
+# define LIBVIRT_ESX_VI_H
# include <libxml/tree.h>
# include <libxml/xpath.h>
# include "esx_vi.generated.h"
-#endif /* __ESX_VI_H__ */
+#endif /* LIBVIRT_ESX_VI_H */
*
*/
-#ifndef __ESX_VI_METHODS_H__
-# define __ESX_VI_METHODS_H__
+#ifndef LIBVIRT_ESX_VI_METHODS_H
+# define LIBVIRT_ESX_VI_METHODS_H
# include "esx_vi.h"
# include "esx_vi_types.h"
# include "esx_vi_methods.generated.h"
-#endif /* __ESX_VI_METHODS_H__ */
+#endif /* LIBVIRT_ESX_VI_METHODS_H */
*
*/
-#ifndef __ESX_VI_TYPES_H__
-# define __ESX_VI_TYPES_H__
+#ifndef LIBVIRT_ESX_VI_TYPES_H
+# define LIBVIRT_ESX_VI_TYPES_H
# include "virbuffer.h"
int esxVI_VirtualMachinePowerState_ConvertToLibvirt
(esxVI_VirtualMachinePowerState powerState);
-#endif /* __ESX_VI_TYPES_H__ */
+#endif /* LIBVIRT_ESX_VI_TYPES_H */
*
*/
-#ifndef __HYPERV_DRIVER_H__
-# define __HYPERV_DRIVER_H__
+#ifndef LIBVIRT_HYPERV_DRIVER_H
+# define LIBVIRT_HYPERV_DRIVER_H
int hypervRegister(void);
-#endif /* __HYPERV_DRIVER_H__ */
+#endif /* LIBVIRT_HYPERV_DRIVER_H */
*
*/
-#ifndef __HYPERV_PRIVATE_H__
-# define __HYPERV_PRIVATE_H__
+#ifndef LIBVIRT_HYPERV_PRIVATE_H
+# define LIBVIRT_HYPERV_PRIVATE_H
# include "internal.h"
# include "virerror.h"
hypervWmiVersion wmiVersion;
};
-#endif /* __HYPERV_PRIVATE_H__ */
+#endif /* LIBVIRT_HYPERV_PRIVATE_H */
*
*/
-#ifndef __HYPERV_UTIL_H__
-# define __HYPERV_UTIL_H__
+#ifndef LIBVIRT_HYPERV_UTIL_H
+# define LIBVIRT_HYPERV_UTIL_H
# include "internal.h"
# include "viruri.h"
void hypervFreeParsedUri(hypervParsedUri **parsedUri);
-#endif /* __HYPERV_UTIL_H__ */
+#endif /* LIBVIRT_HYPERV_UTIL_H */
*
*/
-#ifndef __HYPERV_WMI_H__
-# define __HYPERV_WMI_H__
+#ifndef LIBVIRT_HYPERV_WMI_H
+# define LIBVIRT_HYPERV_WMI_H
# include "virbuffer.h"
# include "hyperv_private.h"
int hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
Msvm_ComputerSystem **computerSystem);
-#endif /* __HYPERV_WMI_H__ */
+#endif /* LIBVIRT_HYPERV_WMI_H */
*
*/
-#ifndef __HYPERV_WMI_CLASSES_H__
-# define __HYPERV_WMI_CLASSES_H__
+#ifndef LIBVIRT_HYPERV_WMI_CLASSES_H
+# define LIBVIRT_HYPERV_WMI_CLASSES_H
# include "internal.h"
# include "openwsman.h"
# include "hyperv_wmi_classes.generated.h"
-#endif /* __HYPERV_WMI_CLASSES_H__ */
+#endif /* LIBVIRT_HYPERV_WMI_CLASSES_H */
*
*/
-#ifndef __OPENWSMAN_H__
-# define __OPENWSMAN_H__
+#ifndef LIBVIRT_OPENWSMAN_H
+# define LIBVIRT_OPENWSMAN_H
/* Workaround openwsman <= 2.2.6 unconditionally defining optarg. Just pretend
* that u/os.h was already included. Need to explicitly include time.h because
WsXmlDocH ws_xml_create_doc(const char *rootNsUri, const char *rootName);
WsXmlNodeH xml_parser_get_root(WsXmlDocH doc);
-#endif /* __OPENWSMAN_H__ */
+#endif /* LIBVIRT_OPENWSMAN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_INTERFACE__DRIVER_H
-# define __VIR_INTERFACE__DRIVER_H
+#ifndef LIBVIRT_INTERFACE_DRIVER_H
+# define LIBVIRT_INTERFACE_DRIVER_H
int interfaceRegister(void);
int netcfIfaceRegister(void);
int udevIfaceRegister(void);
-#endif /* __VIR_INTERFACE__DRIVER_H */
+#endif /* LIBVIRT_INTERFACE_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_INTERNAL_H__
-# define __VIR_INTERNAL_H__
+#ifndef LIBVIRT_INTERNAL_H
+# define LIBVIRT_INTERNAL_H
# include <errno.h>
# include <limits.h>
# define ENODATA EIO
# endif
-#endif /* __VIR_INTERNAL_H__ */
+#endif /* LIBVIRT_INTERNAL_H */
* include/libvirt/libvirt.h apply. ie this file is *append* only
*/
-#ifndef __LIBVIRT_H_
-# define __LIBVIRT_H_
+#ifndef LIBVIRT_LIBVIRT_INTERNAL_H
+# define LIBVIRT_LIBVIRT_INTERNAL_H
# include "internal.h"
int *data,
long long *length);
-#endif /* __LIBVIRT_H_ */
+#endif /* LIBVIRT_LIBVIRT_INTERNAL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBXL_CAPABILITIES_H
-# define LIBXL_CAPABILITIES_H
+#ifndef LIBVIRT_LIBXL_CAPABILITIES_H
+# define LIBVIRT_LIBXL_CAPABILITIES_H
# include <libxl.h>
int
libxlDomainGetEmulatorType(const virDomainDef *def);
-#endif /* LIBXL_CAPABILITIES_H */
+#endif /* LIBVIRT_LIBXL_CAPABILITIES_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBXL_CONF_H
-# define LIBXL_CONF_H
+#ifndef LIBVIRT_LIBXL_CONF_H
+# define LIBVIRT_LIBXL_CONF_H
# include <libxl.h>
virMutexUnlock(&driver->lock);
}
-#endif /* LIBXL_CONF_H */
+#endif /* LIBVIRT_LIBXL_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBXL_DOMAIN_H
-# define LIBXL_DOMAIN_H
+#ifndef LIBVIRT_LIBXL_DOMAIN_H
+# define LIBVIRT_LIBXL_DOMAIN_H
# include <libxl.h>
virDomainDefPtr src,
virDomainDefPtr dst);
-#endif /* LIBXL_DOMAIN_H */
+#endif /* LIBVIRT_LIBXL_DOMAIN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBXL_DRIVER_H
-# define LIBXL_DRIVER_H
+#ifndef LIBVIRT_LIBXL_DRIVER_H
+# define LIBVIRT_LIBXL_DRIVER_H
int libxlRegister(void);
-#endif /* LIBXL_DRIVER_H */
+#endif /* LIBVIRT_LIBXL_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LIBXL_LOGGER_H
-# define __LIBXL_LOGGER_H
+#ifndef LIBVIRT_LIBXL_LOGGER_H
+# define LIBVIRT_LIBXL_LOGGER_H
# include "util/virlog.h"
const char *domain_config);
void libxlLoggerCloseFile(libxlLoggerPtr logger, int id);
-#endif /* __LIBXL_LOGGER_H */
+#endif /* LIBVIRT_LIBXL_LOGGER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBXL_MIGRATION_H
-# define LIBXL_MIGRATION_H
+#ifndef LIBVIRT_LIBXL_MIGRATION_H
+# define LIBVIRT_LIBXL_MIGRATION_H
# include "libxl_conf.h"
unsigned int flags,
int cancelled);
-#endif /* LIBXL_MIGRATION_H */
+#endif /* LIBVIRT_LIBXL_MIGRATION_H */
*
*/
-#ifndef __VIR_DOMAIN_LOCK_H__
-# define __VIR_DOMAIN_LOCK_H__
+#ifndef LIBVIRT_DOMAIN_LOCK_H
+# define LIBVIRT_DOMAIN_LOCK_H
# include "internal.h"
# include "domain_conf.h"
virDomainObjPtr dom,
virDomainLeaseDefPtr lease);
-#endif /* __VIR_DOMAIN_LOCK_H__ */
+#endif /* LIBVIRT_DOMAIN_LOCK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOCK_DAEMON_H__
-# define __VIR_LOCK_DAEMON_H__
+#ifndef LIBVIRT_LOCK_DAEMON_H
+# define LIBVIRT_LOCK_DAEMON_H
# include "virlockspace.h"
# include "virthread.h"
virLockSpacePtr virLockDaemonFindLockSpace(virLockDaemonPtr lockd,
const char *path);
-#endif /* __VIR_LOCK_DAEMON_H__ */
+#endif /* LIBVIRT_LOCK_DAEMON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOCK_DAEMON_CONFIG_H__
-# define __VIR_LOCK_DAEMON_CONFIG_H__
+#ifndef LIBVIRT_LOCK_DAEMON_CONFIG_H
+# define LIBVIRT_LOCK_DAEMON_CONFIG_H
# include "internal.h"
const char *filename,
bool allow_missing);
-#endif /* __VIR_LOCK_DAEMON_CONFIG_H__ */
+#endif /* LIBVIRT_LOCK_DAEMON_CONFIG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOCK_DAEMON_DISPATCH_H__
-# define __VIR_LOCK_DAEMON_DISPATCH_H__
+#ifndef LIBVIRT_LOCK_DAEMON_DISPATCH_H
+# define LIBVIRT_LOCK_DAEMON_DISPATCH_H
# include "rpc/virnetserverprogram.h"
extern virNetServerProgramProc virLockSpaceProtocolProcs[];
extern size_t virLockSpaceProtocolNProcs;
-#endif /* __VIR_LOCK_DAEMON_DISPATCH_H__ */
+#endif /* LIBVIRT_LOCK_DAEMON_DISPATCH_H */
*
*/
-#ifndef __VIR_PLUGINS_LOCK_DRIVER_H__
-# define __VIR_PLUGINS_LOCK_DRIVER_H__
+#ifndef LIBVIRT_LOCK_DRIVER_H
+# define LIBVIRT_LOCK_DRIVER_H
# include "internal.h"
# include "domain_conf.h"
};
-#endif /* __VIR_PLUGINS_LOCK_DRIVER_H__ */
+#endif /* LIBVIRT_LOCK_DRIVER_H */
*
*/
-#ifndef __VIR_LOCK_DRIVER_LOCKD_H__
-# define __VIR_LOCK_DRIVER_LOCKD_H__
+#ifndef LIBVIRT_LOCK_DRIVER_LOCKD_H
+# define LIBVIRT_LOCK_DRIVER_LOCKD_H
enum virLockSpaceProtocolAcquireResourceFlags {
VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_SHARED = (1 << 0),
VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_AUTOCREATE = (1 << 1),
};
-#endif /* __VIR_LOCK_DRIVER_LOCKD_H__ */
+#endif /* LIBVIRT_LOCK_DRIVER_LOCKD_H */
*
*/
-#ifndef __VIR_LOCK_DRIVER_NOP_H__
-# define __VIR_LOCK_DRIVER_NOP_H__
+#ifndef LIBVIRT_LOCK_DRIVER_NOP_H
+# define LIBVIRT_LOCK_DRIVER_NOP_H
# include "lock_driver.h"
extern virLockDriver virLockDriverNop;
-#endif /* __VIR_LOCK_DRIVER_NOP_H__ */
+#endif /* LIBVIRT_LOCK_DRIVER_NOP_H */
*
*/
-#ifndef __VIR_LOCK_MANAGER_H__
-# define __VIR_LOCK_MANAGER_H__
+#ifndef LIBVIRT_LOCK_MANAGER_H
+# define LIBVIRT_LOCK_MANAGER_H
# include "internal.h"
# include "lock_driver.h"
int virLockManagerFree(virLockManagerPtr manager);
-#endif /* __VIR_LOCK_MANAGER_H__ */
+#endif /* LIBVIRT_LOCK_MANAGER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOG_DAEMON_H__
-# define __VIR_LOG_DAEMON_H__
+#ifndef LIBVIRT_LOG_DAEMON_H
+# define LIBVIRT_LOG_DAEMON_H
# include "virthread.h"
# include "log_handler.h"
virLogHandlerPtr virLogDaemonGetHandler(virLogDaemonPtr dmn);
-#endif /* __VIR_LOG_DAEMON_H__ */
+#endif /* LIBVIRT_LOG_DAEMON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOG_DAEMON_CONFIG_H__
-# define __VIR_LOG_DAEMON_CONFIG_H__
+#ifndef LIBVIRT_LOG_DAEMON_CONFIG_H
+# define LIBVIRT_LOG_DAEMON_CONFIG_H
# include "internal.h"
const char *filename,
bool allow_missing);
-#endif /* __VIR_LOG_DAEMON_CONFIG_H__ */
+#endif /* LIBVIRT_LOG_DAEMON_CONFIG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOG_DAEMON_DISPATCH_H__
-# define __VIR_LOG_DAEMON_DISPATCH_H__
+#ifndef LIBVIRT_LOG_DAEMON_DISPATCH_H
+# define LIBVIRT_LOG_DAEMON_DISPATCH_H
# include "rpc/virnetserverprogram.h"
extern virNetServerProgramProc virLogManagerProtocolProcs[];
extern size_t virLogManagerProtocolNProcs;
-#endif /* __VIR_LOG_DAEMON_DISPATCH_H__ */
+#endif /* LIBVIRT_LOG_DAEMON_DISPATCH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOG_HANDLER_H__
-# define __VIR_LOG_HANDLER_H__
+#ifndef LIBVIRT_LOG_HANDLER_H
+# define LIBVIRT_LOG_HANDLER_H
# include "internal.h"
# include "virjson.h"
virJSONValuePtr virLogHandlerPreExecRestart(virLogHandlerPtr handler);
-#endif /* __VIR_LOG_HANDLER_H__ */
+#endif /* LIBVIRT_LOG_HANDLER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LOG_MANAGER_H__
-# define __VIR_LOG_MANAGER_H__
+#ifndef LIBVIRT_LOG_MANAGER_H
+# define LIBVIRT_LOG_MANAGER_H
# include "internal.h"
const char *message,
unsigned int flags);
-#endif /* __VIR_LOG_MANAGER_H__ */
+#endif /* LIBVIRT_LOG_MANAGER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_LXC_CGROUP_H__
-# define __VIR_LXC_CGROUP_H__
+#ifndef LIBVIRT_LXC_CGROUP_H
+# define LIBVIRT_LXC_CGROUP_H
# include "vircgroup.h"
# include "domain_conf.h"
const char *path,
void *opaque);
-#endif /* __VIR_LXC_CGROUP_H__ */
+#endif /* LIBVIRT_LXC_CGROUP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LXC_CONF_H
-# define LXC_CONF_H
+#ifndef LIBVIRT_LXC_CONF_H
+# define LIBVIRT_LXC_CONF_H
# include "internal.h"
# include "libvirt_internal.h"
virMutexUnlock(&driver->lock);
}
-#endif /* LXC_CONF_H */
+#endif /* LIBVIRT_LXC_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LXC_CONTAINER_H
-# define LXC_CONTAINER_H
+#ifndef LIBVIRT_LXC_CONTAINER_H
+# define LIBVIRT_LXC_CONTAINER_H
# include "lxc_conf.h"
# include "lxc_domain.h"
bool lxcIsBasicMountLocation(const char *path);
-#endif /* LXC_CONTAINER_H */
+#endif /* LIBVIRT_LXC_CONTAINER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LXC_DOMAIN_H__
-# define __LXC_DOMAIN_H__
+#ifndef LIBVIRT_LXC_DOMAIN_H
+# define LIBVIRT_LXC_DOMAIN_H
# include "vircgroup.h"
# include "lxc_conf.h"
char *
virLXCDomainGetMachineName(virDomainDefPtr def, pid_t pid);
-#endif /* __LXC_DOMAIN_H__ */
+#endif /* LIBVIRT_LXC_DOMAIN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LXC_DRIVER_H
-# define LXC_DRIVER_H
+#ifndef LIBVIRT_LXC_DRIVER_H
+# define LIBVIRT_LXC_DRIVER_H
/* Function declarations */
int lxcRegister(void);
-#endif /* LXC_DRIVER_H */
+#endif /* LIBVIRT_LXC_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LXC_FUSE_H
-# define LXC_FUSE_H
+#ifndef LIBVIRT_LXC_FUSE_H
+# define LIBVIRT_LXC_FUSE_H
# define FUSE_USE_VERSION 26
int lxcStartFuse(virLXCFusePtr f);
void lxcFreeFuse(virLXCFusePtr *f);
-#endif /* LXC_FUSE_H */
+#endif /* LIBVIRT_LXC_FUSE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LXC_HOSTDEV_H__
-# define __LXC_HOSTDEV_H__
+#ifndef LIBVIRT_LXC_HOSTDEV_H
+# define LIBVIRT_LXC_HOSTDEV_H
# include "lxc_conf.h"
# include "domain_conf.h"
void virLXCDomainReAttachHostDevices(virLXCDriverPtr driver,
virDomainDefPtr def);
-#endif /* __LXC_HOSTDEV_H__ */
+#endif /* LIBVIRT_LXC_HOSTDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LXC_MONITOR_H__
-# define __LXC_MONITOR_H__
+#ifndef LIBVIRT_LXC_MONITOR_H
+# define LIBVIRT_LXC_MONITOR_H
# include "virobject.h"
# include "domain_conf.h"
void virLXCMonitorLock(virLXCMonitorPtr mon);
void virLXCMonitorUnlock(virLXCMonitorPtr mon);
-#endif /* __LXC_MONITOR_H__ */
+#endif /* LIBVIRT_LXC_MONITOR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LXC_NATIVE_H__
-# define __LXC_NATIVE_H__
+#ifndef LIBVIRT_LXC_NATIVE_H
+# define LIBVIRT_LXC_NATIVE_H
# include "domain_conf.h"
virCapsPtr caps,
virDomainXMLOptionPtr xmlopt);
-#endif /* __LXC_NATIVE_H__ */
+#endif /* LIBVIRT_LXC_NATIVE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LXC_PROCESS_H__
-# define __LXC_PROCESS_H__
+#ifndef LIBVIRT_LXC_PROCESS_H
+# define LIBVIRT_LXC_PROCESS_H
# include "lxc_conf.h"
virDomainDefPtr def,
virDomainNetDefPtr net);
-#endif /* __LXC_PROCESS_H__ */
+#endif /* LIBVIRT_LXC_PROCESS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETWORK__DRIVER_H
-# define __VIR_NETWORK__DRIVER_H
+#ifndef LIBVIRT_BRIDGE_DRIVER_H
+# define LIBVIRT_BRIDGE_DRIVER_H
# include "internal.h"
# include "domain_conf.h"
dnsmasqContext *dctx,
dnsmasqCapsPtr caps);
-#endif /* __VIR_NETWORK__DRIVER_H */
+#endif /* LIBVIRT_BRIDGE_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_BRIDGE_DRIVER_PLATFORM_H__
-# define __VIR_BRIDGE_DRIVER_PLATFORM_H__
+#ifndef LIBVIRT_BRIDGE_DRIVER_PLATFORM_H
+# define LIBVIRT_BRIDGE_DRIVER_PLATFORM_H
# include "internal.h"
# include "virthread.h"
void networkRemoveFirewallRules(virNetworkDefPtr def);
-#endif /* __VIR_BRIDGE_DRIVER_PLATFORM_H__ */
+#endif /* LIBVIRT_BRIDGE_DRIVER_PLATFORM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NODE_DEVICE_H__
-# define __VIR_NODE_DEVICE_H__
+#ifndef LIBVIRT_NODE_DEVICE_DRIVER_H
+# define LIBVIRT_NODE_DEVICE_DRIVER_H
# include "internal.h"
# include "driver.h"
nodeConnectNodeDeviceEventDeregisterAny(virConnectPtr conn,
int callbackID);
-#endif /* __VIR_NODE_DEVICE_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_DRIVER_H */
*
*/
-#ifndef __VIR_NODE_DEVICE_HAL_H__
-# define __VIR_NODE_DEVICE_HAL_H__
+#ifndef LIBVIRT_NODE_DEVICE_HAL_H
+# define LIBVIRT_NODE_DEVICE_HAL_H
-#endif /* __VIR_NODE_DEVICE_HAL_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_HAL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __NODE_DEVICE_UDEV_H__
-# define __NODE_DEVICE_UDEV_H__
+#ifndef LIBVIRT_NODE_DEVICE_UDEV_H
+# define LIBVIRT_NODE_DEVICE_UDEV_H
# include <libudev.h>
# define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
# define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id"
-#endif /* __NODE_DEVICE_UDEV_H__ */
+#endif /* LIBVIRT_NODE_DEVICE_UDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __NWFILTER_DHCPSNOOP_H
-# define __NWFILTER_DHCPSNOOP_H
+#ifndef LIBVIRT_NWFILTER_DHCPSNOOP_H
+# define LIBVIRT_NWFILTER_DHCPSNOOP_H
# include "nwfilter_tech_driver.h"
virNWFilterBindingDefPtr binding,
virNWFilterDriverStatePtr driver);
void virNWFilterDHCPSnoopEnd(const char *ifname);
-#endif /* __NWFILTER_DHCPSNOOP_H */
+#endif /* LIBVIRT_NWFILTER_DHCPSNOOP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NWFILTER_DRIVER_H__
-# define __VIR_NWFILTER_DRIVER_H__
+#ifndef LIBVIRT_NWFILTER_DRIVER_H
+# define LIBVIRT_NWFILTER_DRIVER_H
# include "nwfilter_params.h"
# include "nwfilter_conf.h"
int nwfilterRegister(void);
-#endif /* __VIR_NWFILTER_DRIVER_H__ */
+#endif /* LIBVIRT_NWFILTER_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIR_NWFILTER_EBTABLES_DRIVER_H__
-# define VIR_NWFILTER_EBTABLES_DRIVER_H__
+#ifndef LIBVIRT_NWFILTER_EBIPTABLES_DRIVER_H
+# define LIBVIRT_NWFILTER_EBIPTABLES_DRIVER_H
# include "nwfilter_tech_driver.h"
# define IPTABLES_MAX_COMMENT_LENGTH 256
-#endif /* VIR_NWFILTER_EBTABLES_DRIVER_H__ */
+#endif /* LIBVIRT_NWFILTER_EBIPTABLES_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __NWFILTER_GENTECH_DRIVER_H
-# define __NWFILTER_GENTECH_DRIVER_H
+#ifndef LIBVIRT_NWFILTER_GENTECH_DRIVER_H
+# define LIBVIRT_NWFILTER_GENTECH_DRIVER_H
# include "virnwfilterobj.h"
# include "virnwfilterbindingdef.h"
int virNWFilterBuildAll(virNWFilterDriverStatePtr driver,
bool newFilters);
-#endif /* __NWFILTER_GENTECH_DRIVER_H */
+#endif /* LIBVIRT_NWFILTER_GENTECH_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __NWFILTER_LEARNIPADDR_H
-# define __NWFILTER_LEARNIPADDR_H
+#ifndef LIBVIRT_NWFILTER_LEARNIPADDR_H
+# define LIBVIRT_NWFILTER_LEARNIPADDR_H
# include "conf/nwfilter_params.h"
# include "nwfilter_tech_driver.h"
void virNWFilterLearnShutdown(void);
void virNWFilterLearnThreadsTerminate(bool allowNewThreads);
-#endif /* __NWFILTER_LEARNIPADDR_H */
+#endif /* LIBVIRT_NWFILTER_LEARNIPADDR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __NWFILTER_TECH_DRIVER_H__
-# define __NWFILTER_TECH_DRIVER_H__
+#ifndef LIBVIRT_NWFILTER_TECH_DRIVER_H
+# define LIBVIRT_NWFILTER_TECH_DRIVER_H
# include "virnwfilterobj.h"
virNWFilterRemoveBasicRules removeBasicRules;
};
-#endif /* __NWFILTER_TECH_DRIVER_H__ */
+#endif /* LIBVIRT_NWFILTER_TECH_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef OPENVZ_CONF_H
-# define OPENVZ_CONF_H
+#ifndef LIBVIRT_OPENVZ_CONF_H
+# define LIBVIRT_OPENVZ_CONF_H
# include "internal.h"
# include "virdomainobjlist.h"
int openvzGetVEID(const char *name);
int openvzReadNetworkConf(virDomainDefPtr def, int veid);
-#endif /* OPENVZ_CONF_H */
+#endif /* LIBVIRT_OPENVZ_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef OPENVZ_DRIVER_H
-# define OPENVZ_DRIVER_H
+#ifndef LIBVIRT_OPENVZ_DRIVER_H
+# define LIBVIRT_OPENVZ_DRIVER_H
# include "internal.h"
int openvzRegister(void);
-#endif /* OPENVZ_DRIVER_H */
+#endif /* LIBVIRT_OPENVZ_DRIVER_H */
*
*/
-#ifndef OPENVZ_UTIL_H
-# define OPENVZ_UTIL_H
+#ifndef LIBVIRT_OPENVZ_UTIL_H
+# define LIBVIRT_OPENVZ_UTIL_H
long openvzKBPerPages(void);
char *openvzVEGetStringParam(virDomainPtr dom, const char *param);
-#endif /* OPENVZ_UTIL_H */
+#endif /* LIBVIRT_OPENVZ_UTIL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef PHYP_DRIVER_H
-# define PHYP_DRIVER_H
+#ifndef LIBVIRT_PHYP_DRIVER_H
+# define LIBVIRT_PHYP_DRIVER_H
int phypRegister(void);
-#endif /* PHYP_DRIVER_H */
+#endif /* LIBVIRT_PHYP_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_AGENT_H__
-# define __QEMU_AGENT_H__
+#ifndef LIBVIRT_QEMU_AGENT_H
+# define LIBVIRT_QEMU_AGENT_H
# include "internal.h"
# include "domain_conf.h"
const char *user,
const char *password,
bool crypted);
-#endif /* __QEMU_AGENT_H__ */
+#endif /* LIBVIRT_QEMU_AGENT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_ALIAS_H__
-# define __QEMU_ALIAS_H__
+#ifndef LIBVIRT_QEMU_ALIAS_H
+# define LIBVIRT_QEMU_ALIAS_H
# include "domain_conf.h"
char *qemuDomainGetUnmanagedPRAlias(const char *parentalias);
-#endif /* __QEMU_ALIAS_H__ */
+#endif /* LIBVIRT_QEMU_ALIAS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_BLOCK_H__
-# define __QEMU_BLOCK_H__
+#ifndef LIBVIRT_QEMU_BLOCK_H
+# define LIBVIRT_QEMU_BLOCK_H
# include "internal.h"
virStorageSourcePtr newsrc,
bool reuse);
-#endif /* __QEMU_BLOCK_H__ */
+#endif /* LIBVIRT_QEMU_BLOCK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_BLOCKJOB_H__
-# define __QEMU_BLOCKJOB_H__
+#ifndef LIBVIRT_QEMU_BLOCKJOB_H
+# define LIBVIRT_QEMU_BLOCKJOB_H
# include "internal.h"
# include "qemu_conf.h"
qemuDomainAsyncJob asyncJob,
virDomainDiskDefPtr disk);
-#endif /* __QEMU_BLOCKJOB_H__ */
+#endif /* LIBVIRT_QEMU_BLOCKJOB_H */
#include "virstring.h"
#include "qemu_hostdev.h"
#include "qemu_domain.h"
-#define __QEMU_CAPSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
#include "qemu_capspriv.h"
#include "qemu_qapi.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_CAPABILITIES_H__
-# define __QEMU_CAPABILITIES_H__
+#ifndef LIBVIRT_QEMU_CAPABILITIES_H
+# define LIBVIRT_QEMU_CAPABILITIES_H
# include "virobject.h"
# include "capabilities.h"
virSEVCapabilityPtr
virQEMUCapsGetSEVCapabilities(virQEMUCapsPtr qemuCaps);
-#endif /* __QEMU_CAPABILITIES_H__ */
+#endif /* LIBVIRT_QEMU_CAPABILITIES_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_CAPSPRIV_H_ALLOW__
+#ifndef LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
# error "qemu_capspriv.h may only be included by qemu_capabilities.c or test suites"
-#endif /* __QEMU_CAPSPRIV_H_ALLOW__ */
+#endif /* LIBVIRT_QEMU_CAPSPRIV_H_ALLOW */
-#ifndef __QEMU_CAPSPRIV_H__
-# define __QEMU_CAPSPRIV_H__
+#ifndef LIBVIRT_QEMU_CAPSPRIV_H
+# define LIBVIRT_QEMU_CAPSPRIV_H
virQEMUCapsPtr virQEMUCapsNewCopy(virQEMUCapsPtr qemuCaps);
void
virQEMUCapsStripMachineAliases(virQEMUCapsPtr qemuCaps);
-#endif /* __QEMU_CAPSPRIV_H__ */
+#endif /* LIBVIRT_QEMU_CAPSPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_CGROUP_H__
-# define __QEMU_CGROUP_H__
+#ifndef LIBVIRT_QEMU_CGROUP_H
+# define LIBVIRT_QEMU_CGROUP_H
# include "virusb.h"
# include "vircgroup.h"
void qemuCgroupEmulatorAllNodesRestore(qemuCgroupEmulatorAllNodesDataPtr data);
extern const char *const defaultDeviceACL[];
-#endif /* __QEMU_CGROUP_H__ */
+#endif /* LIBVIRT_QEMU_CGROUP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_COMMAND_H__
-# define __QEMU_COMMAND_H__
+#ifndef LIBVIRT_QEMU_COMMAND_H
+# define LIBVIRT_QEMU_COMMAND_H
# include "domain_addr.h"
# include "domain_conf.h"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
ATTRIBUTE_NONNULL(4);
-#endif /* __QEMU_COMMAND_H__ */
+#endif /* LIBVIRT_QEMU_COMMAND_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMUD_CONF_H
-# define __QEMUD_CONF_H
+#ifndef LIBVIRT_QEMU_CONF_H
+# define LIBVIRT_QEMU_CONF_H
# include <unistd.h>
virQEMUDriverConfigPtr cfg,
const char *alias,
char **memPath);
-#endif /* __QEMUD_CONF_H */
+#endif /* LIBVIRT_QEMU_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_DOMAIN_H__
-# define __QEMU_DOMAIN_H__
+#ifndef LIBVIRT_QEMU_DOMAIN_H
+# define LIBVIRT_QEMU_DOMAIN_H
# include "virthread.h"
# include "vircgroup.h"
bool
qemuDomainIsUsingNoShutdown(qemuDomainObjPrivatePtr priv);
-#endif /* __QEMU_DOMAIN_H__ */
+#endif /* LIBVIRT_QEMU_DOMAIN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_DOMAIN_ADDRESS_H__
-# define __QEMU_DOMAIN_ADDRESS_H__
+#ifndef LIBVIRT_QEMU_DOMAIN_ADDRESS_H
+# define LIBVIRT_QEMU_DOMAIN_ADDRESS_H
# include "domain_addr.h"
# include "domain_conf.h"
virDomainDeviceDefPtr dev,
const char *devicename);
-#endif /* __QEMU_DOMAIN_ADDRESS_H__ */
+#endif /* LIBVIRT_QEMU_DOMAIN_ADDRESS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_DRIVER_H__
-# define __QEMU_DRIVER_H__
+#ifndef LIBVIRT_QEMU_DRIVER_H
+# define LIBVIRT_QEMU_DRIVER_H
int qemuRegister(void);
-#endif /* __QEMU_DRIVER_H__ */
+#endif /* LIBVIRT_QEMU_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_EXTDEVICE_H__
-# define __QEMU_EXTDEVICE_H__
+#ifndef LIBVIRT_QEMU_EXTDEVICE_H
+# define LIBVIRT_QEMU_EXTDEVICE_H
# include "qemu_conf.h"
# include "qemu_domain.h"
virDomainDefPtr def,
virCgroupPtr cgroup);
-#endif /* __QEMU_EXTDEVICE_H__ */
+#endif /* LIBVIRT_QEMU_EXTDEVICE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_HOSTDEV_H__
-# define __QEMU_HOSTDEV_H__
+#ifndef LIBVIRT_QEMU_HOSTDEV_H
+# define LIBVIRT_QEMU_HOSTDEV_H
# include "qemu_conf.h"
# include "domain_conf.h"
void qemuHostdevReAttachDomainDevices(virQEMUDriverPtr driver,
virDomainDefPtr def);
-#endif /* __QEMU_HOSTDEV_H__ */
+#endif /* LIBVIRT_QEMU_HOSTDEV_H */
#include <config.h>
#include "qemu_hotplug.h"
-#define __QEMU_HOTPLUGPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_HOTPLUGPRIV_H_ALLOW
#include "qemu_hotplugpriv.h"
#include "qemu_alias.h"
#include "qemu_capabilities.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_HOTPLUG_H__
-# define __QEMU_HOTPLUG_H__
+#ifndef LIBVIRT_QEMU_HOTPLUG_H
+# define LIBVIRT_QEMU_HOTPLUG_H
# include "qemu_conf.h"
# include "qemu_domain.h"
int qemuDomainDetachVsockDevice(virDomainObjPtr vm,
virDomainVsockDefPtr dev,
bool async);
-#endif /* __QEMU_HOTPLUG_H__ */
+#endif /* LIBVIRT_QEMU_HOTPLUG_H */
*
*/
-#ifndef __QEMU_HOTPLUGPRIV_H_ALLOW__
+#ifndef LIBVIRT_QEMU_HOTPLUGPRIV_H_ALLOW
# error "qemu_hotplugpriv.h may only be included by qemu_hotplug.c or test suites"
-#endif /* __QEMU_HOTPLUGPRIV_H_ALLOW__ */
+#endif /* LIBVIRT_QEMU_HOTPLUGPRIV_H_ALLOW */
-#ifndef __QEMU_HOTPLUGPRIV_H__
-# define __QEMU_HOTPLUGPRIV_H__
+#ifndef LIBVIRT_QEMU_HOTPLUGPRIV_H
+# define LIBVIRT_QEMU_HOTPLUGPRIV_H
/*
* This header file should never be used outside unit tests.
extern unsigned long long qemuDomainRemoveDeviceWaitTime;
-#endif /* __QEMU_HOTPLUGPRIV_H__ */
+#endif /* LIBVIRT_QEMU_HOTPLUGPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_INTERFACE_H__
-# define __QEMU_INTERFACE_H__
+#ifndef LIBVIRT_QEMU_INTERFACE_H
+# define LIBVIRT_QEMU_INTERFACE_H
# include "domain_conf.h"
# include "qemu_conf.h"
virDomainNetDefPtr net,
int *vhostfd,
size_t *vhostfdSize);
-#endif /* __QEMU_INTERFACE_H__ */
+#endif /* LIBVIRT_QEMU_INTERFACE_H */
*
*/
-#ifndef __QEMU_MIGRATION_H__
-# define __QEMU_MIGRATION_H__
+#ifndef LIBVIRT_QEMU_MIGRATION_H
+# define LIBVIRT_QEMU_MIGRATION_H
# include "qemu_conf.h"
# include "qemu_domain.h"
qemuDomainAsyncJob asyncJob,
qemuDomainJobInfoPtr jobInfo);
-#endif /* __QEMU_MIGRATION_H__ */
+#endif /* LIBVIRT_QEMU_MIGRATION_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_MIGRATION_COOKIE_H__
-# define __QEMU_MIGRATION_COOKIE_H__
+#ifndef LIBVIRT_QEMU_MIGRATION_COOKIE_H
+# define LIBVIRT_QEMU_MIGRATION_COOKIE_H
# include "qemu_migration_params.h"
virDomainDefPtr
qemuMigrationCookieGetPersistent(qemuMigrationCookiePtr mig);
-#endif /* __QEMU_MIGRATION_COOKIE_H__ */
+#endif /* LIBVIRT_QEMU_MIGRATION_COOKIE_H */
#include "qemu_hotplug.h"
#include "qemu_migration.h"
#include "qemu_migration_params.h"
-#define __QEMU_MIGRATION_PARAMSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H_ALLOW
#include "qemu_migration_paramspriv.h"
#include "qemu_monitor.h"
*
*/
-#ifndef __QEMU_MIGRATION_PARAMS_H__
-# define __QEMU_MIGRATION_PARAMS_H__
+#ifndef LIBVIRT_QEMU_MIGRATION_PARAMS_H
+# define LIBVIRT_QEMU_MIGRATION_PARAMS_H
# include "internal.h"
qemuMigrationCapsGet(virDomainObjPtr vm,
qemuMigrationCapability cap);
-#endif /* __QEMU_MIGRATION_PARAMS_H__ */
+#endif /* LIBVIRT_QEMU_MIGRATION_PARAMS_H */
*
*/
-#ifndef __QEMU_MIGRATION_PARAMSPRIV_H_ALLOW__
+#ifndef LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H_ALLOW
# error "qemu_migration_paramspriv.h may only be included by qemu_migration_params.c or test suites"
-#endif /* __QEMU_MIGRATION_PARAMSPRIV_H_ALLOW__ */
+#endif /* LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H_ALLOW */
-#ifndef __QEMU_MIGRATION_PARAMSPRIV_H__
-# define __QEMU_MIGRATION_PARAMSPRIV_H__
+#ifndef LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H
+# define LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H
virJSONValuePtr
qemuMigrationParamsToJSON(qemuMigrationParamsPtr migParams);
qemuMigrationCapsToJSON(virBitmapPtr caps,
virBitmapPtr states);
-#endif /* __QEMU_MIGRATION_PARAMSPRIV_H__ */
+#endif /* LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H */
# include "libvirt_qemu_probes.h"
#endif
-#define __QEMU_MONITOR_PRIV_H_ALLOW__
+#define LIBVIRT_QEMU_MONITOR_PRIV_H_ALLOW
#include "qemu_monitor_priv.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
* <http://www.gnu.org/licenses/>.
*/
-#ifndef QEMU_MONITOR_H
-# define QEMU_MONITOR_H
+#ifndef LIBVIRT_QEMU_MONITOR_H
+# define LIBVIRT_QEMU_MONITOR_H
# include "internal.h"
int qemuMonitorGetPRManagerInfo(qemuMonitorPtr mon,
virHashTablePtr *retinfo);
-#endif /* QEMU_MONITOR_H */
+#endif /* LIBVIRT_QEMU_MONITOR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef QEMU_MONITOR_JSON_H
-# define QEMU_MONITOR_JSON_H
+#ifndef LIBVIRT_QEMU_MONITOR_JSON_H
+# define LIBVIRT_QEMU_MONITOR_JSON_H
# include "internal.h"
virHashTablePtr info)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-#endif /* QEMU_MONITOR_JSON_H */
+#endif /* LIBVIRT_QEMU_MONITOR_JSON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_MONITOR_PRIV_H_ALLOW__
+#ifndef LIBVIRT_QEMU_MONITOR_PRIV_H_ALLOW
# error "qemu_monitor_priv.h may only be included by qemu_monitor.c or test suites"
-#endif /* __QEMU_MONITOR_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_QEMU_MONITOR_PRIV_H_ALLOW */
-#ifndef __QEMU_MONITOR_PRIV_H__
-# define __QEMU_MONITOR_PRIV_H__
+#ifndef LIBVIRT_QEMU_MONITOR_PRIV_H
+# define LIBVIRT_QEMU_MONITOR_PRIV_H
# include "qemu_monitor.h"
void
qemuMonitorResetCommandID(qemuMonitorPtr mon);
-#endif /* __QEMU_MONITOR_PRIV_H__ */
+#endif /* LIBVIRT_QEMU_MONITOR_PRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef QEMU_MONITOR_TEXT_H
-# define QEMU_MONITOR_TEXT_H
+#ifndef LIBVIRT_QEMU_MONITOR_TEXT_H
+# define LIBVIRT_QEMU_MONITOR_TEXT_H
# include "internal.h"
int qemuMonitorTextLoadSnapshot(qemuMonitorPtr mon, const char *name);
int qemuMonitorTextDeleteSnapshot(qemuMonitorPtr mon, const char *name);
-#endif /* QEMU_MONITOR_TEXT_H */
+#endif /* LIBVIRT_QEMU_MONITOR_TEXT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_PARSE_COMMAND_H__
-# define __QEMU_PARSE_COMMAND_H__
+#ifndef LIBVIRT_QEMU_PARSE_COMMAND_H
+# define LIBVIRT_QEMU_PARSE_COMMAND_H
# include "virfilecache.h"
int *retnkeywords,
int allowEmptyValue);
-#endif /* __QEMU_PARSE_COMMAND_H__ */
+#endif /* LIBVIRT_QEMU_PARSE_COMMAND_H */
#include <sys/utsname.h>
#include "qemu_process.h"
-#define __QEMU_PROCESS_PRIV_H_ALLOW__
+#define LIBVIRT_QEMU_PROCESSPRIV_H_ALLOW
#include "qemu_processpriv.h"
#include "qemu_alias.h"
#include "qemu_block.h"
*
*/
-#ifndef __QEMU_PROCESS_H__
-# define __QEMU_PROCESS_H__
+#ifndef LIBVIRT_QEMU_PROCESS_H
+# define LIBVIRT_QEMU_PROCESS_H
# include "qemu_conf.h"
# include "qemu_domain.h"
void qemuProcessKillManagedPRDaemon(virDomainObjPtr vm);
-#endif /* __QEMU_PROCESS_H__ */
+#endif /* LIBVIRT_QEMU_PROCESS_H */
*
*/
-#ifndef __QEMU_PROCESS_PRIV_H_ALLOW__
+#ifndef LIBVIRT_QEMU_PROCESSPRIV_H_ALLOW
# error "qemu_process_priv.h may only be included by qemu_process.c or test suites"
-#endif /* __QEMU_PROCESS_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_QEMU_PROCESSPRIV_H_ALLOW */
-#ifndef __QEMU_PROCESSPRIV_H__
-# define __QEMU_PROCESSPRIV_H__
+#ifndef LIBVIRT_QEMU_PROCESSPRIV_H
+# define LIBVIRT_QEMU_PROCESSPRIV_H
# include "domain_conf.h"
# include "qemu_monitor.h"
const char *devAlias,
void *opaque);
-#endif /* __QEMU_PROCESSPRIV_H__ */
+#endif /* LIBVIRT_QEMU_PROCESSPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_QAPI_H__
-# define __QEMU_QAPI_H__
+#ifndef LIBVIRT_QEMU_QAPI_H
+# define LIBVIRT_QEMU_QAPI_H
# include "internal.h"
virQEMUQAPISchemaConvert(virJSONValuePtr schemareply);
-#endif /* __QEMU_QAPI_H__ */
+#endif /* LIBVIRT_QEMU_QAPI_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_SECURITY_H__
-# define __QEMU_SECURITY_H__
+#ifndef LIBVIRT_QEMU_SECURITY_H
+# define LIBVIRT_QEMU_SECURITY_H
# include "qemu_conf.h"
# define qemuSecurityStackAddNested virSecurityManagerStackAddNested
# define qemuSecurityVerify virSecurityManagerVerify
-#endif /* __QEMU_SECURITY_H__ */
+#endif /* LIBVIRT_QEMU_SECURITY_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMU_TPM_H__
-# define __QEMU_TPM_H__
+#ifndef LIBVIRT_QEMU_TPM_H
+# define LIBVIRT_QEMU_TPM_H
# include "vircommand.h"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
ATTRIBUTE_RETURN_CHECK;
-#endif /* __QEMU_TPM_H__ */
+#endif /* LIBVIRT_QEMU_TPM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __REMOTE_DAEMON_H__
-# define __REMOTE_DAEMON_H__
+#ifndef LIBVIRT_REMOTE_DAEMON_H
+# define LIBVIRT_REMOTE_DAEMON_H
# define VIR_ENUM_SENTINELS
extern virNetServerProgramPtr remoteProgram;
extern virNetServerProgramPtr qemuProgram;
-#endif /* __REMOTE_DAEMON_H__ */
+#endif /* LIBVIRT_REMOTE_DAEMON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __REMOTE_DAEMON_CONFIG_H__
-# define __REMOTE_DAEMON_CONFIG_H__
+#ifndef LIBVIRT_REMOTE_DAEMON_CONFIG_H
+# define LIBVIRT_REMOTE_DAEMON_CONFIG_H
# include "internal.h"
const char *filename,
const char *filedata);
-#endif /* __REMOTE_DAEMON_CONFIG_H__ */
+#endif /* LIBVIRT_REMOTE_DAEMON_CONFIG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __REMOTE_DAEMON_DISPATCH_H__
-# define __REMOTE_DAEMON_DISPATCH_H__
+#ifndef LIBVIRT_REMOTE_DAEMON_DISPATCH_H
+# define LIBVIRT_REMOTE_DAEMON_DISPATCH_H
# include "remote_protocol.h"
# include "rpc/virnetserverprogram.h"
void *remoteClientNew(virNetServerClientPtr client,
void *opaque);
-#endif /* __REMOTE_DAEMON_DISPATCH_H__ */
+#endif /* LIBVIRT_REMOTE_DAEMON_DISPATCH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __REMOTE_DAEMON_STREAM_H__
-# define __REMOTE_DAEMON_STREAM_H__
+#ifndef LIBVIRT_REMOTE_DAEMON_STREAM_H
+# define LIBVIRT_REMOTE_DAEMON_STREAM_H
# include "remote_daemon.h"
void
daemonRemoveAllClientStreams(daemonClientStream *stream);
-#endif /* __REMOTE_DAEMON_STREAM_H__ */
+#endif /* LIBVIRT_REMOTE_DAEMON_STREAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_REMOTE_INTERNAL_H__
-# define __VIR_REMOTE_INTERNAL_H__
+#ifndef LIBVIRT_REMOTE_DRIVER_H
+# define LIBVIRT_REMOTE_DRIVER_H
# include "internal.h"
# include "configmake.h"
# define LIBVIRT_SERVERCERT LIBVIRT_PKI_DIR "/libvirt/servercert.pem"
-#endif /* __VIR_REMOTE_INTERNAL_H__ */
+#endif /* LIBVIRT_REMOTE_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_KEEPALIVE_H__
-# define __VIR_KEEPALIVE_H__
+#ifndef LIBVIRT_VIRKEEPALIVE_H
+# define LIBVIRT_VIRKEEPALIVE_H
# include "virnetmessage.h"
# include "virobject.h"
virNetMessagePtr msg,
virNetMessagePtr *response);
-#endif /* __VIR_KEEPALIVE_H__ */
+#endif /* LIBVIRT_VIRKEEPALIVE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_CLIENT_H__
-# define __VIR_NET_CLIENT_H__
+#ifndef LIBVIRT_VIRNETCLIENT_H
+# define LIBVIRT_VIRNETCLIENT_H
# ifdef WITH_GNUTLS
# include "virnettlscontext.h"
void virNetClientKeepAliveStop(virNetClientPtr client);
-#endif /* __VIR_NET_CLIENT_H__ */
+#endif /* LIBVIRT_VIRNETCLIENT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_CLIENT_PROGRAM_H__
-# define __VIR_NET_CLIENT_PROGRAM_H__
+#ifndef LIBVIRT_VIRNETCLIENTPROGRAM_H
+# define LIBVIRT_VIRNETCLIENTPROGRAM_H
# include <rpc/types.h>
# include <rpc/xdr.h>
-#endif /* __VIR_NET_CLIENT_PROGRAM_H__ */
+#endif /* LIBVIRT_VIRNETCLIENTPROGRAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_CLIENT_STREAM_H__
-# define __VIR_NET_CLIENT_STREAM_H__
+#ifndef LIBVIRT_VIRNETCLIENTSTREAM_H
+# define LIBVIRT_VIRNETCLIENTSTREAM_H
# include "virnetclientprogram.h"
# include "virobject.h"
bool virNetClientStreamEOF(virNetClientStreamPtr st)
ATTRIBUTE_NONNULL(1);
-#endif /* __VIR_NET_CLIENT_STREAM_H__ */
+#endif /* LIBVIRT_VIRNETCLIENTSTREAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_DAEMON_H__
-# define __VIR_NET_DAEMON_H__
+#ifndef LIBVIRT_VIRNETDAEMON_H
+# define LIBVIRT_VIRNETDAEMON_H
# include <signal.h>
bool virNetDaemonHasServer(virNetDaemonPtr dmn,
const char *serverName);
-#endif /* __VIR_NET_DAEMON_H__ */
+#endif /* LIBVIRT_VIRNETDAEMON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_LIBSSH_SESSION_H__
-# define __VIR_NET_LIBSSH_SESSION_H__
+#ifndef LIBVIRT_VIRNETLIBSSHSESSION_H
+# define LIBVIRT_VIRNETLIBSSHSESSION_H
# include "internal.h"
# include "viruri.h"
bool virNetLibsshSessionHasCachedData(virNetLibsshSessionPtr sess);
-#endif /* __VIR_NET_LIBSSH_SESSION_H__ */
+#endif /* LIBVIRT_VIRNETLIBSSHSESSION_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_MESSAGE_H__
-# define __VIR_NET_MESSAGE_H__
+#ifndef LIBVIRT_VIRNETMESSAGE_H
+# define LIBVIRT_VIRNETMESSAGE_H
# include "virnetprotocol.h"
int virNetMessageAddFD(virNetMessagePtr msg,
int fd);
-#endif /* __VIR_NET_MESSAGE_H__ */
+#endif /* LIBVIRT_VIRNETMESSAGE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_CLIENT_SASL_CONTEXT_H__
-# define __VIR_NET_CLIENT_SASL_CONTEXT_H__
+#ifndef LIBVIRT_VIRNETSASLCONTEXT_H
+# define LIBVIRT_VIRNETSASLCONTEXT_H
# include "internal.h"
# include <sasl/sasl.h>
const char **output,
size_t *outputlen);
-#endif /* __VIR_NET_CLIENT_SASL_CONTEXT_H__ */
+#endif /* LIBVIRT_VIRNETSASLCONTEXT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SERVER_H__
-# define __VIR_NET_SERVER_H__
+#ifndef LIBVIRT_VIRNETSERVER_H
+# define LIBVIRT_VIRNETSERVER_H
# include "virnettlscontext.h"
# include "virnetserverprogram.h"
long long int maxClients,
long long int maxClientsUnauth);
-#endif /* __VIR_NET_SERVER_H__ */
+#endif /* LIBVIRT_VIRNETSERVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SERVER_CLIENT_H__
-# define __VIR_NET_SERVER_CLIENT_H__
+#ifndef LIBVIRT_VIRNETSERVERCLIENT_H
+# define LIBVIRT_VIRNETSERVERCLIENT_H
# include "viridentity.h"
# include "virnetsocket.h"
void virNetServerClientSetQuietEOF(virNetServerClientPtr client);
-#endif /* __VIR_NET_SERVER_CLIENT_H__ */
+#endif /* LIBVIRT_VIRNETSERVERCLIENT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SERVER_MDNS_H__
-# define __VIR_NET_SERVER_MDNS_H__
+#ifndef LIBVIRT_VIRNETSERVERMDNS_H
+# define LIBVIRT_VIRNETSERVERMDNS_H
# include "internal.h"
void virNetServerMDNSGroupFree(virNetServerMDNSGroupPtr ptr);
void virNetServerMDNSEntryFree(virNetServerMDNSEntryPtr ptr);
-#endif /* __VIR_NET_SERVER_MDNS_H__ */
+#endif /* LIBVIRT_VIRNETSERVERMDNS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SERVER_PROGRAM_H__
-# define __VIR_NET_SERVER_PROGRAM_H__
+#ifndef LIBVIRT_VIRNETSERVERPROGRAM_H
+# define LIBVIRT_VIRNETSERVERPROGRAM_H
# include "virnetmessage.h"
# include "virnetserverclient.h"
long long length,
unsigned int flags);
-#endif /* __VIR_NET_SERVER_PROGRAM_H__ */
+#endif /* LIBVIRT_VIRNETSERVERPROGRAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SERVER_SERVICE_H__
-# define __VIR_NET_SERVER_SERVICE_H__
+#ifndef LIBVIRT_VIRNETSERVERSERVICE_H
+# define LIBVIRT_VIRNETSERVERSERVICE_H
# include "virnetserverprogram.h"
# include "virobject.h"
void virNetServerServiceClose(virNetServerServicePtr svc);
-#endif /* __VIR_NET_SERVER_SERVICE_H__ */
+#endif /* LIBVIRT_VIRNETSERVERSERVICE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SOCKET_H__
-# define __VIR_NET_SOCKET_H__
+#ifndef LIBVIRT_VIRNETSOCKET_H
+# define LIBVIRT_VIRNETSOCKET_H
# include "virsocketaddr.h"
# include "vircommand.h"
void virNetSocketClose(virNetSocketPtr sock);
-#endif /* __VIR_NET_SOCKET_H__ */
+#endif /* LIBVIRT_VIRNETSOCKET_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_SSH_SESSION_H__
-# define __VIR_NET_SSH_SESSION_H__
+#ifndef LIBVIRT_VIRNETSSHSESSION_H
+# define LIBVIRT_VIRNETSSHSESSION_H
# include "internal.h"
# include "viruri.h"
bool virNetSSHSessionHasCachedData(virNetSSHSessionPtr sess);
-#endif /* __VIR_NET_SSH_SESSION_H__ */
+#endif /* LIBVIRT_VIRNETSSHSESSION_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NET_TLS_CONTEXT_H__
-# define __VIR_NET_TLS_CONTEXT_H__
+#ifndef LIBVIRT_VIRNETTLSCONTEXT_H
+# define LIBVIRT_VIRNETTLSCONTEXT_H
# include "internal.h"
# include "virobject.h"
const char *virNetTLSSessionGetX509DName(virNetTLSSessionPtr sess);
-#endif /* __VIR_NET_TLS_CONTEXT_H__ */
+#endif /* LIBVIRT_VIRNETTLSCONTEXT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SECRET_DRIVER_H__
-# define __VIR_SECRET_DRIVER_H__
+#ifndef LIBVIRT_SECRET_DRIVER_H
+# define LIBVIRT_SECRET_DRIVER_H
int secretRegister(void);
-#endif /* __VIR_SECRET_DRIVER_H__ */
+#endif /* LIBVIRT_SECRET_DRIVER_H */
*
*/
-#ifndef __VIR_SECRET_UTIL_H__
-# define __VIR_SECRET_UTIL_H__
+#ifndef LIBVIRT_SECRET_UTIL_H
+# define LIBVIRT_SECRET_UTIL_H
# include "internal.h"
# include "virsecret.h"
size_t *ret_secret_size)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_SECRET_UTIL_H__ */
+#endif /* LIBVIRT_SECRET_UTIL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SECURITY_APPARMOR_H__
-# define __VIR_SECURITY_APPARMOR_H__
+#ifndef LIBVIRT_SECURITY_APPARMOR_H
+# define LIBVIRT_SECURITY_APPARMOR_H
# include "security_driver.h"
# define PROFILE_NAME_SIZE 8 + VIR_UUID_STRING_BUFLEN /* AA_PREFIX + uuid */
# define MAX_FILE_LEN (1024*1024*10) /* 10MB limit for sanity check */
-#endif /* __VIR_SECURITY_APPARMOR_H__ */
+#endif /* LIBVIRT_SECURITY_APPARMOR_H */
* POSIX DAC security driver
*/
-#ifndef __VIR_SECURITY_DAC
-# define __VIR_SECURITY_DAC
+#ifndef LIBVIRT_SECURITY_DAC_H
+# define LIBVIRT_SECURITY_DAC_H
# include "security_driver.h"
void virSecurityDACSetChownCallback(virSecurityManagerPtr mgr,
virSecurityManagerDACChownCallback chownCallback);
-#endif /* __VIR_SECURITY_DAC */
+#endif /* LIBVIRT_SECURITY_DAC_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SECURITY_H__
-# define __VIR_SECURITY_H__
+#ifndef LIBVIRT_SECURITY_DRIVER_H
+# define LIBVIRT_SECURITY_DRIVER_H
# include "internal.h"
# include "domain_conf.h"
virSecurityDriverPtr virSecurityDriverLookup(const char *name,
const char *virtDriver);
-#endif /* __VIR_SECURITY_H__ */
+#endif /* LIBVIRT_SECURITY_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIR_SECURITY_MANAGER_H__
-# define VIR_SECURITY_MANAGER_H__
+#ifndef LIBVIRT_SECURITY_MANAGER_H
+# define LIBVIRT_SECURITY_MANAGER_H
# include "domain_conf.h"
# include "vircommand.h"
virSecurityManagerMetadataUnlock(virSecurityManagerPtr mgr,
virSecurityManagerMetadataLockStatePtr *state);
-#endif /* VIR_SECURITY_MANAGER_H__ */
+#endif /* LIBVIRT_SECURITY_MANAGER_H */
*
*/
-#ifndef __VIR_SECURITY_NOP_H__
-# define __VIR_SECURITY_NOP_H__
+#ifndef LIBVIRT_SECURITY_NOP_H
+# define LIBVIRT_SECURITY_NOP_H
# include "security_driver.h"
extern virSecurityDriver virSecurityDriverNop;
-#endif /* __VIR_SECURITY_NOP_H__ */
+#endif /* LIBVIRT_SECURITY_NOP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SECURITY_SELINUX_H__
-# define __VIR_SECURITY_SELINUX_H__
+#ifndef LIBVIRT_SECURITY_SELINUX_H
+# define LIBVIRT_SECURITY_SELINUX_H
extern virSecurityDriver virSecurityDriverSELinux;
-#endif /* __VIR_SECURITY_SELINUX_H__ */
+#endif /* LIBVIRT_SECURITY_SELINUX_H */
* Stacked security driver
*/
-#ifndef __VIR_SECURITY_STACK
-# define __VIR_SECURITY_STACK
+#ifndef LIBVIRT_SECURITY_STACK_H
+# define LIBVIRT_SECURITY_STACK_H
# include "security_driver.h"
virSecurityManagerPtr*
virSecurityStackGetNested(virSecurityManagerPtr mgr);
-#endif /* __VIR_SECURITY_STACK */
+#endif /* LIBVIRT_SECURITY_STACK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_H__
-# define __VIR_STORAGE_BACKEND_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_H
+# define LIBVIRT_STORAGE_BACKEND_H
# include <sys/stat.h>
int virStorageBackendRegister(virStorageBackendPtr backend);
-#endif /* __VIR_STORAGE_BACKEND_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_DISK_H__
-# define __VIR_STORAGE_BACKEND_DISK_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_DISK_H
+# define LIBVIRT_STORAGE_BACKEND_DISK_H
int virStorageBackendDiskRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_DISK_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_DISK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_FS_H__
-# define __VIR_STORAGE_BACKEND_FS_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_FS_H
+# define LIBVIRT_STORAGE_BACKEND_FS_H
int virStorageBackendFsRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_FS_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_FS_H */
*
*/
-#ifndef __VIR_STORAGE_BACKEND_GLUSTER_H__
-# define __VIR_STORAGE_BACKEND_GLUSTER_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_GLUSTER_H
+# define LIBVIRT_STORAGE_BACKEND_GLUSTER_H
int virStorageBackendGlusterRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_GLUSTER_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_GLUSTER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_ISCSI_H__
-# define __VIR_STORAGE_BACKEND_ISCSI_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_ISCSI_H
+# define LIBVIRT_STORAGE_BACKEND_ISCSI_H
int virStorageBackendISCSIRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_ISCSI_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_ISCSI_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_ISCSI_H__
-# define __VIR_STORAGE_BACKEND_ISCSI_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_ISCSI_DIRECT_H
+# define LIBVIRT_STORAGE_BACKEND_ISCSI_DIRECT_H
int virStorageBackendISCSIDirectRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_ISCSI_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_ISCSI_DIRECT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_LOGICAL_H__
-# define __VIR_STORAGE_BACKEND_LOGICAL_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_LOGICAL_H
+# define LIBVIRT_STORAGE_BACKEND_LOGICAL_H
int virStorageBackendLogicalRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_LOGICAL_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_LOGICAL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_MPATH_H__
-# define __VIR_STORAGE_BACKEND_MPATH_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_MPATH_H
+# define LIBVIRT_STORAGE_BACKEND_MPATH_H
int virStorageBackendMpathRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_MPATH_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_MPATH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_RBD_H__
-# define __VIR_STORAGE_BACKEND_RBD_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_RBD_H
+# define LIBVIRT_STORAGE_BACKEND_RBD_H
int virStorageBackendRBDRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_RBD_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_RBD_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_SCSI_H__
-# define __VIR_STORAGE_BACKEND_SCSI_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_SCSI_H
+# define LIBVIRT_STORAGE_BACKEND_SCSI_H
int virStorageBackendSCSIRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_SCSI_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_SCSI_H */
#include "virerror.h"
#include "storage_backend_sheepdog.h"
-#define __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_ALLOW_H__
+#define LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H_ALLOW
#include "storage_backend_sheepdog_priv.h"
#include "storage_conf.h"
#include "vircommand.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_SHEEPDOG_H__
-# define __VIR_STORAGE_BACKEND_SHEEPDOG_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_SHEEPDOG_H
+# define LIBVIRT_STORAGE_BACKEND_SHEEPDOG_H
int virStorageBackendSheepdogRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_SHEEPDOG_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_SHEEPDOG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_ALLOW_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H_ALLOW
# error "storage_backend_sheepdog_priv.h may only be included by storage_backend_sheepdog.c or test suites"
-#endif /* __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_ALLOW_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H_ALLOW */
-#ifndef __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_H__
-# define __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H
+# define LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H
# include "conf/storage_conf.h"
int virStorageBackendSheepdogParseVdiList(virStorageVolDefPtr vol,
char *output);
-#endif /* __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H */
*
*/
-#ifndef __VIR_STORAGE_BACKEND_VSTORAGE_H__
-# define __VIR_STORAGE_BACKEND_VSTORAGE_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_VSTORAGE_H
+# define LIBVIRT_STORAGE_BACKEND_VSTORAGE_H
int virStorageBackendVstorageRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_VSTORAGE_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_VSTORAGE_H */
*
*/
-#ifndef __VIR_STORAGE_BACKEND_ZFS_H__
-# define __VIR_STORAGE_BACKEND_ZFS_H__
+#ifndef LIBVIRT_STORAGE_BACKEND_ZFS_H
+# define LIBVIRT_STORAGE_BACKEND_ZFS_H
int virStorageBackendZFSRegister(void);
-#endif /* __VIR_STORAGE_BACKEND_ZFS_H__ */
+#endif /* LIBVIRT_STORAGE_BACKEND_ZFS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_DRIVER_H__
-# define __VIR_STORAGE_DRIVER_H__
+#ifndef LIBVIRT_STORAGE_DRIVER_H
+# define LIBVIRT_STORAGE_DRIVER_H
# include <sys/stat.h>
int storageRegister(void);
int storageRegisterAll(void);
-#endif /* __VIR_STORAGE_DRIVER_H__ */
+#endif /* LIBVIRT_STORAGE_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_FILE_FS_H__
-# define __VIR_STORAGE_FILE_FS_H__
+#ifndef LIBVIRT_STORAGE_FILE_FS_H
+# define LIBVIRT_STORAGE_FILE_FS_H
int virStorageFileFsRegister(void);
-#endif /* __VIR_STORAGE_FILE_FS_H__ */
+#endif /* LIBVIRT_STORAGE_FILE_FS_H */
*
*/
-#ifndef __VIR_STORAGE_FILE_GLUSTER_H__
-# define __VIR_STORAGE_FILE_GLUSTER_H__
+#ifndef LIBVIRT_STORAGE_FILE_GLUSTER_H
+# define LIBVIRT_STORAGE_FILE_GLUSTER_H
int virStorageFileGlusterRegister(void);
-#endif /* __VIR_STORAGE_FILE_GLUSTER_H__ */
+#endif /* LIBVIRT_STORAGE_FILE_GLUSTER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_UTIL_H__
-# define __VIR_STORAGE_UTIL_H__
+#ifndef LIBVIRT_STORAGE_UTIL_H
+# define LIBVIRT_STORAGE_UTIL_H
# include <sys/stat.h>
virStoragePoolDefPtr def,
bool on);
-#endif /* __VIR_STORAGE_UTIL_H__ */
+#endif /* LIBVIRT_STORAGE_UTIL_H */
* Daniel Berrange <berrange@redhat.com>
*/
-#ifndef __VIR_TEST_INTERNAL_H__
-# define __VIR_TEST_INTERNAL_H__
+#ifndef LIBVIRT_TEST_DRIVER_H
+# define LIBVIRT_TEST_DRIVER_H
# include "internal.h"
int testRegister(void);
-#endif /* __VIR_TEST_INTERNAL_H__ */
+#endif /* LIBVIRT_TEST_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __UML_CONF_H
-# define __UML_CONF_H
+#ifndef LIBVIRT_UML_CONF_H
+# define LIBVIRT_UML_CONF_H
# include "internal.h"
# include "libvirt_internal.h"
struct uml_driver *driver,
virDomainObjPtr dom);
-#endif /* __UML_CONF_H */
+#endif /* LIBVIRT_UML_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef UML_DRIVER_H
-# define UML_DRIVER_H
+#ifndef LIBVIRT_UML_DRIVER_H
+# define LIBVIRT_UML_DRIVER_H
# include "internal.h"
int umlRegister(void);
-#endif /* UML_DRIVER_H */
+#endif /* LIBVIRT_UML_DRIVER_H */
*
*/
-#ifndef __VIR_MEMORY_H_
-# define __VIR_MEMORY_H_
+#ifndef LIBVIRT_VIRALLOC_H
+# define LIBVIRT_VIRALLOC_H
# include "internal.h"
# define VIR_AUTOPTR(type) \
__attribute__((cleanup(VIR_AUTOPTR_FUNC_NAME(type)))) type *
-#endif /* __VIR_MEMORY_H_ */
+#endif /* LIBVIRT_VIRALLOC_H */
*
*/
-#ifndef __VIR_ARCH_H__
-# define __VIR_ARCH_H__
+#ifndef LIBVIRT_VIRARCH_H
+# define LIBVIRT_VIRARCH_H
# include "internal.h"
virArch virArchFromHost(void);
-#endif /* __VIR_ARCH_H__ */
+#endif /* LIBVIRT_VIRARCH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_ARPTABLE_H__
-# define __VIR_ARPTABLE_H__
+#ifndef LIBVIRT_VIRARPTABLE_H
+# define LIBVIRT_VIRARPTABLE_H
# include "internal.h"
virArpTablePtr virArpTableGet(void);
void virArpTableFree(virArpTablePtr table);
-#endif /* __VIR_ARPTABLE_H__ */
+#endif /* LIBVIRT_VIRARPTABLE_H */
*
*/
-#ifndef __VIR_ATOMIC_H__
-# define __VIR_ATOMIC_H__
+#ifndef LIBVIRT_VIRATOMIC_H
+# define LIBVIRT_VIRATOMIC_H
# include "internal.h"
# endif
-#endif /* __VIR_ATOMIC_H__ */
+#endif /* LIBVIRT_VIRATOMIC_H */
*
*/
-#ifndef __LIBVIRT_AUDIT_H__
-# define __LIBVIRT_AUDIT_H__
+#ifndef LIBVIRT_VIRAUDIT_H
+# define LIBVIRT_VIRAUDIT_H
# include "internal.h"
# include "virlog.h"
# define VIR_AUDIT_STR(str) \
((str) ? (str) : "?")
-#endif /* __LIBVIRT_AUDIT_H__ */
+#endif /* LIBVIRT_VIRAUDIT_H */
*
*/
-#ifndef __VIR_AUTH_H__
-# define __VIR_AUTH_H__
+#ifndef LIBVIRT_VIRAUTH_H
+# define LIBVIRT_VIRAUTH_H
# include "internal.h"
# include "viruri.h"
const char *servicename,
const char *username,
const char *hostname);
-#endif /* __VIR_AUTH_H__ */
+#endif /* LIBVIRT_VIRAUTH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_AUTHCONFIG_H__
-# define __VIR_AUTHCONFIG_H__
+#ifndef LIBVIRT_VIRAUTHCONFIG_H
+# define LIBVIRT_VIRAUTHCONFIG_H
# include "internal.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virAuthConfig, virAuthConfigFree)
-#endif /* __VIR_AUTHCONFIG_H__ */
+#endif /* LIBVIRT_VIRAUTHCONFIG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __BITMAP_H__
-# define __BITMAP_H__
+#ifndef LIBVIRT_VIRBITMAP_H
+# define LIBVIRT_VIRBITMAP_H
# include "internal.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virBitmap, virBitmapFree)
-#endif /* __BITMAP_H__ */
+#endif /* LIBVIRT_VIRBITMAP_H */
* Daniel Veillard <veillard@redhat.com>
*/
-#ifndef __VIR_BUFFER_H__
-# define __VIR_BUFFER_H__
+#ifndef LIBVIRT_VIRBUFFER_H
+# define LIBVIRT_VIRBUFFER_H
# include <stdarg.h>
VIR_DEFINE_AUTOPTR_FUNC(virBuffer, virBufferFreeAndReset)
-#endif /* __VIR_BUFFER_H__ */
+#endif /* LIBVIRT_VIRBUFFER_H */
# include <unistd.h>
#endif /* __linux__ */
-#define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+#define LIBVIRT_VIRCGROUPPRIV_H_ALLOW
#include "vircgrouppriv.h"
#include "virutil.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CGROUP_H__
-# define __VIR_CGROUP_H__
+#ifndef LIBVIRT_VIRCGROUP_H
+# define LIBVIRT_VIRCGROUP_H
# include "virutil.h"
# include "virbitmap.h"
int virCgroupHasEmptyTasks(virCgroupPtr cgroup, int controller);
bool virCgroupControllerAvailable(int controller);
-#endif /* __VIR_CGROUP_H__ */
+#endif /* LIBVIRT_VIRCGROUP_H */
#include <config.h>
#include "vircgroupbackend.h"
-#define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+#define LIBVIRT_VIRCGROUPPRIV_H_ALLOW
#include "vircgrouppriv.h"
-#undef __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
#include "vircgroupv1.h"
#include "vircgroupv2.h"
#include "virerror.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CGROUP_BACKEND_H__
-# define __VIR_CGROUP_BACKEND_H__
+#ifndef LIBVIRT_VIRCGROUPBACKEND_H
+# define LIBVIRT_VIRCGROUPBACKEND_H
# include "internal.h"
} \
return backend->func(group, ##__VA_ARGS__);
-#endif /* __VIR_CGROUP_BACKEND_H__ */
+#endif /* LIBVIRT_VIRCGROUPBACKEND_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+#ifndef LIBVIRT_VIRCGROUPPRIV_H_ALLOW
# error "vircgrouppriv.h may only be included by vircgroup.c or its test suite"
-#endif /* __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__ */
+#endif /* LIBVIRT_VIRCGROUPPRIV_H_ALLOW */
-#ifndef __VIR_CGROUP_PRIV_H__
-# define __VIR_CGROUP_PRIV_H__
+#ifndef LIBVIRT_VIRCGROUPPRIV_H
+# define LIBVIRT_VIRCGROUPPRIV_H
# include "vircgroup.h"
# include "vircgroupbackend.h"
const char *taskFile,
bool dormdir);
-#endif /* __VIR_CGROUP_PRIV_H__ */
+#endif /* LIBVIRT_VIRCGROUPPRIV_H */
#include "internal.h"
-#define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+#define LIBVIRT_VIRCGROUPPRIV_H_ALLOW
#include "vircgrouppriv.h"
-#undef __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
#include "vircgroup.h"
#include "vircgroupbackend.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CGROUP_V1_H__
-# define __VIR_CGROUP_V1_H__
+#ifndef LIBVIRT_VIRCGROUPV1_H
+# define LIBVIRT_VIRCGROUPV1_H
void
virCgroupV1Register(void);
-#endif /* __VIR_CGROUP_V1_H__ */
+#endif /* LIBVIRT_VIRCGROUPV1_H */
#include "internal.h"
-#define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+#define LIBVIRT_VIRCGROUPPRIV_H_ALLOW
#include "vircgrouppriv.h"
-#undef __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
#include "vircgroup.h"
#include "vircgroupbackend.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CGROUP_V2_H__
-# define __VIR_CGROUP_V2_H__
+#ifndef LIBVIRT_VIRCGROUPV2_H
+# define LIBVIRT_VIRCGROUPV2_H
void
virCgroupV2Register(void);
-#endif /* __VIR_CGROUP_V2_H__ */
+#endif /* LIBVIRT_VIRCGROUPV2_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CLOSE_CALLBACKS__
-# define __VIR_CLOSE_CALLBACKS__
+#ifndef LIBVIRT_VIRCLOSECALLBACKS_H
+# define LIBVIRT_VIRCLOSECALLBACKS_H
# include "conf/virdomainobjlist.h"
virConnectPtr conn,
virDomainObjListPtr domains,
void *opaque);
-#endif /* __VIR_CLOSE_CALLBACKS__ */
+#endif /* LIBVIRT_VIRCLOSECALLBACKS_H */
# include <sys/apparmor.h>
#endif
-#define __VIR_COMMAND_PRIV_H_ALLOW__
+#define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
#include "vircommandpriv.h"
#include "virerror.h"
#include "virutil.h"
*
*/
-#ifndef __VIR_COMMAND_H__
-# define __VIR_COMMAND_H__
+#ifndef LIBVIRT_VIRCOMMAND_H
+# define LIBVIRT_VIRCOMMAND_H
# include "internal.h"
# include "virbuffer.h"
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree)
-#endif /* __VIR_COMMAND_H__ */
+#endif /* LIBVIRT_VIRCOMMAND_H */
*
*/
-#ifndef __VIR_COMMAND_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# error "vircommandpriv.h may only be included by vircommand.c or test suites"
-#endif /* __VIR_COMMAND_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */
-#ifndef __VIR_COMMAND_PRIV_H__
-# define __VIR_COMMAND_PRIV_H__
+#ifndef LIBVIRT_VIRCOMMANDPRIV_H
+# define LIBVIRT_VIRCOMMANDPRIV_H
# include "vircommand.h"
virCommandDryRunCallback cb,
void *opaque);
-#endif /* __VIR_COMMAND_PRIV_H__ */
+#endif /* LIBVIRT_VIRCOMMANDPRIV_H */
* Daniel Veillard <veillard@redhat.com>
*/
-#ifndef __VIR_CONF_H__
-# define __VIR_CONF_H__
+#ifndef LIBVIRT_VIRCONF_H
+# define LIBVIRT_VIRCONF_H
# include "virutil.h"
virConfPtr conf);
int virConfLoadConfig(virConfPtr *conf, const char *name);
-#endif /* __VIR_CONF_H__ */
+#endif /* LIBVIRT_VIRCONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CRYPTO_H__
-# define __VIR_CRYPTO_H__
+#ifndef LIBVIRT_VIRCRYPTO_H
+# define LIBVIRT_VIRCRYPTO_H
# include "internal.h"
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(6)
ATTRIBUTE_NONNULL(8) ATTRIBUTE_NONNULL(9) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_CRYPTO_H__ */
+#endif /* LIBVIRT_VIRCRYPTO_H */
#include <config.h>
-#define __VIR_DBUS_PRIV_H_ALLOW__
+#define LIBVIRT_VIRDBUSPRIV_H_ALLOW
#include "virdbuspriv.h"
#include "viralloc.h"
#include "virerror.h"
*
*/
-#ifndef __VIR_DBUS_H__
-# define __VIR_DBUS_H__
+#ifndef LIBVIRT_VIRDBUS_H
+# define LIBVIRT_VIRDBUS_H
# ifdef WITH_DBUS
# undef interface /* Work around namespace pollution in mingw's rpc.h */
int virDBusIsServiceRegistered(const char *name);
bool virDBusErrorIsUnknownMethod(virErrorPtr err);
-#endif /* __VIR_DBUS_H__ */
+#endif /* LIBVIRT_VIRDBUS_H */
*
*/
-#ifndef __VIR_DBUS_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRDBUSPRIV_H_ALLOW
# error "virdbuspriv.h may only be included by virdbus.c or test suites"
-#endif /* __VIR_DBUS_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRDBUSPRIV_H_ALLOW */
-#ifndef __VIR_DBUS_PRIV_H__
-# define __VIR_DBUS_PRIV_H__
+#ifndef LIBVIRT_VIRDBUSPRIV_H
+# define LIBVIRT_VIRDBUSPRIV_H
# include "virdbus.h"
const char *types,
...);
-#endif /* __VIR_DBUS_PRIV_H__ */
+#endif /* LIBVIRT_VIRDBUSPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_DEVMAPPER_H__
-# define __VIR_DEVMAPPER_H__
+#ifndef LIBVIRT_VIRDEVMAPPER_H
+# define LIBVIRT_VIRDEVMAPPER_H
int
virDevMapperGetTargets(const char *path,
char ***devPaths);
-#endif /* __VIR_DEVMAPPER_H__ */
+#endif /* LIBVIRT_VIRDEVMAPPER_H */
* based on iptables.h
*/
-#ifndef __DNSMASQ_H__
-# define __DNSMASQ_H__
+#ifndef LIBVIRT_VIRDNSMASQ_H
+# define LIBVIRT_VIRDNSMASQ_H
# include "virobject.h"
# include "virsocketaddr.h"
(dnsmasqCapsGetVersion(CAPS) >= \
(DNSMASQ_RA_MAJOR_REQD * 1000000) + \
(DNSMASQ_RA_MINOR_REQD * 1000))
-#endif /* __DNSMASQ_H__ */
+#endif /* LIBVIRT_VIRDNSMASQ_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __QEMUD_EBTABLES_H__
-# define __QEMUD_EBTABLES_H__
+#ifndef LIBVIRT_VIREBTABLES_H
+# define LIBVIRT_VIREBTABLES_H
# include "virmacaddr.h"
int ebtablesAddForwardPolicyReject(ebtablesContext *ctx);
-#endif /* __QEMUD_EBTABLES_H__ */
+#endif /* LIBVIRT_VIREBTABLES_H */
*
*/
-#ifndef __VIR_ENDIAN_H__
-# define __VIR_ENDIAN_H__
+#ifndef LIBVIRT_VIRENDIAN_H
+# define LIBVIRT_VIRENDIAN_H
# include "internal.h"
((uint16_t)(uint8_t)((buf)[0]) | \
((uint16_t)(uint8_t)((buf)[1]) << 8))
-#endif /* __VIR_ENDIAN_H__ */
+#endif /* LIBVIRT_VIRENDIAN_H */
*
*/
-#ifndef __VIRT_ERROR_H_
-# define __VIRT_ERROR_H_
+#ifndef LIBVIRT_VIRERROR_H
+# define LIBVIRT_VIRERROR_H
# include "internal.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virError, virFreeError)
-#endif /* __VIRT_ERROR_H_ */
+#endif /* LIBVIRT_VIRERROR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_EVENT_H__
-# define __VIR_EVENT_H__
+#ifndef LIBVIRT_VIREVENT_H
+# define LIBVIRT_VIREVENT_H
# include "internal.h"
-#endif /* __VIR_EVENT_H__ */
+#endif /* LIBVIRT_VIREVENT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_EVENT_POLL_H__
-# define __VIR_EVENT_POLL_H__
+#ifndef LIBVIRT_VIREVENTPOLL_H
+# define LIBVIRT_VIREVENTPOLL_H
# include "internal.h"
int virEventPollInterrupt(void);
-#endif /* __VIR_EVENT_POLL_H__ */
+#endif /* LIBVIRT_VIREVENTPOLL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_FCP_H__
-# define __VIR_FCP_H__
+#ifndef LIBVIRT_VIRFCP_H
+# define LIBVIRT_VIRFCP_H
bool
virFCIsCapableRport(const char *rport);
const char *entry,
char **result);
-#endif /* __VIR_FCP_H__ */
+#endif /* LIBVIRT_VIRFCP_H */
*
*/
-#ifndef __VIR_FDSTREAM_H_
-# define __VIR_FDSTREAM_H_
+#ifndef LIBVIRT_VIRFDSTREAM_H
+# define LIBVIRT_VIRFDSTREAM_H
# include "internal.h"
virFDStreamInternalCloseCb cb,
void *opaque,
virFDStreamInternalCloseCbFreeOpaque fcb);
-#endif /* __VIR_FDSTREAM_H_ */
+#endif /* LIBVIRT_VIRFDSTREAM_H */
*
*/
-#ifndef __VIR_FILE_H_
-# define __VIR_FILE_H_
+#ifndef LIBVIRT_VIRFILE_H
+# define LIBVIRT_VIRFILE_H
# include <dirent.h>
VIR_DEFINE_AUTOPTR_FUNC(virFileWrapperFd, virFileWrapperFdFree)
-#endif /* __VIR_FILE_H_ */
+#endif /* LIBVIRT_VIRFILE_H */
*
*/
-#ifndef __VIR_FILE_CACHE_H__
-# define __VIR_FILE_CACHE_H__
+#ifndef LIBVIRT_VIRFILECACHE_H
+# define LIBVIRT_VIRFILECACHE_H
# include "internal.h"
const char *name,
void *data);
-#endif /* __VIR_FILE_CACHE_H__ */
+#endif /* LIBVIRT_VIRFILECACHE_H */
#include <config.h>
-#define __VIR_FIREWALL_PRIV_H_ALLOW__
-
#include <stdarg.h>
+#define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
#include "virfirewallpriv.h"
#include "virerror.h"
#include "virutil.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_FIREWALL_H__
-# define __VIR_FIREWALL_H__
+#ifndef LIBVIRT_VIRFIREWALL_H
+# define LIBVIRT_VIRFIREWALL_H
# include "internal.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree)
-#endif /* __VIR_FIREWALL_H__ */
+#endif /* LIBVIRT_VIRFIREWALL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_FIREWALL_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
# error "virfirewallpriv.h may only be included by virfirewall.c or test suites"
-#endif /* __VIR_FIREWALL_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRFIREWALLPRIV_H_ALLOW */
-#ifndef __VIR_FIREWALL_PRIV_H__
-# define __VIR_FIREWALL_PRIV_H__
+#ifndef LIBVIRT_VIRFIREWALLPRIV_H
+# define LIBVIRT_VIRFIREWALLPRIV_H
# include "virfirewall.h"
int virFirewallSetBackend(virFirewallBackend backend);
-#endif /* __VIR_FIREWALL_PRIV_H__ */
+#endif /* LIBVIRT_VIRFIREWALLPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_FIRMWARE_H__
-# define __VIR_FIRMWARE_H__
+#ifndef LIBVIRT_VIRFIRMWARE_H
+# define LIBVIRT_VIRFIRMWARE_H
# include "internal.h"
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
-#endif /* __VIR_FIRMWARE_H__ */
+#endif /* LIBVIRT_VIRFIRMWARE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_GETTEXT_H__
-# define __VIR_GETTEXT_H__
+#ifndef LIBVIRT_VIRGETTEXT_H
+# define LIBVIRT_VIRGETTEXT_H
int virGettextInitialize(void);
-#endif /* __VIR_GETTEXT_H__ */
+#endif /* LIBVIRT_VIRGETTEXT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_GIC_H__
-# define __VIR_GIC_H__
+#ifndef LIBVIRT_VIRGIC_H
+# define LIBVIRT_VIRGIC_H
# include "virutil.h"
virGICImplementation implementation;
};
-#endif /* __VIR_GIC_H__ */
+#endif /* LIBVIRT_VIRGIC_H */
* Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
*/
-#ifndef __VIR_HASH_H__
-# define __VIR_HASH_H__
+#ifndef LIBVIRT_VIRHASH_H
+# define LIBVIRT_VIRHASH_H
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree)
-#endif /* __VIR_HASH_H__ */
+#endif /* LIBVIRT_VIRHASH_H */
* clients can be both 64 or 32 bit at the same time.
*/
-#ifndef __VIR_HASH_CODE_H__
-# define __VIR_HASH_CODE_H__
+#ifndef LIBVIRT_VIRHASHCODE_H
+# define LIBVIRT_VIRHASHCODE_H
# include "internal.h"
uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
ATTRIBUTE_NOINLINE;
-#endif /* __VIR_HASH_CODE_H__ */
+#endif /* LIBVIRT_VIRHASHCODE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_HOOKS_H__
-# define __VIR_HOOKS_H__
+#ifndef LIBVIRT_VIRHOOK_H
+# define LIBVIRT_VIRHOOK_H
# include "internal.h"
int virHookCall(int driver, const char *id, int op, int sub_op,
const char *extra, const char *input, char **output);
-#endif /* __VIR_HOOKS_H__ */
+#endif /* LIBVIRT_VIRHOOK_H */
#include "c-ctype.h"
#include "viralloc.h"
-#define __VIR_HOSTCPU_PRIV_H_ALLOW__
+#define LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW
#include "virhostcpupriv.h"
#include "physmem.h"
#include "virerror.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_HOSTCPU_H__
-# define __VIR_HOSTCPU_H__
+#ifndef LIBVIRT_VIRHOSTCPU_H
+# define LIBVIRT_VIRHOSTCPU_H
# include "internal.h"
# include "virarch.h"
unsigned int virHostCPUGetMicrocodeVersion(void);
-#endif /* __VIR_HOSTCPU_H__ */
+#endif /* LIBVIRT_VIRHOSTCPU_H */
*
*/
-#ifndef __VIR_HOSTCPU_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW
# error "virhostcpupriv.h may only be included by virhostcpu.c or test suites"
-#endif /* __VIR_HOSTCPU_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */
-#ifndef __VIR_HOSTCPU_PRIV_H__
-# define __VIR_HOSTCPU_PRIV_H__
+#ifndef LIBVIRT_VIRHOSTCPUPRIV_H
+# define LIBVIRT_VIRHOSTCPUPRIV_H
# include "virhostcpu.h"
int *nparams);
# endif
-#endif /* __VIR_HOSTCPU_PRIV_H__ */
+#endif /* LIBVIRT_VIRHOSTCPUPRIV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_HOSTDEV_H__
-# define __VIR_HOSTDEV_H__
+#ifndef LIBVIRT_VIRHOSTDEV_H
+# define LIBVIRT_VIRHOSTDEV_H
# include "internal.h"
virPCIDevicePtr pci)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-#endif /* __VIR_HOSTDEV_H__ */
+#endif /* LIBVIRT_VIRHOSTDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_HOSTMEM_H__
-# define __VIR_HOSTMEM_H__
+#ifndef LIBVIRT_VIRHOSTMEM_H
+# define LIBVIRT_VIRHOSTMEM_H
# include "internal.h"
unsigned int cellCount,
bool add);
-#endif /* __VIR_HOSTMEM_H__ */
+#endif /* LIBVIRT_VIRHOSTMEM_H */
*
*/
-#ifndef __VIR_IDENTITY_H__
-# define __VIR_IDENTITY_H__
+#ifndef LIBVIRT_VIRIDENTITY_H
+# define LIBVIRT_VIRIDENTITY_H
# include "virobject.h"
const char *context);
-#endif /* __VIR_IDENTITY_H__ */
+#endif /* LIBVIRT_VIRIDENTITY_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_INITCTL_H__
-# define __VIR_INITCTL_H__
+#ifndef LIBVIRT_VIRINITCTL_H
+# define LIBVIRT_VIRINITCTL_H
typedef enum {
VIR_INITCTL_RUNLEVEL_POWEROFF = 0,
int virInitctlSetRunLevel(virInitctlRunLevel level);
-#endif /* __VIR_INITCTL_H__ */
+#endif /* LIBVIRT_VIRINITCTL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_IPTABLES_H__
-# define __VIR_IPTABLES_H__
+#ifndef LIBVIRT_VIRIPTABLES_H
+# define LIBVIRT_VIRIPTABLES_H
# include "virsocketaddr.h"
# include "virfirewall.h"
const char *iface,
int port);
-#endif /* __VIR_IPTABLES_H__ */
+#endif /* LIBVIRT_VIRIPTABLES_H */
*
*/
-#ifndef __VIR_ISCSI_H__
-# define __VIR_ISCSI_H__
+#ifndef LIBVIRT_VIRISCSI_H
+# define LIBVIRT_VIRISCSI_H
# include "internal.h"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
ATTRIBUTE_NONNULL(4) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_ISCSI_H__ */
+#endif /* LIBVIRT_VIRISCSI_H */
*
*/
-#ifndef __VIR_JSON_H_
-# define __VIR_JSON_H_
+#ifndef LIBVIRT_VIRJSON_H
+# define LIBVIRT_VIRJSON_H
# include "internal.h"
# include "virbitmap.h"
VIR_DEFINE_AUTOPTR_FUNC(virJSONValue, virJSONValueFree)
-#endif /* __VIR_JSON_H_ */
+#endif /* LIBVIRT_VIRJSON_H */
*
*/
-#ifndef __VIR_UTIL_VIRTKEYCODE_H__
-# define __VIR_UTIL_VIRTKEYCODE_H__
+#ifndef LIBVIRT_VIRKEYCODE_H
+# define LIBVIRT_VIRKEYCODE_H
# include "virutil.h"
virKeycodeSet to_offset,
int key_value);
-#endif /* __VIR_UTIL_VIRTKEYCODE_H__ */
+#endif /* LIBVIRT_VIRKEYCODE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_KEYFILE_H__
-# define __VIR_KEYFILE_H__
+#ifndef LIBVIRT_VIRKEYFILE_H
+# define LIBVIRT_VIRKEYFILE_H
# include "internal.h"
const char *valuename)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
-#endif /* __VIR_KEYFILE_H__ */
+#endif /* LIBVIRT_VIRKEYFILE_H */
*
*/
-#ifndef __VIR_KMOD_H__
-# define __VIR_KMOD_H__
+#ifndef LIBVIRT_VIRKMOD_H
+# define LIBVIRT_VIRKMOD_H
# include "internal.h"
ATTRIBUTE_NONNULL(1);
bool virKModIsBlacklisted(const char *)
ATTRIBUTE_NONNULL(1);
-#endif /* __VIR_KMOD_H__ */
+#endif /* LIBVIRT_VIRKMOD_H */
*
*/
-#ifndef __VIR_LEASE_H_
-# define __VIR_LEASE_H_
+#ifndef LIBVIRT_VIRLEASE_H
+# define LIBVIRT_VIRLEASE_H
# include "virjson.h"
const char *iaid,
const char *server_duid);
-#endif /* __VIR_LEASE_H_ */
+#endif /* LIBVIRT_VIRLEASE_H */
*
*/
-#ifndef __VIR_LOCK_SPACE_H__
-# define __VIR_LOCK_SPACE_H__
+#ifndef LIBVIRT_VIRLOCKSPACE_H
+# define LIBVIRT_VIRLOCKSPACE_H
# include "internal.h"
# include "virjson.h"
int virLockSpaceReleaseResourcesForOwner(virLockSpacePtr lockspace,
pid_t owner);
-#endif /* __VIR_LOCK_SPACE_H__ */
+#endif /* LIBVIRT_VIRLOCKSPACE_H */
*
*/
-#ifndef __VIRTLOG_H_
-# define __VIRTLOG_H_
+#ifndef LIBVIRT_VIRLOG_H
+# define LIBVIRT_VIRLOG_H
# include "internal.h"
# include "virbuffer.h"
int virLogParseFilters(const char *src,
virLogFilterPtr **filters) ATTRIBUTE_NONNULL(1);
-#endif /* __VIRTLOG_H_ */
+#endif /* LIBVIRT_VIRLOG_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_MACADDR_H__
-# define __VIR_MACADDR_H__
+#ifndef LIBVIRT_VIRMACADDR_H
+# define LIBVIRT_VIRMACADDR_H
# include "internal.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virMacAddr, virMacAddrFree)
-#endif /* __VIR_MACADDR_H__ */
+#endif /* LIBVIRT_VIRMACADDR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_MACMAP_H__
-# define __VIR_MACMAP_H__
+#ifndef LIBVIRT_VIRMACMAP_H
+# define LIBVIRT_VIRMACMAP_H
typedef struct virMacMap virMacMap;
typedef virMacMap *virMacMapPtr;
int virMacMapDumpStr(virMacMapPtr mgr,
char **str);
-#endif /* __VIR_MACMAP_H__ */
+#endif /* LIBVIRT_VIRMACMAP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_MDEV_H__
-# define __VIR_MDEV_H__
+#ifndef LIBVIRT_VIRMDEV_H
+# define LIBVIRT_VIRMDEV_H
# include "internal.h"
# include "virobject.h"
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDevice, virMediatedDeviceFree)
VIR_DEFINE_AUTOPTR_FUNC(virMediatedDeviceType, virMediatedDeviceTypeFree)
-#endif /* __VIR_MDEV_H__ */
+#endif /* LIBVIRT_VIRMDEV_H */
*
*/
-#ifndef __VIR_MODULE_H__
-# define __VIR_MODULE_H__
+#ifndef LIBVIRT_VIRMODULE_H
+# define LIBVIRT_VIRMODULE_H
int virModuleLoad(const char *path,
const char *regfunc,
bool required);
-#endif /* __VIR_MODULE_H__ */
+#endif /* LIBVIRT_VIRMODULE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_H__
-# define __VIR_NETDEV_H__
+#ifndef LIBVIRT_VIRNETDEV_H
+# define LIBVIRT_VIRNETDEV_H
# include <net/if.h>
VIR_DEFINE_AUTOPTR_FUNC(virNetDevRxFilter, virNetDevRxFilterFree)
-#endif /* __VIR_NETDEV_H__ */
+#endif /* LIBVIRT_VIRNETDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_BANDWIDTH_H__
-# define __VIR_NETDEV_BANDWIDTH_H__
+#ifndef LIBVIRT_VIRNETDEVBANDWIDTH_H
+# define LIBVIRT_VIRNETDEVBANDWIDTH_H
# include "internal.h"
# include "virmacaddr.h"
unsigned int id)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_BANDWIDTH_H__ */
+#endif /* LIBVIRT_VIRNETDEVBANDWIDTH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_BRIDGE_H__
-# define __VIR_NETDEV_BRIDGE_H__
+#ifndef LIBVIRT_VIRNETDEVBRIDGE_H
+# define LIBVIRT_VIRNETDEVBRIDGE_H
# include "internal.h"
# include "virmacaddr.h"
int virNetDevBridgeFDBDel(const virMacAddr *mac, const char *ifname,
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_BRIDGE_H__ */
+#endif /* LIBVIRT_VIRNETDEVBRIDGE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEVIP_H__
-# define __VIR_NETDEVIP_H__
+#ifndef LIBVIRT_VIRNETDEVIP_H
+# define LIBVIRT_VIRNETDEVIP_H
# include "virsocketaddr.h"
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPAddr, virNetDevIPAddrFree)
VIR_DEFINE_AUTOPTR_FUNC(virNetDevIPRoute, virNetDevIPRouteFree)
-#endif /* __VIR_NETDEVIP_H__ */
+#endif /* LIBVIRT_VIRNETDEVIP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __UTIL_MACVTAP_H__
-# define __UTIL_MACVTAP_H__
+#ifndef LIBVIRT_VIRNETDEVMACVLAN_H
+# define LIBVIRT_VIRNETDEVMACVLAN_H
# include "internal.h"
# include "virmacaddr.h"
virNetDevVPortProfileOp vmOp)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
ATTRIBUTE_NONNULL(4) ATTRIBUTE_RETURN_CHECK;
-#endif /* __UTIL_MACVTAP_H__ */
+#endif /* LIBVIRT_VIRNETDEVMACVLAN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_MIDONET_H__
-# define __VIR_NETDEV_MIDONET_H__
+#ifndef LIBVIRT_VIRNETDEVMIDONET_H
+# define LIBVIRT_VIRNETDEVMIDONET_H
# include "internal.h"
# include "virnetdevvportprofile.h"
int virNetDevMidonetUnbindPort(virNetDevVPortProfilePtr virtualport)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_MIDONET_H__ */
+#endif /* LIBVIRT_VIRNETDEVMIDONET_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_OPENVSWITCH_H__
-# define __VIR_NETDEV_OPENVSWITCH_H__
+#ifndef LIBVIRT_VIRNETDEVOPENVSWITCH_H
+# define LIBVIRT_VIRNETDEVOPENVSWITCH_H
# include "internal.h"
# include "virnetdevvportprofile.h"
virNetDevVlanPtr virtVlan)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_OPENVSWITCH_H__ */
+#endif /* LIBVIRT_VIRNETDEVOPENVSWITCH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_TAP_H__
-# define __VIR_NETDEV_TAP_H__
+#ifndef LIBVIRT_VIRNETDEVTAP_H
+# define LIBVIRT_VIRNETDEVTAP_H
# include "internal.h"
# include "virnetdev.h"
bool swapped)
ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_TAP_H__ */
+#endif /* LIBVIRT_VIRNETDEVTAP_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_VETH_H__
-# define __VIR_NETDEV_VETH_H__
+#ifndef LIBVIRT_VIRNETDEVVETH_H
+# define LIBVIRT_VIRNETDEVVETH_H
# include "internal.h"
int virNetDevVethDelete(const char *veth)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_VETH_H__ */
+#endif /* LIBVIRT_VIRNETDEVVETH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_VLAN_H__
-# define __VIR_NETDEV_VLAN_H__
+#ifndef LIBVIRT_VIRNETDEVVLAN_H
+# define LIBVIRT_VIRNETDEVVLAN_H
# include <virutil.h>
VIR_DEFINE_AUTOPTR_FUNC(virNetDevVlan, virNetDevVlanFree)
-#endif /* __VIR_NETDEV_VLAN_H__ */
+#endif /* LIBVIRT_VIRNETDEVVLAN_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETDEV_VPORT_PROFILE_H__
-# define __VIR_NETDEV_VPORT_PROFILE_H__
+#ifndef LIBVIRT_VIRNETDEVVPORTPROFILE_H
+# define LIBVIRT_VIRNETDEVVPORTPROFILE_H
# include "internal.h"
# include "viruuid.h"
ATTRIBUTE_NONNULL(4) ATTRIBUTE_RETURN_CHECK;
-#endif /* __VIR_NETDEV_VPORT_PROFILE_H__ */
+#endif /* LIBVIRT_VIRNETDEVVPORTPROFILE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_NETLINK_H__
-# define __VIR_NETLINK_H__
+#ifndef LIBVIRT_VIRNETLINK_H
+# define LIBVIRT_VIRNETLINK_H
# include "internal.h"
# include "virmacaddr.h"
int virNetlinkEventRemoveClient(int watch, const virMacAddr *macaddr,
unsigned int protocol);
-#endif /* __VIR_NETLINK_H__ */
+#endif /* LIBVIRT_VIRNETLINK_H */
*
*/
-#ifndef __VIR_NODE_SUSPEND_H__
-# define __VIR_NODE_SUSPEND_H__
+#ifndef LIBVIRT_VIRNODESUSPEND_H
+# define LIBVIRT_VIRNODESUSPEND_H
# include "internal.h"
int virNodeSuspendGetTargetMask(unsigned int *bitmask);
-#endif /* __VIR_NODE_SUSPEND_H__ */
+#endif /* LIBVIRT_VIRNODESUSPEND_H */
*
*/
-#ifndef __VIR_NUMA_H__
-# define __VIR_NUMA_H__
+#ifndef LIBVIRT_VIRNUMA_H
+# define LIBVIRT_VIRNUMA_H
# include "internal.h"
# include "virbitmap.h"
unsigned int page_size,
unsigned long long page_count,
bool add);
-#endif /* __VIR_NUMA_H__ */
+#endif /* LIBVIRT_VIRNUMA_H */
*
*/
-#ifndef __VIR_OBJECT_H__
-# define __VIR_OBJECT_H__
+#ifndef LIBVIRT_VIROBJECT_H
+# define LIBVIRT_VIROBJECT_H
# include "internal.h"
# include "virthread.h"
virObjectListFreeCount(void *list,
size_t count);
-#endif /* __VIR_OBJECT_H__ */
+#endif /* LIBVIRT_VIROBJECT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_PCI_H__
-# define __VIR_PCI_H__
+#ifndef LIBVIRT_VIRPCI_H
+# define LIBVIRT_VIRPCI_H
# include "internal.h"
# include "virmdev.h"
VIR_DEFINE_AUTOPTR_FUNC(virPCIDeviceAddress, virPCIDeviceAddressFree)
VIR_DEFINE_AUTOPTR_FUNC(virPCIEDeviceInfo, virPCIEDeviceInfoFree)
-#endif /* __VIR_PCI_H__ */
+#endif /* LIBVIRT_VIRPCI_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_PERF_H__
-# define __VIR_PERF_H__
+#ifndef LIBVIRT_VIRPERF_H
+# define LIBVIRT_VIRPERF_H
# include "virutil.h"
# include "viralloc.h"
VIR_DEFINE_AUTOPTR_FUNC(virPerf, virPerfFree)
-#endif /* __VIR_PERF_H__ */
+#endif /* LIBVIRT_VIRPERF_H */
*
*/
-#ifndef __VIR_PIDFILE_H__
-# define __VIR_PIDFILE_H__
+#ifndef LIBVIRT_VIRPIDFILE_H
+# define LIBVIRT_VIRPIDFILE_H
# include <sys/types.h>
# include "internal.h"
int virPidFileForceCleanupPath(const char *path) ATTRIBUTE_NONNULL(1);
-#endif /* __VIR_PIDFILE_H__ */
+#endif /* LIBVIRT_VIRPIDFILE_H */
*
*/
-#ifndef __VIR_POLKIT_H__
-# define __VIR_POLKIT_H__
+#ifndef LIBVIRT_VIRPOLKIT_H
+# define LIBVIRT_VIRPOLKIT_H
# include "internal.h"
# include "vircommand.h"
void virPolkitAgentDestroy(virPolkitAgentPtr cmd);
virPolkitAgentPtr virPolkitAgentCreate(void);
-#endif /* __VIR_POLKIT_H__ */
+#endif /* LIBVIRT_VIRPOLKIT_H */
*
*/
-#ifndef __VIR_PORT_ALLOCATOR_H__
-# define __VIR_PORT_ALLOCATOR_H__
+#ifndef LIBVIRT_VIRPORTALLOCATOR_H
+# define LIBVIRT_VIRPORTALLOCATOR_H
# include "internal.h"
# include "virobject.h"
int virPortAllocatorSetUsed(unsigned short port);
-#endif /* __VIR_PORT_ALLOCATOR_H__ */
+#endif /* LIBVIRT_VIRPORTALLOCATOR_H */
*
*/
-#ifndef __VIR_PROBE_H__
-# define __VIR_PROBE_H__
+#ifndef LIBVIRT_VIRPROBE_H
+# define LIBVIRT_VIRPROBE_H
# include "internal.h"
# include "virlog.h"
# define PROBE_QUIET(NAME, FMT, ...)
# endif
-#endif /* __VIR_PROBE_H__ */
+#endif /* LIBVIRT_VIRPROBE_H */
*
*/
-#ifndef __VIR_PROCESS_H__
-# define __VIR_PROCESS_H__
+#ifndef LIBVIRT_VIRPROCESS_H
+# define LIBVIRT_VIRPROCESS_H
# include <sys/types.h>
int virProcessNamespaceAvailable(unsigned int ns);
-#endif /* __VIR_PROCESS_H__ */
+#endif /* LIBVIRT_VIRPROCESS_H */
*
*/
-#ifndef __VIR_QEMU_H_
-# define __VIR_QEMU_H_
+#ifndef LIBVIRT_VIRQEMU_H
+# define LIBVIRT_VIRQEMU_H
# include "internal.h"
# include "virbuffer.h"
const char *alias)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
-#endif /* __VIR_QEMU_H_ */
+#endif /* LIBVIRT_VIRQEMU_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_RANDOM_H__
-# define __VIR_RANDOM_H__
+#ifndef LIBVIRT_VIRRANDOM_H
+# define LIBVIRT_VIRRANDOM_H
# include "internal.h"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK ATTRIBUTE_NOINLINE;
int virRandomGenerateWWN(char **wwn, const char *virt_type) ATTRIBUTE_NOINLINE;
-#endif /* __VIR_RANDOM_H__ */
+#endif /* LIBVIRT_VIRRANDOM_H */
#include <sys/stat.h>
#include <fcntl.h>
-#define __VIR_RESCTRL_PRIV_H_ALLOW__
+#define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
#include "virresctrlpriv.h"
#include "viralloc.h"
#include "virfile.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_RESCTRL_H__
-# define __VIR_RESCTRL_H__
+#ifndef LIBVIRT_VIRRESCTRL_H
+# define LIBVIRT_VIRRESCTRL_H
# include "internal.h"
void
virResctrlMonitorFreeStats(virResctrlMonitorStatsPtr *stats,
size_t nstats);
-#endif /* __VIR_RESCTRL_H__ */
+#endif /* LIBVIRT_VIRRESCTRL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_RESCTRL_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
# error "virresctrlpriv.h may only be included by virresctrl.c or test suites"
-#endif /* __VIR_RESCTRL_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRRESCTRLPRIV_H_ALLOW */
-#ifndef __VIR_RESCTRL_PRIV_H__
-# define __VIR_RESCTRL_PRIV_H__
+#ifndef LIBVIRT_VIRRESCTRLPRIV_H
+# define LIBVIRT_VIRRESCTRLPRIV_H
# include "virresctrl.h"
virResctrlAllocPtr
virResctrlAllocGetUnused(virResctrlInfoPtr resctrl);
-#endif /* __VIR_RESCTRL_PRIV_H__ */
+#endif /* LIBVIRT_VIRRESCTRLPRIV_H */
*
*/
-#ifndef __VIR_ROTATING_FILE_H__
-# define __VIR_ROTATING_FILE_H__
+#ifndef LIBVIRT_VIRROTATINGFILE_H
+# define LIBVIRT_VIRROTATINGFILE_H
# include "internal.h"
void virRotatingFileWriterFree(virRotatingFileWriterPtr file);
void virRotatingFileReaderFree(virRotatingFileReaderPtr file);
-#endif /* __VIR_ROTATING_FILE_H__ */
+#endif /* LIBVIRT_VIRROTATINGFILE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SCSI_H__
-# define __VIR_SCSI_H__
+#ifndef LIBVIRT_VIRSCSI_H
+# define LIBVIRT_VIRSCSI_H
# include "internal.h"
# include "virobject.h"
VIR_DEFINE_AUTOPTR_FUNC(virSCSIDevice, virSCSIDeviceFree)
-#endif /* __VIR_SCSI_H__ */
+#endif /* LIBVIRT_VIRSCSI_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SCSI_HOST_H__
-# define __VIR_SCSI_HOST_H__
+#ifndef LIBVIRT_VIRSCSIHOST_H
+# define LIBVIRT_VIRSCSIHOST_H
# include "internal.h"
unsigned int function,
unsigned int unique_id);
-#endif /* __VIR_SCSI_HOST_H__ */
+#endif /* LIBVIRT_VIRSCSIHOST_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SCSIHOST_H__
-# define __VIR_SCSIHOST_H__
+#ifndef LIBVIRT_VIRSCSIVHOST_H
+# define LIBVIRT_VIRSCSIVHOST_H
# include "internal.h"
# include "virobject.h"
VIR_DEFINE_AUTOPTR_FUNC(virSCSIVHostDevice, virSCSIVHostDeviceFree)
-#endif /* __VIR_SCSIHOST_H__ */
+#endif /* LIBVIRT_VIRSCSIVHOST_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __SECLABEL_H
-# define __SECLABEL_H
+#ifndef LIBVIRT_VIRSECLABEL_H
+# define LIBVIRT_VIRSECLABEL_H
typedef enum {
VIR_DOMAIN_SECLABEL_DEFAULT,
void virSecurityLabelDefFree(virSecurityLabelDefPtr def);
void virSecurityDeviceLabelDefFree(virSecurityDeviceLabelDefPtr def);
-#endif /* __SECLABEL_H */
+#endif /* LIBVIRT_VIRSECLABEL_H */
*
*/
-#ifndef __VIR_SECRET_H__
-# define __VIR_SECRET_H__
+#ifndef LIBVIRT_VIRSECRET_H
+# define LIBVIRT_VIRSECRET_H
# include "internal.h"
void virSecretLookupFormatSecret(virBufferPtr buf,
const char *secrettype,
virSecretLookupTypeDefPtr def);
-#endif /* __VIR_SECRET_H__ */
+#endif /* LIBVIRT_VIRSECRET_H */
*
*/
-#ifndef _LIBVIR_SEXPR_H_
-# define _LIBVIR_SEXPR_H_
+#ifndef LIBVIRT_VIRSEXPR_H
+# define LIBVIRT_VIRSEXPR_H
# include "internal.h"
# include "virbuffer.h"
double sexpr_float(const struct sexpr *sexpr, const char *name);
uint64_t sexpr_u64(const struct sexpr *sexpr, const char *name);
-#endif /* _LIBVIR_SEXPR_H_ */
+#endif /* LIBVIRT_VIRSEXPR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SOCKETADDR_H__
-# define __VIR_SOCKETADDR_H__
+#ifndef LIBVIRT_VIRSOCKETADDR_H
+# define LIBVIRT_VIRSOCKETADDR_H
# include <netinet/in.h>
# include <sys/socket.h>
VIR_DEFINE_AUTOPTR_FUNC(virSocketAddr, virSocketAddrFree)
-#endif /* __VIR_SOCKETADDR_H__ */
+#endif /* LIBVIRT_VIRSOCKETADDR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_ENCRYPTION_H__
-# define __VIR_STORAGE_ENCRYPTION_H__
+#ifndef LIBVIRT_VIRSTORAGEENCRYPTION_H
+# define LIBVIRT_VIRSTORAGEENCRYPTION_H
# include "internal.h"
# include "virbuffer.h"
int virStorageGenerateQcowPassphrase(unsigned char *dest);
-#endif /* __VIR_STORAGE_ENCRYPTION_H__ */
+#endif /* LIBVIRT_VIRSTORAGEENCRYPTION_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_FILE_H__
-# define __VIR_STORAGE_FILE_H__
+#ifndef LIBVIRT_VIRSTORAGEFILE_H
+# define LIBVIRT_VIRSTORAGEFILE_H
# include <sys/stat.h>
virStorageSourcePtr src,
virStorageSourcePtr parent);
-#endif /* __VIR_STORAGE_FILE_H__ */
+#endif /* LIBVIRT_VIRSTORAGEFILE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STORAGE_FILE_BACKEND_H__
-# define __VIR_STORAGE_FILE_BACKEND_H__
+#ifndef LIBVIRT_VIRSTORAGEFILEBACKEND_H
+# define LIBVIRT_VIRSTORAGEFILEBACKEND_H
# include <sys/stat.h>
int virStorageFileBackendRegister(virStorageFileBackendPtr backend);
-#endif /* __VIR_STORAGE_FILE_BACKEND_H__ */
+#endif /* LIBVIRT_VIRSTORAGEFILEBACKEND_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_STRING_H__
-# define __VIR_STRING_H__
+#ifndef LIBVIRT_VIRSTRING_H
+# define LIBVIRT_VIRSTRING_H
# include <stdarg.h>
VIR_DEFINE_AUTOPTR_FUNC(virString, virStringListFree)
-#endif /* __VIR_STRING_H__ */
+#endif /* LIBVIRT_VIRSTRING_H */
#include "virfile.h"
#include "virstring.h"
-#define __VIR_SYSINFO_PRIV_H_ALLOW__
+#define LIBVIRT_VIRSYSINFOPRIV_H_ALLOW
#include "virsysinfopriv.h"
#define VIR_FROM_THIS VIR_FROM_SYSINFO
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_SYSINFOS_H__
-# define __VIR_SYSINFOS_H__
+#ifndef LIBVIRT_VIRSYSINFO_H
+# define LIBVIRT_VIRSYSINFO_H
# include "internal.h"
# include "virutil.h"
VIR_ENUM_DECL(virSysinfo)
-#endif /* __VIR_SYSINFOS_H__ */
+#endif /* LIBVIRT_VIRSYSINFO_H */
*
*/
-#ifndef __VIR_SYSINFO_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRSYSINFOPRIV_H_ALLOW
# error "virsysinfopriv.h may only be included by virsysinfo.c or test suites"
-#endif /* __VIR_SYSINFO_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRSYSINFOPRIV_H_ALLOW */
-#ifndef __VIR_SYSINFO_PRIV_H__
-# define __VIR_SYSINFO_PRIV_H__
+#ifndef LIBVIRT_VIRSYSINFOPRIV_H
+# define LIBVIRT_VIRSYSINFOPRIV_H
void
virSysinfoSetup(const char *dmidecode,
virSysinfoDefPtr
virSysinfoReadX86(void);
-#endif /* __VIR_SYSINFO_PRIV_H__ */
+#endif /* LIBVIRT_VIRSYSINFOPRIV_H */
# include <sys/un.h>
#endif
-#define __VIR_SYSTEMD_PRIV_H_ALLOW__ 1
+#define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
#include "virsystemdpriv.h"
#include "virsystemd.h"
*
*/
-#ifndef __VIR_SYSTEMD_H__
-# define __VIR_SYSTEMD_H__
+#ifndef LIBVIRT_VIRSYSTEMD_H
+# define LIBVIRT_VIRSYSTEMD_H
# include "internal.h"
char *virSystemdGetMachineNameByPID(pid_t pid);
-#endif /* __VIR_SYSTEMD_H__ */
+#endif /* LIBVIRT_VIRSYSTEMD_H */
*
*/
-#ifndef __VIR_SYSTEMD_PRIV_H_ALLOW__
+#ifndef LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
# error "virsystemdpriv.h may only be included by virsystemd.c or test suites"
-#endif /* __VIR_SYSTEMD_PRIV_H_ALLOW__ */
+#endif /* LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW */
-#ifndef __VIR_SYSTEMD_PRIV_H__
-# define __VIR_SYSTEMD_PRIV_H__
+#ifndef LIBVIRT_VIRSYSTEMDPRIV_H
+# define LIBVIRT_VIRSYSTEMDPRIV_H
# include "virsystemd.h"
void virSystemdHasMachinedResetCachedValue(void);
-#endif /* __VIR_SYSTEMD_PRIV_H__ */
+#endif /* LIBVIRT_VIRSYSTEMDPRIV_H */
*
*/
-#ifndef __THREADS_H_
-# define __THREADS_H_
+#ifndef LIBVIRT_VIRTHREAD_H
+# define LIBVIRT_VIRTHREAD_H
# include "internal.h"
# include "virerror.h"
return 0; \
}
-#endif /* __THREADS_H_ */
+#endif /* LIBVIRT_VIRTHREAD_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_THREAD_JOB_H__
-# define __VIR_THREAD_JOB_H__
+#ifndef LIBVIRT_VIRTHREADJOB_H
+# define LIBVIRT_VIRTHREADJOB_H
const char *virThreadJobGet(void);
void virThreadJobSet(const char *caller);
void virThreadJobClear(int rv);
-#endif /* __VIR_THREAD_JOB_H__ */
+#endif /* LIBVIRT_VIRTHREADJOB_H */
* Daniel P. Berrange <berrange@redhat.com>
*/
-#ifndef __VIR_THREADPOOL_H__
-# define __VIR_THREADPOOL_H__
+#ifndef LIBVIRT_VIRTHREADPOOL_H
+# define LIBVIRT_VIRTHREADPOOL_H
# include "internal.h"
long long int maxWorkers,
long long int prioWorkers);
-#endif /* __VIR_THREADPOOL_H__ */
+#endif /* LIBVIRT_VIRTHREADPOOL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_TIME_H__
-# define __VIR_TIME_H__
+#ifndef LIBVIRT_VIRTIME_H
+# define LIBVIRT_VIRTIME_H
# include <time.h>
bool virTimeBackOffWait(virTimeBackOffVar *var);
-#endif /* __VIR_TIME_H__ */
+#endif /* LIBVIRT_VIRTIME_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_TPM_H__
-# define __VIR_TPM_H__
+#ifndef LIBVIRT_VIRTPM_H
+# define LIBVIRT_VIRTPM_H
char *virTPMCreateCancelPath(const char *devpath) ATTRIBUTE_NOINLINE;
-#endif /* __VIR_TPM_H__ */
+#endif /* LIBVIRT_VIRTPM_H */
*
*/
-#ifndef __VIR_TYPED_PARAM_H_
-# define __VIR_TYPED_PARAM_H_
+#ifndef LIBVIRT_VIRTYPEDPARAM_H
+# define LIBVIRT_VIRTYPEDPARAM_H
# include "internal.h"
# include "virutil.h"
} \
} while (0)
-#endif /* __VIR_TYPED_PARAM_H_ */
+#endif /* LIBVIRT_VIRTYPEDPARAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_URI_H__
-# define __VIR_URI_H__
+#ifndef LIBVIRT_VIRURI_H
+# define LIBVIRT_VIRURI_H
# include <libxml/uri.h>
# define VIR_URI_SERVER(uri) ((uri) && (uri)->server ? (uri)->server : "localhost")
-#endif /* __VIR_URI_H__ */
+#endif /* LIBVIRT_VIRURI_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_USB_H__
-# define __VIR_USB_H__
+#ifndef LIBVIRT_VIRUSB_H
+# define LIBVIRT_VIRUSB_H
# include "internal.h"
# include "virobject.h"
VIR_DEFINE_AUTOPTR_FUNC(virUSBDevice, virUSBDeviceFree)
-#endif /* __VIR_USB_H__ */
+#endif /* LIBVIRT_VIRUSB_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_UTIL_H__
-# define __VIR_UTIL_H__
+#ifndef LIBVIRT_VIRUTIL_H
+# define LIBVIRT_VIRUTIL_H
# include "internal.h"
# include <unistd.h>
# define VIR_ASSIGN_IS_OVERFLOW(lvalue, rvalue) \
(((lvalue) = (rvalue)) != (rvalue))
-#endif /* __VIR_UTIL_H__ */
+#endif /* LIBVIRT_VIRUTIL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_UUID_H__
-# define __VIR_UUID_H__
+#ifndef LIBVIRT_VIRUUID_H
+# define LIBVIRT_VIRUUID_H
# include "internal.h"
const char *virUUIDFormat(const unsigned char *uuid,
char *uuidstr) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
-#endif /* __VIR_UUID_H__ */
+#endif /* LIBVIRT_VIRUUID_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_VHBA_H__
-# define __VIR_VHBA_H__
+#ifndef LIBVIRT_VIRVHBA_H
+# define LIBVIRT_VIRVHBA_H
# include "internal.h"
const char *fabric_wwn)
ATTRIBUTE_NONNULL(2);
-#endif /* __VIR_VHBA_H__ */
+#endif /* LIBVIRT_VIRVHBA_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_VSOCK_H__
-# define __VIR_VSOCK_H__
+#ifndef LIBVIRT_VIRVSOCK_H
+# define LIBVIRT_VIRVSOCK_H
int
virVsockSetGuestCid(int fd,
int
virVsockAcquireGuestCid(int fd,
unsigned int *guest_cid);
-#endif /* __VIR_VSOCK_H__ */
+#endif /* LIBVIRT_VIRVSOCK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XDRDEFS_H__
-# define __VIR_XDRDEFS_H__
+#ifndef LIBVIRT_VIRXDRDEFS_H
+# define LIBVIRT_VIRXDRDEFS_H
/* cygwin's xdr implementation defines xdr_u_int64_t instead of xdr_uint64_t
* and lacks IXDR_PUT_INT32 and IXDR_GET_INT32
# define IXDR_GET_U_INT32 IXDR_GET_U_LONG
# endif
-#endif /* __VIR_XDRDEFS_H__ */
+#endif /* LIBVIRT_VIRXDRDEFS_H */
* Daniel Veillard <veillard@redhat.com>
*/
-#ifndef __VIR_XML_H__
-# define __VIR_XML_H__
+#ifndef LIBVIRT_VIRXML_H
+# define LIBVIRT_VIRXML_H
# include "internal.h"
virBufferPtr attrBuf,
virBufferPtr childBuf);
-#endif /* __VIR_XML_H__ */
+#endif /* LIBVIRT_VIRXML_H */
*
*/
-#ifndef __VBOX_MSCOMGLUE_H__
-# define __VBOX_MSCOMGLUE_H__
+#ifndef LIBVIRT_VBOX_MSCOMGLUE_H
+# define LIBVIRT_VBOX_MSCOMGLUE_H
# include "vbox_CAPI_v3_2.h"
void vboxArrayRelease(vboxArray *array);
# define vboxArrayUnalloc vboxArrayRelease
-#endif /* __VBOX_MSCOMGLUE_H__ */
+#endif /* LIBVIRT_VBOX_MSCOMGLUE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VBOX_COMMON_H
-# define VBOX_COMMON_H
+#ifndef LIBVIRT_VBOX_COMMON_H
+# define LIBVIRT_VBOX_COMMON_H
# ifdef ___VirtualBox_CXPCOM_h
# error this file should not be included after vbox_CAPI_v*.h
} \
} while (0)
-#endif /* VBOX_COMMON_H */
+#endif /* LIBVIRT_VBOX_COMMON_H */
* additional information or have any questions.
*/
-#ifndef VBOX_DRIVER_H
-# define VBOX_DRIVER_H
+#ifndef LIBVIRT_VBOX_DRIVER_H
+# define LIBVIRT_VBOX_DRIVER_H
# include "internal.h"
int vboxRegister(void);
# endif
-#endif /* VBOX_DRIVER_H */
+#endif /* LIBVIRT_VBOX_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VBOX_GET_DRIVER_H
-# define VBOX_GET_DRIVER_H
+#ifndef LIBVIRT_VBOX_GET_DRIVER_H
+# define LIBVIRT_VBOX_GET_DRIVER_H
# include "internal.h"
virNetworkDriverPtr vboxGetNetworkDriver(uint32_t uVersion);
virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion);
-#endif /* VBOX_GET_DRIVER_H */
+#endif /* LIBVIRT_VBOX_GET_DRIVER_H */
*
*/
-#ifndef __VBOX_GLUE_H__
-# define __VBOX_GLUE_H__
+#ifndef LIBVIRT_VBOX_GLUE_H
+# define LIBVIRT_VBOX_GLUE_H
# ifdef WIN32
# include "vbox_MSCOMGlue.h"
# include "vbox_XPCOMCGlue.h"
# endif
-#endif /* __VBOX_GLUE_H__ */
+#endif /* LIBVIRT_VBOX_GLUE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VBOX_SNAPSHOT_CONF_H
-# define VBOX_SNAPSHOT_CONF_H
+#ifndef LIBVIRT_VBOX_SNAPSHOT_CONF_H
+# define LIBVIRT_VBOX_SNAPSHOT_CONF_H
# include "internal.h"
virVBoxSnapshotConfSnapshotByName(virVBoxSnapshotConfSnapshotPtr snapshot,
const char *snapshotName);
-#endif /* VBOX_SNAPSHOT_CONF_H */
+#endif /* LIBVIRT_VBOX_SNAPSHOT_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VBOX_UNIFORMED_API_H
-# define VBOX_UNIFORMED_API_H
+#ifndef LIBVIRT_VBOX_UNIFORMED_API_H
+# define LIBVIRT_VBOX_UNIFORMED_API_H
# include "internal.h"
void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
-#endif /* VBOX_UNIFORMED_API_H */
+#endif /* LIBVIRT_VBOX_UNIFORMED_API_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VMWARE_CONF_H
-# define VMWARE_CONF_H
+#ifndef LIBVIRT_VMWARE_CONF_H
+# define LIBVIRT_VMWARE_CONF_H
# define NOGUI "nogui"
char *vmwareCopyVMXFileName(const char *datastorePath, void *opaque);
-#endif /* VMWARE_CONF_H */
+#endif /* LIBVIRT_VMWARE_CONF_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VMWARE_DRIVER_H
-# define VMWARE_DRIVER_H
+#ifndef LIBVIRT_VMWARE_DRIVER_H
+# define LIBVIRT_VMWARE_DRIVER_H
int vmwareRegister(void);
-#endif /* VMWARE_DRIVER_H */
+#endif /* LIBVIRT_VMWARE_DRIVER_H */
*
*/
-#ifndef __VIR_VMX_H__
-# define __VIR_VMX_H__
+#ifndef LIBVIRT_VMX_H
+# define LIBVIRT_VMX_H
# include "internal.h"
# include "virconf.h"
int virVMXFormatSVGA(virDomainVideoDefPtr def, virBufferPtr buffer);
-#endif /* __VIR_VMX_H__ */
+#endif /* LIBVIRT_VMX_H */
*
*/
-#ifndef PARALLELS_DRIVER_H
-# define PARALLELS_DRIVER_H
+#ifndef LIBVIRT_VZ_DRIVER_H
+# define LIBVIRT_VZ_DRIVER_H
int vzRegister(void);
-#endif /* PARALLELS_DRIVER_H */
+#endif /* LIBVIRT_VZ_DRIVER_H */
*
*/
-#ifndef __VZ_SDK_H__
-# define __VZ_SDK_H__
+#ifndef LIBVIRT_VZ_SDK_H
+# define LIBVIRT_VZ_SDK_H
# include <Parallels.h>
int prlsdkCancelJob(virDomainObjPtr dom);
int prlsdkResizeImage(virDomainObjPtr dom, virDomainDiskDefPtr disk, unsigned long long newsize);
-#endif /* __VZ_SDK_H__ */
+#endif /* LIBVIRT_VZ_SDK_H */
*
*/
-#ifndef PARALLELS_UTILS_H
-# define PARALLELS_UTILS_H
+#ifndef LIBVIRT_VZ_UTILS_H
+# define LIBVIRT_VZ_UTILS_H
# include <Parallels.h>
int
vzDomainJobUpdateTime(vzDomainJobObjPtr job);
-#endif /* PARALLELS_UTILS_H */
+#endif /* LIBVIRT_VZ_UTILS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XENAPI_PRIV_H__
-# define __VIR_XENAPI_PRIV_H__
+#ifndef LIBVIRT_XENAPI_DRIVER_H
+# define LIBVIRT_XENAPI_DRIVER_H
int xenapiRegister(void);
-#endif /* __VIR_XENAPI_PRIV_H__ */
+#endif /* LIBVIRT_XENAPI_DRIVER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XENAPI_H__
-# define __VIR_XENAPI_H__
+#ifndef LIBVIRT_XENAPI_DRIVER_PRIVATE_H
+# define LIBVIRT_XENAPI_DRIVER_PRIVATE_H
# include <libxml/tree.h>
# include <xen/api/xen_common.h>
virDomainXMLOptionPtr xmlopt;
};
-#endif /* __VIR_XENAPI_H__ */
+#endif /* LIBVIRT_XENAPI_DRIVER_PRIVATE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XENAPI_UTILS__
-# define __VIR_XENAPI_UTILS__
+#ifndef LIBVIRT_XENAPI_UTILS_H
+# define LIBVIRT_XENAPI_UTILS_H
# include <xen/api/xen_all.h>
# include "internal.h"
int
allocStringMap (xen_string_string_map **strings, char *key, char *val);
-#endif /* __VIR_XENAPI_UTILS__ */
+#endif /* LIBVIRT_XENAPI_UTILS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XEN_COMMON_H__
-# define __VIR_XEN_COMMON_H__
+#ifndef LIBVIRT_XEN_COMMON_H
+# define LIBVIRT_XEN_COMMON_H
# include "internal.h"
# include "virconf.h"
int xenDomainDefAddImplicitInputDevice(virDomainDefPtr def);
-#endif /* __VIR_XEN_COMMON_H__ */
+#endif /* LIBVIRT_XEN_COMMON_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XEN_SXPR_H__
-# define __VIR_XEN_SXPR_H__
+#ifndef LIBVIRT_XEN_SXPR_H
+# define LIBVIRT_XEN_SXPR_H
# include "internal.h"
# include "virconf.h"
char * xenFormatSxpr(virConnectPtr conn, virDomainDefPtr def);
-#endif /* __VIR_XEN_SXPR_H__ */
+#endif /* LIBVIRT_XEN_SXPR_H */
*
*/
-#ifndef __VIR_XEN_XL_H__
-# define __VIR_XEN_XL_H__
+#ifndef LIBVIRT_XEN_XL_H
+# define LIBVIRT_XEN_XL_H
# include "virconf.h"
# include "domain_conf.h"
const char *xenTranslateCPUFeature(const char *feature_name, bool from_libxl);
-#endif /* __VIR_XEN_XL_H__ */
+#endif /* LIBVIRT_XEN_XL_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XEN_XM_H__
-# define __VIR_XEN_XM_H__
+#ifndef LIBVIRT_XEN_XM_H
+# define LIBVIRT_XEN_XM_H
# include "internal.h"
# include "virconf.h"
virDomainDefPtr xenParseXM(virConfPtr conf,
virCapsPtr caps, virDomainXMLOptionPtr xmlopt);
-#endif /* __VIR_XEN_XM_H__ */
+#endif /* LIBVIRT_XEN_XM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_XENXS_PRIVATE_H__
-# define __VIR_XENXS_PRIVATE_H__
+#ifndef LIBVIRT_XENXS_PRIVATE_H
+# define LIBVIRT_XENXS_PRIVATE_H
# include "internal.h"
# define DEFAULT_VIF_SCRIPT "vif-bridge"
# endif
-#endif /* __VIR_XENXS_PRIVATE_H__ */
+#endif /* LIBVIRT_XENXS_PRIVATE_H */
#if WITH_QEMU && WITH_YAJL
# include "testutilsqemu.h"
# include "qemumonitortestutils.h"
-# define __QEMU_CAPSPRIV_H_ALLOW__
+# define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
# include "qemu/qemu_capspriv.h"
-# undef __QEMU_CAPSPRIV_H_ALLOW__
#endif
#define VIR_FROM_THIS VIR_FROM_CPU
# include "network/bridge_driver_platform.h"
# include "virbuffer.h"
-# define __VIR_FIREWALL_PRIV_H_ALLOW__
+# define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
# include "virfirewallpriv.h"
-# define __VIR_COMMAND_PRIV_H_ALLOW__
+# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# include "vircommandpriv.h"
# define VIR_FROM_THIS VIR_FROM_NONE
#include "virbuffer.h"
#include "virfirewall.h"
-#define __VIR_FIREWALL_PRIV_H_ALLOW__
+#define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
#include "virfirewallpriv.h"
-#define __VIR_COMMAND_PRIV_H_ALLOW__
+#define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
#include "vircommandpriv.h"
#define VIR_FROM_THIS VIR_FROM_NONE
# include "nwfilter/nwfilter_ebiptables_driver.h"
# include "virbuffer.h"
-# define __VIR_FIREWALL_PRIV_H_ALLOW__
+# define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
# include "virfirewallpriv.h"
-# define __VIR_COMMAND_PRIV_H_ALLOW__
+# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# include "vircommandpriv.h"
# define VIR_FROM_THIS VIR_FROM_NONE
#include "testutils.h"
#include "testutilsqemu.h"
#include "qemumonitortestutils.h"
-#define __QEMU_CAPSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
#include "qemu/qemu_capspriv.h"
-#define __QEMU_MONITOR_PRIV_H_ALLOW__
+#define LIBVIRT_QEMU_MONITOR_PRIV_H_ALLOW
#include "qemu/qemu_monitor_priv.h"
#define VIR_FROM_THIS VIR_FROM_NONE
#include "virarch.h"
#include "virthread.h"
#include "qemu/qemu_capabilities.h"
-#define __QEMU_CAPSPRIV_H_ALLOW__ 1
+#define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
#include "qemu/qemu_capspriv.h"
#define VIR_FROM_THIS VIR_FROM_NONE
#include "conf/cpu_conf.h"
#include "cpu/cpu.h"
#include "qemu/qemu_capabilities.h"
-#define __QEMU_CAPSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
#include "qemu/qemu_capspriv.h"
-#undef __QEMU_CAPSPRIV_H_ALLOW__
#include "testutilshostcpus.h"
#include "virarch.h"
#include "qemu/qemu_alias.h"
#include "qemu/qemu_conf.h"
#include "qemu/qemu_hotplug.h"
-#define __QEMU_HOTPLUGPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_HOTPLUGPRIV_H_ALLOW
#include "qemu/qemu_hotplugpriv.h"
#include "qemumonitortestutils.h"
#include "testutils.h"
#include "testutilsqemu.h"
#include "qemumonitortestutils.h"
#include "qemu/qemu_migration_params.h"
-#define __QEMU_MIGRATION_PARAMSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H_ALLOW
#include "qemu/qemu_migration_paramspriv.h"
#include "qemu/qemu_monitor.h"
#include "cpu/cpu.h"
#include "qemu/qemu_monitor.h"
#include "qemu/qemu_migration_params.h"
-#define __QEMU_MIGRATION_PARAMSPRIV_H_ALLOW__
+#define LIBVIRT_QEMU_MIGRATION_PARAMSPRIV_H_ALLOW
#include "qemu/qemu_migration_paramspriv.h"
#define VIR_FROM_THIS VIR_FROM_NONE
#include "qemumonitortestutils.h"
#include "virthread.h"
-#define __QEMU_PROCESS_PRIV_H_ALLOW__
+#define LIBVIRT_QEMU_PROCESSPRIV_H_ALLOW
#include "qemu/qemu_processpriv.h"
#include "qemu/qemu_monitor.h"
#include "qemu/qemu_agent.h"
*
*/
-#ifndef __VIR_QEMU_MONITOR_TEST_UTILS_H__
-# define __VIR_QEMU_MONITOR_TEST_UTILS_H__
+#ifndef LIBVIRT_QEMUMONITORTESTUTILS_H
+# define LIBVIRT_QEMUMONITORTESTUTILS_H
# include "domain_conf.h"
# include "qemu/qemu_conf.h"
qemuAgentPtr qemuMonitorTestGetAgent(qemuMonitorTestPtr test);
virDomainObjPtr qemuMonitorTestGetDomainObj(qemuMonitorTestPtr test);
-#endif /* __VIR_QEMU_MONITOR_TEST_UTILS_H__ */
+#endif /* LIBVIRT_QEMUMONITORTESTUTILS_H */
# include "storage/storage_driver.h"
# include "virmock.h"
-# define __QEMU_CAPSPRIV_H_ALLOW__
+# define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
# include "qemu/qemu_capspriv.h"
-# undef __QEMU_CAPSPRIV_H_ALLOW__
# include "testutilsqemu.h"
#include "internal.h"
#include "testutils.h"
-#define __VIR_STORAGE_BACKEND_SHEEPDOG_PRIV_ALLOW_H__
+#define LIBVIRT_STORAGE_BACKEND_SHEEPDOG_PRIV_H_ALLOW
#include "storage/storage_backend_sheepdog_priv.h"
#include "virstring.h"
#include "virfile.h"
#include "virstring.h"
-#define __VIR_SYSINFO_PRIV_H_ALLOW__
+#define LIBVIRT_VIRSYSINFOPRIV_H_ALLOW
#include "virsysinfopriv.h"
#define VIR_FROM_THIS VIR_FROM_NONE
* Karel Zak <kzak@redhat.com>
*/
-#ifndef __VIR_TEST_UTILS_H__
-# define __VIR_TEST_UTILS_H__
+#ifndef LIBVIRT_TESTUTILS_H
+# define LIBVIRT_TESTUTILS_H
# include "viralloc.h"
# include "virfile.h"
unsigned int parseFlags,
testCompareDomXML2XMLResult expectResult);
-#endif /* __VIR_TEST_UTILS_H__ */
+#endif /* LIBVIRT_TESTUTILS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef TESTUTILSHOSTCPUS_H
-# define TESTUTILSHOSTCPUS_H
+#ifndef LIBVIRT_TESTUTILSHOSTCPUS_H
+# define LIBVIRT_TESTUTILSHOSTCPUS_H
# include "conf/cpu_conf.h"
# include "internal.h"
return NULL;
}
-#endif /* TESTUTILSHOSTCPUS_H */
+#endif /* LIBVIRT_TESTUTILSHOSTCPUS_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef TESTUTILSLXC_H
-# define TESTUTILSLXC_H
+#ifndef LIBVIRT_TESTUTILSLXC_H
+# define LIBVIRT_TESTUTILSLXC_H
# include "capabilities.h"
virCapsPtr testLXCCapsInit(void);
-#endif /* TESTUTILSLXC_H */
+#endif /* LIBVIRT_TESTUTILSLXC_H */
# include "cpu_conf.h"
# include "qemu/qemu_driver.h"
# include "qemu/qemu_domain.h"
-# define __QEMU_CAPSPRIV_H_ALLOW__
+# define LIBVIRT_QEMU_CAPSPRIV_H_ALLOW
# include "qemu/qemu_capspriv.h"
# include "virstring.h"
# include "virfilecache.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef TESTUTILSQEMU_H
-# define TESTUTILSQEMU_H
+#ifndef LIBVIRT_TESTUTILSQEMU_H
+# define LIBVIRT_TESTUTILSQEMU_H
# ifdef WITH_QEMU
# endif
-#endif /* TESTUTILSQEMU_H */
+#endif /* LIBVIRT_TESTUTILSQEMU_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __TESTUTILSQEMUSCHEMA_H__
-# define __TESTUTILSQEMUSCHEMA_H__
+#ifndef LIBVIRT_TESTUTILSQEMUSCHEMA_H
+# define LIBVIRT_TESTUTILSQEMUSCHEMA_H
# include "virhash.h"
# include "virjson.h"
virHashTablePtr
testQEMUSchemaLoad(void);
-#endif /* __TESTUTILSQEMUSCHEMA_H__ */
+#endif /* LIBVIRT_TESTUTILSQEMUSCHEMA_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef _TESTUTILSXEN_H_
-# define _TESTUTILSXEN_H_
+#ifndef LIBVIRT_TESTUTILSXEN_H
+# define LIBVIRT_TESTUTILSXEN_H
# include "capabilities.h"
# ifdef WITH_LIBXL
virCapsPtr testXLInitCaps(void);
-#endif /* _TESTUTILSXEN_H_ */
+#endif /* LIBVIRT_TESTUTILSXEN_H */
#ifdef __linux__
-# define __VIR_CGROUP_ALLOW_INCLUDE_PRIV_H__
+# define LIBVIRT_VIRCGROUPPRIV_H_ALLOW
# include "vircgrouppriv.h"
# include "virstring.h"
# include "virerror.h"
#include <config.h>
-#define __VIR_DBUS_PRIV_H_ALLOW__
+#define LIBVIRT_VIRDBUSPRIV_H_ALLOW
#include "virdbuspriv.h"
#include "virlog.h"
#include "testutils.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_FILE_MOCK_H__
-# define __VIR_FILE_MOCK_H__
+#ifndef LIBVIRT_VIRFILEWRAPPER_H
+# define LIBVIRT_VIRFILEWRAPPER_H
int
virFileWrapperAddPrefix(const char *prefix,
void
virFileWrapperClearPrefixes(void);
-#endif /* __VIR_FILE_MOCK_H__ */
+#endif /* LIBVIRT_VIRFILEWRAPPER_H */
#include <config.h>
-#define __VIR_FIREWALL_PRIV_H_ALLOW__
-#define __VIR_COMMAND_PRIV_H_ALLOW__
-#define __VIR_DBUS_PRIV_H_ALLOW__
-
#include "testutils.h"
#if defined(__linux__)
# include "virbuffer.h"
+# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# include "vircommandpriv.h"
+# define LIBVIRT_VIRFIREWALLPRIV_H_ALLOW
# include "virfirewallpriv.h"
# include "virmock.h"
+# define LIBVIRT_VIRDBUSPRIV_H_ALLOW
# include "virdbuspriv.h"
# define VIR_FROM_THIS VIR_FROM_FIREWALL
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIRHASHDATA_H
-# define VIRHASHDATA_H
+#ifndef LIBVIRT_VIRHASHDATA_H
+# define LIBVIRT_VIRHASHDATA_H
const char *uuids[] = {
/* [ 2] */ "a9b02f96-e430-4f7c-a7ff-a647d080447a",
"53c215dd-bdba-4fdc-887a-86ab6f860df4",
};
-#endif /* VIRHASHDATA_H */
+#endif /* LIBVIRT_VIRHASHDATA_H */
#include "testutils.h"
#include "internal.h"
-#define __VIR_HOSTCPU_PRIV_H_ALLOW__
+#define LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW
#include "virhostcpupriv.h"
#include "virfile.h"
#include "virstring.h"
return EXIT_AM_SKIP;
}
#else
-# define __VIR_COMMAND_PRIV_H_ALLOW__
-
+# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# include "vircommandpriv.h"
# include "viriscsi.h"
#ifdef __linux__
-# define __VIR_COMMAND_PRIV_H_ALLOW__
+# define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
# include "vircommandpriv.h"
# include "virkmod.h"
# include "virstring.h"
*
*/
-#ifndef __VIR_MOCK_H__
-# define __VIR_MOCK_H__
+#ifndef LIBVIRT_VIRMOCK_H
+# define LIBVIRT_VIRMOCK_H
# if HAVE_DLFCN_H
# include <dlfcn.h>
} \
} while (0)
-#endif /* __VIR_MOCK_H__ */
+#endif /* LIBVIRT_VIRMOCK_H */
#include <config.h>
#include "testutils.h"
-#define __VIR_COMMAND_PRIV_H_ALLOW__
+#define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
#include "vircommandpriv.h"
#include "virnetdevbandwidth.h"
#include "netdev_bandwidth_conf.c"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIRNETTLSHELPERS_H
-# define VIRNETTLSHELPERS_H
+#ifndef LIBVIRT_VIRNETTLSHELPERS_H
+# define LIBVIRT_VIRNETTLSHELPERS_H
# include <gnutls/gnutls.h>
# include <gnutls/x509.h>
# endif
-#endif /* VIRNETTLSHELPERS_H */
+#endif /* LIBVIRT_VIRNETTLSHELPERS_H */
#include "testutils.h"
#include "virfilewrapper.h"
-#define __VIR_RESCTRL_PRIV_H_ALLOW__
+#define LIBVIRT_VIRRESCTRLPRIV_H_ALLOW
#include "virresctrlpriv.h"
# include <dbus/dbus.h>
-# define __VIR_SYSTEMD_PRIV_H_ALLOW__ 1
+# define LIBVIRT_VIRSYSTEMDPRIV_H_ALLOW
# include "virsystemdpriv.h"
# include "virsystemd.h"
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __LIBVIRT_NSS_H__
-# define __LIBVIRT_NSS_H__
+#ifndef LIBVIRT_NSS_H
+# define LIBVIRT_NSS_H
# include <nss.h>
# include <netdb.h>
nss_module_unregister_fn *unregister);
# endif /* HAVE_BSD_NSS */
-#endif /* __LIBVIRT_NSS_H__ */
+#endif /* LIBVIRT_NSS_H */
*
*/
-#ifndef VIRSH_COMPLETER
-# define VIRSH_COMPLETER
+#ifndef LIBVIRT_VIRSH_COMPLETER_H
+# define LIBVIRT_VIRSH_COMPLETER_H
# include "vsh.h"
char ** virshCellnoCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
-#endif /* VIRSH_COMPLETER */
+#endif /* LIBVIRT_VIRSH_COMPLETER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef __VIR_CONSOLE_H__
-# define __VIR_CONSOLE_H__
+#ifndef LIBVIRT_VIRSH_CONSOLE_H
+# define LIBVIRT_VIRSH_CONSOLE_H
# ifndef WIN32
# endif /* !WIN32 */
-#endif /* __VIR_CONSOLE_H__ */
+#endif /* LIBVIRT_VIRSH_CONSOLE_H */
*
*/
-#ifndef VIRSH_DOMAIN_MONITOR_H
-# define VIRSH_DOMAIN_MONITOR_H
+#ifndef LIBVIRT_VIRSH_DOMAIN_MONITOR_H
+# define LIBVIRT_VIRSH_DOMAIN_MONITOR_H
# include "virsh.h"
extern const vshCmdDef domMonitoringCmds[];
-#endif /* VIRSH_DOMAIN_MONITOR_H */
+#endif /* LIBVIRT_VIRSH_DOMAIN_MONITOR_H */
*
*/
-#ifndef VIRSH_DOMAIN_H
-# define VIRSH_DOMAIN_H
+#ifndef LIBVIRT_VIRSH_DOMAIN_H
+# define LIBVIRT_VIRSH_DOMAIN_H
# include "virsh.h"
extern const vshCmdDef domManagementCmds[];
-#endif /* VIRSH_DOMAIN_H */
+#endif /* LIBVIRT_VIRSH_DOMAIN_H */
*
*/
-#ifndef VIRSH_HOST_H
-# define VIRSH_HOST_H
+#ifndef LIBVIRT_VIRSH_HOST_H
+# define LIBVIRT_VIRSH_HOST_H
# include "virsh.h"
extern const vshCmdDef hostAndHypervisorCmds[];
-#endif /* VIRSH_HOST_H */
+#endif /* LIBVIRT_VIRSH_HOST_H */
*
*/
-#ifndef VIRSH_INTERFACE_H
-# define VIRSH_INTERFACE_H
+#ifndef LIBVIRT_VIRSH_INTERFACE_H
+# define LIBVIRT_VIRSH_INTERFACE_H
# include "virsh.h"
extern const vshCmdDef ifaceCmds[];
-#endif /* VIRSH_INTERFACE_H */
+#endif /* LIBVIRT_VIRSH_INTERFACE_H */
*
*/
-#ifndef VIRSH_NETWORK_H
-# define VIRSH_NETWORK_H
+#ifndef LIBVIRT_VIRSH_NETWORK_H
+# define LIBVIRT_VIRSH_NETWORK_H
# include "virsh.h"
extern const vshCmdDef networkCmds[];
-#endif /* VIRSH_NETWORK_H */
+#endif /* LIBVIRT_VIRSH_NETWORK_H */
*
*/
-#ifndef VIRSH_NODEDEV_H
-# define VIRSH_NODEDEV_H
+#ifndef LIBVIRT_VIRSH_NODEDEV_H
+# define LIBVIRT_VIRSH_NODEDEV_H
# include "virsh.h"
extern const vshCmdDef nodedevCmds[];
-#endif /* VIRSH_NODEDEV_H */
+#endif /* LIBVIRT_VIRSH_NODEDEV_H */
*
*/
-#ifndef VIRSH_NWFILTER_H
-# define VIRSH_NWFILTER_H
+#ifndef LIBVIRT_VIRSH_NWFILTER_H
+# define LIBVIRT_VIRSH_NWFILTER_H
# include "virsh.h"
extern const vshCmdDef nwfilterCmds[];
-#endif /* VIRSH_NWFILTER_H */
+#endif /* LIBVIRT_VIRSH_NWFILTER_H */
*
*/
-#ifndef VIRSH_POOL_H
-# define VIRSH_POOL_H
+#ifndef LIBVIRT_VIRSH_POOL_H
+# define LIBVIRT_VIRSH_POOL_H
# include "virsh.h"
extern const vshCmdDef storagePoolCmds[];
-#endif /* VIRSH_POOL_H */
+#endif /* LIBVIRT_VIRSH_POOL_H */
*
*/
-#ifndef VIRSH_SECRET_H
-# define VIRSH_SECRET_H
+#ifndef LIBVIRT_VIRSH_SECRET_H
+# define LIBVIRT_VIRSH_SECRET_H
# include "virsh.h"
extern const vshCmdDef secretCmds[];
-#endif /* VIRSH_SECRET_H */
+#endif /* LIBVIRT_VIRSH_SECRET_H */
*
*/
-#ifndef VIRSH_SNAPSHOT_H
-# define VIRSH_SNAPSHOT_H
+#ifndef LIBVIRT_VIRSH_SNAPSHOT_H
+# define LIBVIRT_VIRSH_SNAPSHOT_H
# include "virsh.h"
extern const vshCmdDef snapshotCmds[];
-#endif /* VIRSH_SNAPSHOT_H */
+#endif /* LIBVIRT_VIRSH_SNAPSHOT_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VIRSH_UTIL_H
-# define VIRSH_UTIL_H
+#ifndef LIBVIRT_VIRSH_UTIL_H
+# define LIBVIRT_VIRSH_UTIL_H
# include "virsh.h"
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
-#endif /* VIRSH_UTIL_H */
+#endif /* LIBVIRT_VIRSH_UTIL_H */
*
*/
-#ifndef VIRSH_VOLUME_H
-# define VIRSH_VOLUME_H
+#ifndef LIBVIRT_VIRSH_VOLUME_H
+# define LIBVIRT_VIRSH_VOLUME_H
# include "virsh.h"
extern const vshCmdDef storageVolCmds[];
-#endif /* VIRSH_VOLUME_H */
+#endif /* LIBVIRT_VIRSH_VOLUME_H */
* Daniel P. Berrange <berrange@redhat.com>
*/
-#ifndef VIRSH_H
-# define VIRSH_H
+#ifndef LIBVIRT_VIRSH_H
+# define LIBVIRT_VIRSH_H
# include <stdarg.h>
# include <unistd.h>
virConnectPtr virshConnect(vshControl *ctl, const char *uri, bool readonly);
-#endif /* VIRSH_H */
+#endif /* LIBVIRT_VIRSH_H */
*
*/
-#ifndef VIRT_ADMIN_COMPLETER
-# define VIRT_ADMIN_COMPLETER
+#ifndef LIBVIRT_VIRT_ADMIN_COMPLETER_H
+# define LIBVIRT_VIRT_ADMIN_COMPLETER_H
# include "vsh.h"
vshAdmServerCompleter(vshControl *ctl,
const vshCmd *cmd,
unsigned int flags);
-#endif /* VIRT_ADMIN_COMPLETER */
+#endif /* LIBVIRT_VIRT_ADMIN_COMPLETER_H */
* Erik Skultety <eskultet@redhat.com>
*/
-#ifndef VIRT_ADMIN_H
-# define VIRT_ADMIN_H
+#ifndef LIBVIRT_VIRT_ADMIN_H
+# define LIBVIRT_VIRT_ADMIN_H
# include "internal.h"
# include "vsh.h"
bool wantReconnect;
};
-#endif /* VIRT_ADMIN_H */
+#endif /* LIBVIRT_VIRT_ADMIN_H */
*
*/
-#ifndef __VIRT_HOST_VALIDATE_BHYVE_H__
-# define __VIRT_HOST_VALIDATE_BHYVE_H__
+#ifndef LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H
+# define LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H
int virHostValidateBhyve(void);
-#endif /* __VIRT_HOST_VALIDATE_BHYVE_H__ */
+#endif /* LIBVIRT_VIRT_HOST_VALIDATE_BHYVE_H */
*
*/
-#ifndef __VIRT_HOST_VALIDATE_COMMON_H__
-# define __VIRT_HOST_VALIDATE_COMMON_H__
+#ifndef LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H
+# define LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H
# include "internal.h"
# include "virutil.h"
int virHostValidateIOMMU(const char *hvname,
virHostValidateLevel level);
-#endif /* __VIRT_HOST_VALIDATE_COMMON_H__ */
+#endif /* LIBVIRT_VIRT_HOST_VALIDATE_COMMON_H */
*
*/
-#ifndef __VIRT_HOST_VALIDATE_LXC_H__
-# define __VIRT_HOST_VALIDATE_LXC_H__
+#ifndef LIBVIRT_VIRT_HOST_VALIDATE_LXC_H
+# define LIBVIRT_VIRT_HOST_VALIDATE_LXC_H
int virHostValidateLXC(void);
-#endif /* __VIRT_HOST_VALIDATE_LXC_H__ */
+#endif /* LIBVIRT_VIRT_HOST_VALIDATE_LXC_H */
*
*/
-#ifndef __VIRT_HOST_VALIDATE_QEMU_H__
-# define __VIRT_HOST_VALIDATE_QEMU_H__
+#ifndef LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H
+# define LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H
int virHostValidateQEMU(void);
-#endif /* __VIRT_HOST_VALIDATE_QEMU_H__ */
+#endif /* LIBVIRT_VIRT_HOST_VALIDATE_QEMU_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef VSH_TABLE_H
-# define VSH_TABLE_H
+#ifndef LIBVIRT_VSH_TABLE_H
+# define LIBVIRT_VSH_TABLE_H
# include "vsh.h"
void vshTablePrintToStdout(vshTablePtr table, vshControl *ctl);
char *vshTablePrintToString(vshTablePtr table, bool header);
-#endif /* VSH_TABLE_H */
+#endif /* LIBVIRT_VSH_TABLE_H */
* Daniel P. Berrange <berrange@redhat.com>
*/
-#ifndef VSH_H
-# define VSH_H
+#ifndef LIBVIRT_VSH_H
+# define LIBVIRT_VSH_H
# include <stdarg.h>
# include <unistd.h>
# define VSH_REQUIRE_OPTION_VAR(VARNAME1, VARNAME2) \
VSH_REQUIRE_OPTION_EXPR(#VARNAME1, VARNAME1, #VARNAME2, VARNAME2)
-#endif /* VSH_H */
+#endif /* LIBVIRT_VSH_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef _PACKET_LIBVIRT_H_
-# define _PACKET_LIBVIRT_H_
+#ifndef LIBVIRT_PACKET_LIBVIRT_H
+# define LIBVIRT_PACKET_LIBVIRT_H
# include "libvirt/libvirt.h"
# include "libvirt/protocol.h"
-#endif /* _PACKET_LIBVIRT_H_ */
+#endif /* LIBVIRT_PACKET_LIBVIRT_H */