]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Move/add some of function declarations to virsh-domain.h
authorLin Ma <lma@suse.com>
Tue, 10 Nov 2020 09:51:01 +0000 (17:51 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Nov 2020 17:34:26 +0000 (18:34 +0100)
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@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c
tools/virsh-domain.h

index 022dbdca3c1064fb17c4b8acbe5ea28ca30561b2..472b510a6b6070f76d6669adce7bf3c2573b775b 100644 (file)
@@ -8910,7 +8910,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 */
index 0d59c579d433c2d6d4e85c712505e2291340389e..70e2aba1b10dafcfb88bc7373cfc1c7011e26847 100644 (file)
@@ -39,3 +39,7 @@ typedef enum {
 VIR_ENUM_DECL(virshDomainHostnameSource);
 
 extern const vshCmdDef domManagementCmds[];
+
+VIR_ENUM_DECL(virDomainProcessSignal);
+VIR_ENUM_DECL(virDomainLifecycle);
+VIR_ENUM_DECL(virDomainLifecycleAction);