]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Move the definition of macro VIRSH_COMMON_OPT_DOMAIN_FULL to virsh.h
authorLin Ma <lma@suse.com>
Tue, 8 May 2018 14:20:29 +0000 (22:20 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 10 May 2018 05:51:37 +0000 (07:51 +0200)
centralize the definition of macro VIRSH_COMMON_OPT_DOMAIN_FULL to virsh.h
to avoid unnecessary duplicated definition

Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-snapshot.c
tools/virsh.h

index 8e071779b4efe5494ef77598abeca896a4f303b0..071619d0e3e7ce8139eb1d499162ad1e4fc3872a 100644 (file)
@@ -40,9 +40,6 @@
 #include "virxml.h"
 #include "virstring.h"
 
-#define VIRSH_COMMON_OPT_DOMAIN_FULL(cflags) \
-    VIRSH_COMMON_OPT_DOMAIN(N_("domain name, id or uuid"), cflags)
-
 VIR_ENUM_DECL(virshDomainIOError)
 VIR_ENUM_IMPL(virshDomainIOError,
               VIR_DOMAIN_DISK_ERROR_LAST,
index 598d2fa4a4bd9d52069579a1c343e658ac83255f..aa11a81638173c5cf4c1d3e64beb6357146cf2f4 100644 (file)
@@ -65,9 +65,6 @@
 # define SA_SIGINFO 0
 #endif
 
-#define VIRSH_COMMON_OPT_DOMAIN_FULL(cflags) \
-    VIRSH_COMMON_OPT_DOMAIN(N_("domain name, id or uuid"), cflags)
-
 #define VIRSH_COMMON_OPT_DOMAIN_PERSISTENT \
     {.name = "persistent", \
      .type = VSH_OT_BOOL, \
index e4908eea70b86d7e3528cf84e764de835d681a60..812fa91333a1377a1f1f07110e120c31ca861e86 100644 (file)
@@ -42,9 +42,6 @@
 #include "virxml.h"
 #include "conf/snapshot_conf.h"
 
-#define VIRSH_COMMON_OPT_DOMAIN_FULL(cflags) \
-    VIRSH_COMMON_OPT_DOMAIN(N_("domain name, id or uuid"), cflags)
-
 /* Helper for snapshot-create and snapshot-create-as */
 static bool
 virshSnapshotCreate(vshControl *ctl, virDomainPtr dom, const char *buffer,
index f2213ebb574812f353c722c168226c339257dfde..d977fe30dfaded3e9eae36f43d7a79bfe7843882 100644 (file)
@@ -82,6 +82,9 @@
      .completer_flags = cflags, \
     }
 
+# define VIRSH_COMMON_OPT_DOMAIN_FULL(cflags) \
+    VIRSH_COMMON_OPT_DOMAIN(N_("domain name, id or uuid"), cflags)
+
 # define VIRSH_COMMON_OPT_CONFIG(_helpstr) \
     {.name = "config", \
      .type = VSH_OT_BOOL, \