diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-07 21:53:14 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-07 21:53:14 +0100 |
commit | ebc7f15ec75526ffacad7b82c99764b90eef021a (patch) | |
tree | df1d04e74d790e52969c31d623f4b63f4f3f4409 /src/acl.h | |
parent | efa5892011af588dd3adc5d67ab80cd02c330d68 (diff) |
acl: typedef access_list to acl_list_t
this allows to switch the underlying implementation easily.
Diffstat (limited to 'src/acl.h')
-rw-r--r-- | src/acl.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -25,11 +25,12 @@ #include "sock.h" typedef enum { ACL_ALLOW, ACL_DENY } acl_access_t; +typedef vector_t acl_list_t; extern int insert_acl (char *location, acl_access_t access_type, - vector_t *access_list); + acl_list_t *access_list); extern int check_acl (const char *ip_address, union sockaddr_union *addr, - vector_t access_list); -extern void flush_access_list (vector_t access_list); + acl_list_t access_list); +extern void flush_access_list (acl_list_t access_list); #endif |