[libvirt] [PATCH v3 01/12] parallels: move IS_CT macro to parallels_utils.h
Dmitry Guryanov
dguryanov at parallels.com
Tue Nov 18 13:16:56 UTC 2014
This macro will be used in paralles_sdk.c so move
it to common header.
Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
---
src/parallels/parallels_driver.c | 2 --
src/parallels/parallels_utils.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
index 808dc4a..0085c8f 100644
--- a/src/parallels/parallels_driver.c
+++ b/src/parallels/parallels_driver.c
@@ -72,8 +72,6 @@ VIR_LOG_INIT("parallels.parallels_driver");
_("no domain with matching uuid '%s'"), uuidstr); \
} while (0)
-#define IS_CT(def) (STREQ_NULLABLE(def->os.type, "exe"))
-
static int parallelsConnectClose(virConnectPtr conn);
static const char * parallelsGetDiskBusName(int bus) {
diff --git a/src/parallels/parallels_utils.h b/src/parallels/parallels_utils.h
index 0d770c5..163d99b 100644
--- a/src/parallels/parallels_utils.h
+++ b/src/parallels/parallels_utils.h
@@ -37,6 +37,8 @@
virReportErrorHelper(VIR_FROM_TEST, VIR_ERR_OPERATION_FAILED, __FILE__, \
__FUNCTION__, __LINE__, _("Can't parse prlctl output"))
+#define IS_CT(def) (STREQ_NULLABLE(def->os.type, "exe"))
+
# define PARALLELS_ROUTED_NETWORK_NAME "Routed"
struct _parallelsConn {
--
1.9.3
More information about the libvir-list
mailing list