Signed-off-by: Lin Ma <[email protected]>
---
 tools/virsh.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tools/virsh.h b/tools/virsh.h
index 9e717ef574..b1b641bc41 100644
--- a/tools/virsh.h
+++ b/tools/virsh.h
@@ -110,6 +110,17 @@
      .help = _helpstr \
     }
 
+# define VIRSH_COMMON_OPT_DOMAIN_OT_STRING(_helpstr, cflags) \
+    {.name = "domain", \
+     .type = VSH_OT_STRING, \
+     .help = _helpstr, \
+     .completer = virshDomainNameCompleter, \
+     .completer_flags = cflags, \
+    }
+
+#define VIRSH_COMMON_OPT_DOMAIN_OT_STRING_FULL(cflags) \
+    VIRSH_COMMON_OPT_DOMAIN_OT_STRING(N_("domain name, id or uuid"), cflags)
+
 typedef struct _virshControl virshControl;
 typedef virshControl *virshControlPtr;
 
-- 
2.15.1

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to