From 3afcc74af66ac499ff5168ed76233c9e70516507 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 18 Jul 2019 17:18:28 +0200 Subject: [PATCH] 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 Reviewed-by: Jonathon Jongsma --- 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);