mirror of https://gitee.com/openkylin/libvirt.git
xen: use #pragma once in headers
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
faceedaf71
commit
78b2a03966
|
@ -17,9 +17,6 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XENAPI_DRIVER_H
|
||||
# define LIBVIRT_XENAPI_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
int xenapiRegister(void);
|
||||
|
||||
#endif /* LIBVIRT_XENAPI_DRIVER_H */
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XENAPI_DRIVER_PRIVATE_H
|
||||
# define LIBVIRT_XENAPI_DRIVER_PRIVATE_H
|
||||
#pragma once
|
||||
|
||||
#include <libxml/tree.h>
|
||||
#include <xen/api/xen_common.h>
|
||||
|
@ -57,5 +56,3 @@ struct _xenapiPrivate {
|
|||
virCapsPtr caps;
|
||||
virDomainXMLOptionPtr xmlopt;
|
||||
};
|
||||
|
||||
#endif /* LIBVIRT_XENAPI_DRIVER_PRIVATE_H */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XENAPI_UTILS_H
|
||||
# define LIBVIRT_XENAPI_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include <xen/api/xen_all.h>
|
||||
#include "internal.h"
|
||||
|
@ -75,5 +74,3 @@ createVMRecordFromXml (virConnectPtr conn, virDomainDefPtr defPtr,
|
|||
|
||||
int
|
||||
allocStringMap (xen_string_string_map **strings, char *key, char *val);
|
||||
|
||||
#endif /* LIBVIRT_XENAPI_UTILS_H */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XEN_COMMON_H
|
||||
# define LIBVIRT_XEN_COMMON_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virconf.h"
|
||||
|
@ -68,5 +67,3 @@ int xenFormatConfigCommon(virConfPtr conf,
|
|||
char *xenMakeIPList(virNetDevIPInfoPtr guestIP);
|
||||
|
||||
int xenDomainDefAddImplicitInputDevice(virDomainDefPtr def);
|
||||
|
||||
#endif /* LIBVIRT_XEN_COMMON_H */
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XEN_SXPR_H
|
||||
# define LIBVIRT_XEN_SXPR_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virconf.h"
|
||||
|
@ -65,5 +64,3 @@ int xenFormatSxprChr(virDomainChrDefPtr def, virBufferPtr buf);
|
|||
int xenFormatSxprSound(virDomainDefPtr def, virBufferPtr buf);
|
||||
|
||||
char * xenFormatSxpr(virConnectPtr conn, virDomainDefPtr def);
|
||||
|
||||
#endif /* LIBVIRT_XEN_SXPR_H */
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XEN_XL_H
|
||||
# define LIBVIRT_XEN_XL_H
|
||||
#pragma once
|
||||
|
||||
#include "virconf.h"
|
||||
#include "domain_conf.h"
|
||||
|
@ -34,5 +33,3 @@ virDomainDefPtr xenParseXL(virConfPtr conn,
|
|||
virConfPtr xenFormatXL(virDomainDefPtr def, virConnectPtr);
|
||||
|
||||
const char *xenTranslateCPUFeature(const char *feature_name, bool from_libxl);
|
||||
|
||||
#endif /* LIBVIRT_XEN_XL_H */
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XEN_XM_H
|
||||
# define LIBVIRT_XEN_XM_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virconf.h"
|
||||
|
@ -31,5 +30,3 @@ virConfPtr xenFormatXM(virConnectPtr conn, virDomainDefPtr def);
|
|||
|
||||
virDomainDefPtr xenParseXM(virConfPtr conf,
|
||||
virCapsPtr caps, virDomainXMLOptionPtr xmlopt);
|
||||
|
||||
#endif /* LIBVIRT_XEN_XM_H */
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_XENXS_PRIVATE_H
|
||||
# define LIBVIRT_XENXS_PRIVATE_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
|
@ -42,5 +41,3 @@
|
|||
#else
|
||||
# define DEFAULT_VIF_SCRIPT "vif-bridge"
|
||||
#endif
|
||||
|
||||
#endif /* LIBVIRT_XENXS_PRIVATE_H */
|
||||
|
|
Loading…
Reference in New Issue