diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-04-13 10:21:34 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-05-05 15:06:22 +0200 |
commit | e66cbd10d52a79fd61acab9d615683eebdbf1df5 (patch) | |
tree | e81be2319e7b2c485354283f025e090bb56c8754 /lib/plist.c | |
parent | 4584c239201037648abf1a6615186f9cdeb86b23 (diff) | |
download | quagga-e66cbd10d52a79fd61acab9d615683eebdbf1df5.tar.bz2 quagga-e66cbd10d52a79fd61acab9d615683eebdbf1df5.tar.xz |
lib: hide internal prefix list structures
These are about to be touched and there's no point in other code
touching into prefix list's internas. Add some isolation.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/plist.c')
-rw-r--r-- | lib/plist.c | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/lib/plist.c b/lib/plist.c index 61075560..bdc31e8f 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -30,25 +30,7 @@ #include "stream.h" #include "log.h" -/* Each prefix-list's entry. */ -struct prefix_list_entry -{ - int seq; - - int le; - int ge; - - enum prefix_list_type type; - - int any; - struct prefix prefix; - - unsigned long refcnt; - unsigned long hitcnt; - - struct prefix_list_entry *next; - struct prefix_list_entry *prev; -}; +#include "plist_int.h" /* List of struct prefix_list. */ struct prefix_list_list @@ -125,6 +107,11 @@ prefix_master_get (afi_t afi) return NULL; } +const char *prefix_list_name (struct prefix_list *plist) +{ + return plist->name; +} + /* Lookup prefix_list from list of prefix_list by name. */ struct prefix_list * prefix_list_lookup (afi_t afi, const char *name) |