diff options
| author | whitespace / reindent <invalid@invalid.invalid> | 2017-08-09 11:49:42 +0200 |
|---|---|---|
| committer | whitespace / reindent <invalid@invalid.invalid> | 2017-08-09 12:03:17 +0200 |
| commit | ac4d0be5874fafd14212d6007fff7495edc9b152 (patch) | |
| tree | 5e2f0d3189de928c849f9983406389ade3b098cb /lib/filter.h | |
| parent | 76a86854181c27819e5cf71b12ae1fa5ccd9e02a (diff) | |
*: reindentreindent-3.0-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/filter.h')
| -rw-r--r-- | lib/filter.h | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/lib/filter.h b/lib/filter.h index 6b5ccb52ec..02227de6eb 100644 --- a/lib/filter.h +++ b/lib/filter.h @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with GNU Zebra; see the file COPYING. If not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Boston, MA 02111-1307, USA. */ #ifndef _ZEBRA_FILTER_H @@ -34,42 +34,32 @@ #define FILTER_MAX 2 /* Filter type is made by `permit', `deny' and `dynamic'. */ -enum filter_type -{ - FILTER_DENY, - FILTER_PERMIT, - FILTER_DYNAMIC -}; +enum filter_type { FILTER_DENY, FILTER_PERMIT, FILTER_DYNAMIC }; -enum access_type -{ - ACCESS_TYPE_STRING, - ACCESS_TYPE_NUMBER -}; +enum access_type { ACCESS_TYPE_STRING, ACCESS_TYPE_NUMBER }; /* Access list */ -struct access_list -{ - char *name; - char *remark; +struct access_list { + char *name; + char *remark; - struct access_master *master; + struct access_master *master; - enum access_type type; + enum access_type type; - struct access_list *next; - struct access_list *prev; + struct access_list *next; + struct access_list *prev; - struct filter *head; - struct filter *tail; + struct filter *head; + struct filter *tail; }; /* Prototypes for access-list. */ -extern void access_list_init (void); -extern void access_list_reset (void); -extern void access_list_add_hook (void (*func)(struct access_list *)); -extern void access_list_delete_hook (void (*func)(struct access_list *)); -extern struct access_list *access_list_lookup (afi_t, const char *); -extern enum filter_type access_list_apply (struct access_list *, void *); +extern void access_list_init(void); +extern void access_list_reset(void); +extern void access_list_add_hook(void (*func)(struct access_list *)); +extern void access_list_delete_hook(void (*func)(struct access_list *)); +extern struct access_list *access_list_lookup(afi_t, const char *); +extern enum filter_type access_list_apply(struct access_list *, void *); #endif /* _ZEBRA_FILTER_H */ |
