summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-10-20 20:31:24 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-10-20 20:31:24 +0000
commitae19d7dd48477ea14dcadb94f07374a5fb2b5fda (patch)
treeb9fa90250fc351d7cbcd1d29e9ab6f85746f7e50 /lib/command.h
parente8d5696d45a0f713b080f8b06f462febb5d38057 (diff)
lib: Add helper function for working with argv, update bgpd to use it
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index aad0c6b3e6..0e2d27f19c 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -408,6 +408,7 @@ extern void install_element (enum node_type, struct cmd_element *);
string with a space between each element (allocated using
XMALLOC(MTYPE_TMP)). Returns NULL if shift >= argc. */
extern char *argv_concat (struct cmd_token **argv, int argc, int shift);
+extern int argv_find (struct cmd_token **argv, int argc, const char *text, int *index);
extern vector cmd_make_strvec (const char *);
extern void cmd_free_strvec (vector);