]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: Expose virshCommaStringListComplete()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 18 Jul 2019 15:18:28 +0000 (17:18 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Aug 2019 07:05:02 +0000 (09:05 +0200)
In next commits the virsh-completer.c is going to be split into
smaller files. Expose virshCommaStringListComplete() so that it
can still be used from those new files.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
tools/virsh-completer.c
tools/virsh-completer.h

index 957db160034ee585efe9abcd0908a5871023e975..476c3a95c46ed1b672d8104966e0f5a1522acf4d 100644 (file)
@@ -96,7 +96,7 @@
  * Returns: string list of completions on success,
  *          NULL otherwise.
  */
-static char **
+char **
 virshCommaStringListComplete(const char *input,
                              const char **options)
 {
index fb41c2c89f53a1058818e0f8ff6fce94a45e3970..f7e638d67faad56c26eeffa98a5ca903790268b2 100644 (file)
@@ -38,6 +38,9 @@ char ** virshDomainDiskTargetCompleter(vshControl *ctl,
                                        const vshCmd *cmd,
                                        unsigned int flags);
 
+char ** virshCommaStringListComplete(const char *input,
+                                     const char **options);
+
 char ** virshStoragePoolNameCompleter(vshControl *ctl,
                                       const vshCmd *cmd,
                                       unsigned int flags);