提交 3a337efa 编写于 作者: J Jonathon Jongsma 提交者: Ján Tomko

src/openvz: use #pragma once in headers

Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 4273a30e
......@@ -21,21 +21,20 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_OPENVZ_CONF_H
# define LIBVIRT_OPENVZ_CONF_H
#pragma once
# include "internal.h"
# include "virdomainobjlist.h"
# include "virthread.h"
#include "internal.h"
#include "virdomainobjlist.h"
#include "virthread.h"
/* OpenVZ commands - Replace with wrapper scripts later? */
# define VZLIST "/usr/sbin/vzlist"
# define VZCTL "/usr/sbin/vzctl"
# define VZMIGRATE "/usr/sbin/vzmigrate"
# define VZ_CONF_FILE "/etc/vz/vz.conf"
#define VZLIST "/usr/sbin/vzlist"
#define VZCTL "/usr/sbin/vzctl"
#define VZMIGRATE "/usr/sbin/vzmigrate"
#define VZ_CONF_FILE "/etc/vz/vz.conf"
# define VZCTL_BRIDGE_MIN_VERSION ((3 * 1000 * 1000) + (0 * 1000) + 22 + 1)
#define VZCTL_BRIDGE_MIN_VERSION ((3 * 1000 * 1000) + (0 * 1000) + 22 + 1)
struct openvz_driver {
virMutex lock;
......@@ -64,5 +63,3 @@ int strtoI(const char *str);
int openvzSetDefinedUUID(int vpsid, unsigned char *uuid);
int openvzGetVEID(const char *name);
int openvzReadNetworkConf(virDomainDefPtr def, int veid);
#endif /* LIBVIRT_OPENVZ_CONF_H */
......@@ -20,21 +20,18 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_OPENVZ_DRIVER_H
# define LIBVIRT_OPENVZ_DRIVER_H
#pragma once
# include "internal.h"
#include "internal.h"
# define OPENVZ_MIGRATION_FLAGS \
#define OPENVZ_MIGRATION_FLAGS \
(VIR_MIGRATE_LIVE)
/* All supported migration parameters and their types. */
# define OPENVZ_MIGRATION_PARAMETERS \
#define OPENVZ_MIGRATION_PARAMETERS \
VIR_MIGRATE_PARAM_URI, VIR_TYPED_PARAM_STRING, \
VIR_MIGRATE_PARAM_DEST_NAME, VIR_TYPED_PARAM_STRING, \
VIR_MIGRATE_PARAM_DEST_XML, VIR_TYPED_PARAM_STRING, \
NULL
int openvzRegister(void);
#endif /* LIBVIRT_OPENVZ_DRIVER_H */
......@@ -19,10 +19,7 @@
*
*/
#ifndef LIBVIRT_OPENVZ_UTIL_H
# define LIBVIRT_OPENVZ_UTIL_H
#pragma once
long openvzKBPerPages(void);
char *openvzVEGetStringParam(virDomainPtr dom, const char *param);
#endif /* LIBVIRT_OPENVZ_UTIL_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册