From e72fcd924b25b2b3b8a45c85d9c3d09388885249 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 19 Feb 2018 23:46:34 +0100 Subject: lib: Get RIB attributes from component This revises the RIB so it gets the complete file attribute list from the component instead of setting some attributes in the library. This will allow setting read/write access later on in the component itself. The time of last change of lsdb entries in the file system is now set to the time of the last received Link State Update for that entry. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/rib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/ouroboros/rib.h b/include/ouroboros/rib.h index fda36ead..5a3d66dc 100644 --- a/include/ouroboros/rib.h +++ b/include/ouroboros/rib.h @@ -25,6 +25,9 @@ #define RIB_PATH_LEN 128 +#include +#include + struct rib; struct rib_ops { @@ -32,6 +35,8 @@ struct rib_ops { char * buf, size_t len); int (* readdir)(char *** entries); + int (* getattr)(const char * path, + struct stat * st); }; int rib_init(const char * prefix); -- cgit v1.2.3