]> mj.ucw.cz Git - libucw.git/blobdiff - lib/ipaccess.h
Use big_alloc().
[libucw.git] / lib / ipaccess.h
index e9c85b2ad4cb1645a9686af7da8c4b5dd2d525bf..a38c5fe3cd9a6e457b1c3bae007f862cd6767a8b 100644 (file)
@@ -1,11 +1,18 @@
 /*
- *     Sherlock Library -- IP address access lists
+ *     UCW Library -- IP address access lists
  *
- *     (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ *     (c) 1997--2006 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
-struct ipaccess_list;
+#ifndef _UCW_IPACCESS_H
+#define _UCW_IPACCESS_H
+
+#include "lib/clists.h"
+
+extern struct cf_section ipaccess_cf;
+int ipaccess_check(clist *l, u32 ip);
 
-struct ipaccess_list *ipaccess_init(void);
-byte *ipaccess_parse(struct ipaccess_list *l, byte *c, int is_allow);
-int ipaccess_check(struct ipaccess_list *l, u32 ip);
+#endif