From d6321a22f8c957523e7acbf6c57f5730b55ac378 Mon Sep 17 00:00:00 2001
From: dimitri staessens <dimitri.staessens@intec.ugent.be>
Date: Sun, 29 Jan 2017 16:29:51 +0100
Subject: 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.
---
 include/ouroboros/rib.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'include')

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);
 
-- 
cgit v1.2.3