[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 02/15] tools: Expose virshCommaStringListComplete()



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>
---
 tools/virsh-completer.c | 2 +-
 tools/virsh-completer.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c
index 957db16003..476c3a95c4 100644
--- a/tools/virsh-completer.c
+++ b/tools/virsh-completer.c
@@ -96,7 +96,7 @@
  * Returns: string list of completions on success,
  *          NULL otherwise.
  */
-static char **
+char **
 virshCommaStringListComplete(const char *input,
                              const char **options)
 {
diff --git a/tools/virsh-completer.h b/tools/virsh-completer.h
index fb41c2c89f..f7e638d67f 100644
--- a/tools/virsh-completer.h
+++ b/tools/virsh-completer.h
@@ -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);
-- 
2.21.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]