[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v3 01/12] parallels: move IS_CT macro to parallels_utils.h



This macro will be used in paralles_sdk.c so move
it to common header.

Signed-off-by: Dmitry Guryanov <dguryanov 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]