dccp_recv.c: Fix a fd leak.
[paraslash.git] / acl.h
1 /*
2  * Copyright (C) 2008 Andre Noll <maan@systemlinux.org>
3  *
4  * Licensed under the GPL v2. For licencing details see COPYING.
5  */
6
7 /** \file acl.h Exported functions of acl.c. */
8
9 void acl_init(struct list_head *acl, char * const *acl_info, int num);
10 int acl_lookup(int fd, struct list_head *acl);
11 void acl_add_entry(struct list_head *acl, struct in_addr addr,
12                 int netmask);
13 void acl_del_entry(struct list_head *acl, struct in_addr addr,
14                 int netmask);
15 char *acl_get_contents(struct list_head *acl);