diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-04-13 10:21:34 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-03 14:42:24 +0100 |
commit | a38401b6af746794db0b4bdbd3954289b8d00aef (patch) | |
tree | bfc29be70e117f267e688363b77b91bab1dcea51 /lib/plist.h | |
parent | Fixing a space before VRF_CMD_STR in ip route commands. (diff) | |
download | frr-a38401b6af746794db0b4bdbd3954289b8d00aef.tar.xz frr-a38401b6af746794db0b4bdbd3954289b8d00aef.zip |
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.h')
-rw-r--r-- | lib/plist.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/lib/plist.h b/lib/plist.h index 4359a8935..cfc43c781 100644 --- a/lib/plist.h +++ b/lib/plist.h @@ -31,30 +31,7 @@ enum prefix_list_type PREFIX_PERMIT, }; -enum prefix_name_type -{ - PREFIX_TYPE_STRING, - PREFIX_TYPE_NUMBER -}; - -struct prefix_list -{ - char *name; - char *desc; - - struct prefix_master *master; - - enum prefix_name_type type; - - int count; - int rangecount; - - struct prefix_list_entry *head; - struct prefix_list_entry *tail; - - struct prefix_list *next; - struct prefix_list *prev; -}; +struct prefix_list; struct orf_prefix { @@ -70,6 +47,7 @@ extern void prefix_list_reset (void); extern void prefix_list_add_hook (void (*func) (struct prefix_list *)); extern void prefix_list_delete_hook (void (*func) (struct prefix_list *)); +extern const char *prefix_list_name (struct prefix_list *); extern struct prefix_list *prefix_list_lookup (afi_t, const char *); extern enum prefix_list_type prefix_list_apply (struct prefix_list *, void *); |