summaryrefslogtreecommitdiffstats
path: root/lib/vector.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-05-11 21:32:06 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-06-06 18:15:34 +0200
commitfe011935cdeda14b61297e72bc30eae46ccd4f55 (patch)
treeca89a7f40f70a5e5477298d1555d127f94a8b46f /lib/vector.h
parentMerge pull request #2376 from mjstapp/doc_link (diff)
downloadfrr-fe011935cdeda14b61297e72bc30eae46ccd4f55.tar.xz
frr-fe011935cdeda14b61297e72bc30eae46ccd4f55.zip
lib: add string utilities
I see lots of the same code being copy-pasted and slightly tweaked for string processing all over the codebase. Time to start aggregating these pieces into something consistent and correct. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/vector.h')
-rw-r--r--lib/vector.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vector.h b/lib/vector.h
index 91f7d997d..cc28fda48 100644
--- a/lib/vector.h
+++ b/lib/vector.h
@@ -59,5 +59,6 @@ extern vector vector_copy(vector v);
extern void *vector_lookup(vector, unsigned int);
extern void *vector_lookup_ensure(vector, unsigned int);
-
+extern void vector_to_array(vector v, void ***dest, int *argc);
+extern vector array_to_vector(void **src, int argc);
#endif /* _ZEBRA_VECTOR_H */