mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
parallels: move parallelsDomNotFoundError to parallels_utils.h
Move macro parallelsDomNotFoundError to file parallels_utils.h, because it will be used in parallels_sdk.c. Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
7039bb3cd1
commit
8dec6bbbfe
@ -63,14 +63,6 @@ VIR_LOG_INIT("parallels.parallels_driver");
|
||||
#define PRLCTL "prlctl"
|
||||
#define PRLSRVCTL "prlsrvctl"
|
||||
|
||||
#define parallelsDomNotFoundError(domain) \
|
||||
do { \
|
||||
char uuidstr[VIR_UUID_STRING_BUFLEN]; \
|
||||
virUUIDFormat(domain->uuid, uuidstr); \
|
||||
virReportError(VIR_ERR_NO_DOMAIN, \
|
||||
_("no domain with matching uuid '%s'"), uuidstr); \
|
||||
} while (0)
|
||||
|
||||
static int parallelsConnectClose(virConnectPtr conn);
|
||||
|
||||
static const char * parallelsGetDiskBusName(int bus) {
|
||||
|
@ -39,6 +39,14 @@
|
||||
|
||||
# define IS_CT(def) (STREQ_NULLABLE(def->os.type, "exe"))
|
||||
|
||||
# define parallelsDomNotFoundError(domain) \
|
||||
do { \
|
||||
char uuidstr[VIR_UUID_STRING_BUFLEN]; \
|
||||
virUUIDFormat(domain->uuid, uuidstr); \
|
||||
virReportError(VIR_ERR_NO_DOMAIN, \
|
||||
_("no domain with matching uuid '%s'"), uuidstr); \
|
||||
} while (0)
|
||||
|
||||
# define PARALLELS_ROUTED_NETWORK_NAME "Routed"
|
||||
|
||||
struct _parallelsConn {
|
||||
|
Loading…
x
Reference in New Issue
Block a user