]> xenbits.xensource.com Git - libvirt.git/commitdiff
parallels: move IS_CT macro to parallels_utils.h
authorDmitry Guryanov <dguryanov@parallels.com>
Mon, 1 Dec 2014 15:38:47 +0000 (18:38 +0300)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 9 Dec 2014 18:42:03 +0000 (19:42 +0100)
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
src/parallels/parallels_utils.h

index 808dc4ae3d86c6e3ee3fff431b40b9af9d898b37..0085c8f694ccf5724e787818bafa77e52dec9357 100644 (file)
@@ -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) {
index 0d770c5f7f370b67c9b8966eda80ce834fd8b757..eda869852b63e1dccd8bcb97c60cee61af9a8ed6 100644 (file)
@@ -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 {