]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
parallels: move parallelsParseError to parallels_utils.h
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 11 Dec 2012 10:59:44 +0000 (14:59 +0400)
committerDaniel Veillard <veillard@redhat.com>
Tue, 11 Dec 2012 14:46:16 +0000 (22:46 +0800)
This macro will be used in another file in the next
patch, so move it to common header file.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
po/POTFILES.in
src/parallels/parallels_driver.c
src/parallels/parallels_utils.h

index 586aa2b5cd32c79d2ed0e67336bd893748ec625b..50cdc4eaaaf8362622c00faeb5563ddc719e16d0 100644 (file)
@@ -77,6 +77,7 @@ src/openvz/openvz_driver.c
 src/openvz/openvz_util.c
 src/parallels/parallels_driver.c
 src/parallels/parallels_utils.c
+src/parallels/parallels_utils.h
 src/parallels/parallels_storage.c
 src/phyp/phyp_driver.c
 src/qemu/qemu_agent.c
index 967679380b95702cc518a1e10aa3db820dc51fe7..389743fb511ce67bc6ff37b5cf2ae2a900b3ed9e 100644 (file)
                        _("no domain with matching uuid '%s'"), uuidstr); \
     } while (0)
 
-#define parallelsParseError()                                                  \
-    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"))
 
 static int parallelsClose(virConnectPtr conn);
index e4b3f8b0fdca083856bb6635e33d6950eb989fb8..8b0bdf680ad8fe445aeb392f7cd2b3082baaacfb 100644 (file)
 # include "conf/domain_event.h"
 # include "json.h"
 
+# define parallelsParseError()                                                 \
+    virReportErrorHelper(VIR_FROM_TEST, VIR_ERR_OPERATION_FAILED, __FILE__,    \
+                     __FUNCTION__, __LINE__, _("Can't parse prlctl output"))
+
 struct _parallelsConn {
     virMutex lock;
     virDomainObjList domains;