mirror of https://gitee.com/openkylin/libvirt.git
virsh: Move the definition of macro VIRSH_COMMON_OPT_DOMAIN_FULL to virsh.h
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>
This commit is contained in:
parent
6c6795b4d7
commit
8379895227
|
@ -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,
|
||||
|
|
|
@ -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, \
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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, \
|
||||
|
|
Loading…
Reference in New Issue