diff options
author | Michael Adam <obnox@samba.org> | 2009-12-06 23:30:23 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-07 00:22:46 +0100 |
commit | 8cb182e1b873fde40db6e4258ee23b05f956f397 (patch) | |
tree | e233d504ea8d6dbb06c5e218aa9ffa0b3d652f80 /src/acl.h | |
parent | 6266197e9257df1501b1962ad0a3e3ba757092f3 (diff) |
Add access_list to the config struct instead of a global variable in acl.c.
Change insert_acl, check_acl and flush_access_list to take a corresponding
argument.
Michael
Diffstat (limited to 'src/acl.h')
-rw-r--r-- | src/acl.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -23,8 +23,10 @@ typedef enum { ACL_ALLOW, ACL_DENY } acl_access_t; -extern int insert_acl (char *location, acl_access_t access_type); -extern int check_acl (const char *ip_address, const char *string_address); -extern void flush_access_list (void); +extern int insert_acl (char *location, acl_access_t access_type, + vector_t *access_list); +extern int check_acl (const char *ip_address, const char *string_address, + vector_t access_list); +extern void flush_access_list (vector_t access_list); #endif |