summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-01-29 16:29:51 +0100
committerdimitri staessens <[email protected]>2017-01-29 16:29:51 +0100
commitd6321a22f8c957523e7acbf6c57f5730b55ac378 (patch)
treeeaf66f732f52d84a5daf3f6736b489c3a755a620 /include
parentbbee20a43f23f4f62cb1ab1f2ab0645581cfbaac (diff)
downloadouroboros-d6321a22f8c957523e7acbf6c57f5730b55ac378.tar.gz
ouroboros-d6321a22f8c957523e7acbf6c57f5730b55ac378.zip
lib: Add function to get children of node in RIB
Returns the names of the nodes (not the full paths). The function allocates memory to the children pointer that should be freed.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/rib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ouroboros/rib.h b/include/ouroboros/rib.h
index 5acf0330..1d0661a7 100644
--- a/include/ouroboros/rib.h
+++ b/include/ouroboros/rib.h
@@ -52,6 +52,9 @@ int rib_put(const char * path,
bool rib_has(const char * path);
+ssize_t rib_children(const char * path,
+ char *** children);
+
char * rib_path_append(char * path,
const char * name);