The upcoming patches introduce completers into virsh-completer-domain.c, They will invoke the functions which are defined in virsh-domain.c, So these functions need to be declared in virsh-domain.h. Signed-off-by: Lin Ma <lma@xxxxxxxx> --- tools/virsh-domain.c | 1 - tools/virsh-domain.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index ed7307cdb6..65bbb6c646 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -8900,7 +8900,6 @@ static const vshCmdOptDef opts_send_process_signal[] = { {.name = NULL} }; -VIR_ENUM_DECL(virDomainProcessSignal); VIR_ENUM_IMPL(virDomainProcessSignal, VIR_DOMAIN_PROCESS_SIGNAL_LAST, "nop", "hup", "int", "quit", "ill", /* 0-4 */ diff --git a/tools/virsh-domain.h b/tools/virsh-domain.h index ac05f983f9..55938e54c0 100644 --- a/tools/virsh-domain.h +++ b/tools/virsh-domain.h @@ -57,3 +57,7 @@ extern const vshCmdDef domManagementCmds[]; .completer = virshDomainInterfaceCompleter, \ .completer_flags = VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC, \ } + +VIR_ENUM_DECL(virDomainProcessSignal); +VIR_ENUM_DECL(virDomainLifecycle); +VIR_ENUM_DECL(virDomainLifecycleAction); -- 2.26.0