summaryrefslogtreecommitdiffstats
path: root/lib/vector.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-05-26 00:49:53 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-06-06 18:16:12 +0200
commit62bece44494e5b7aefb5102bd1109e1e1376c3b3 (patch)
treee2096997453b0df42e27248de14f6de9248499ea /lib/vector.h
parent*: style for | support (diff)
downloadfrr-62bece44494e5b7aefb5102bd1109e1e1376c3b3.tar.xz
frr-62bece44494e5b7aefb5102bd1109e1e1376c3b3.zip
lib: add vector_remove() to vector.[ch]
An optimized version of this has already been implemented within graph.c that assumes some specialized constraints for that code. It's generally useful so this change implements a general purpose version of it. This fixes cmd_make_strvec() that was broken by some code shuffling in previous commits. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/vector.h')
-rw-r--r--lib/vector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vector.h b/lib/vector.h
index cc28fda48..21732a300 100644
--- a/lib/vector.h
+++ b/lib/vector.h
@@ -52,6 +52,7 @@ extern int vector_set(vector v, void *val);
extern int vector_set_index(vector v, unsigned int i, void *val);
extern void vector_unset(vector v, unsigned int i);
extern void vector_unset_value(vector v, void *val);
+extern void vector_remove(vector v, unsigned int ix);
extern unsigned int vector_count(vector v);
extern void vector_free(vector v);