diff options
author | Dimitri Staessens <[email protected]> | 2018-02-19 23:46:34 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-02-20 08:49:34 +0100 |
commit | e72fcd924b25b2b3b8a45c85d9c3d09388885249 (patch) | |
tree | e5ab66df04cedd1845dfa624a0ab97366c290325 /include | |
parent | 91012d9af758a48c4c57fc940dfcc8a581fa46ac (diff) | |
download | ouroboros-e72fcd924b25b2b3b8a45c85d9c3d09388885249.tar.gz ouroboros-e72fcd924b25b2b3b8a45c85d9c3d09388885249.zip |
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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/rib.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <sys/stat.h> +#include <sys/types.h> + 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); |