X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fipaccess.h;h=a38c5fe3cd9a6e457b1c3bae007f862cd6767a8b;hb=b4d79987a979bcbf749294c706fdc8c4ae8f9304;hp=291ffe8e77ead4110b69c3f9f11f3688bbb5b1ce;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/ipaccess.h b/lib/ipaccess.h index 291ffe8e..a38c5fe3 100644 --- a/lib/ipaccess.h +++ b/lib/ipaccess.h @@ -1,14 +1,18 @@ /* - * Sherlock Library -- IP address access lists + * UCW Library -- IP address access lists * - * (c) 1997--2001 Martin Mares + * (c) 1997--2006 Martin Mares * * 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 -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); +#include "lib/clists.h" + +extern struct cf_section ipaccess_cf; +int ipaccess_check(clist *l, u32 ip); + +#endif