acl  3.5.3.0
acl_iplink.h
浏览该文件的文档.
1 /*
2  * Name: iplink.h
3  * Author: zsx
4  * Date: 2003/11/30
5  * Version: 1.0
6  *
7 */
8 #ifndef ACL_IPLINK_INCLUDE_H
9 #define ACL_IPLINK_INCLUDE_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include "acl_define.h"
16 #include "acl_dlink.h"
17 #include "acl_iterator.h"
18 
19 #define ACL_IPITEM ACL_DITEM
20 #define ACL_IPLINK ACL_DLINK
21 
22 ACL_API ACL_IPLINK *acl_iplink_create(int nsize);
23 ACL_API void acl_iplink_free(ACL_IPLINK *plink);
24 ACL_API ACL_IPITEM *acl_iplink_lookup_item(const ACL_IPLINK *plink,
25  ACL_IPITEM *pitem);
26 ACL_API ACL_IPITEM *acl_iplink_lookup_bin(const ACL_IPLINK *plink,
27  unsigned int ip);
28 ACL_API ACL_IPITEM *acl_iplink_lookup_str(const ACL_IPLINK *plink,
29  const char *ip);
31  unsigned int ip_begin, unsigned int ip_end);
33  const char *pstrip_begin, const char *pstrip_end);
34 ACL_API int acl_iplink_delete_by_ip(ACL_IPLINK *plink,
35  const char *pstrip_begin);
36 ACL_API int acl_iplink_delete_by_item(ACL_IPLINK *plink, ACL_IPITEM *pitem);
37 ACL_API ACL_IPITEM *acl_iplink_modify(ACL_IPLINK *plink, const char *pstrip_id,
38  const char *pstrip_begin, const char *pstrip_end);
39 ACL_API int acl_iplink_count_item(ACL_IPLINK *plink);
40 ACL_API int acl_iplink_list(const ACL_IPLINK *plink);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif
47 
ACL_API int acl_iplink_list(const ACL_IPLINK *plink)
ACL_API int acl_iplink_delete_by_ip(ACL_IPLINK *plink, const char *pstrip_begin)
#define ACL_IPLINK
Definition: acl_iplink.h:20
ACL_API ACL_IPITEM * acl_iplink_lookup_item(const ACL_IPLINK *plink, ACL_IPITEM *pitem)
ACL_API int acl_iplink_count_item(ACL_IPLINK *plink)
ACL_API ACL_IPITEM * acl_iplink_insert_bin(ACL_IPLINK *plink, unsigned int ip_begin, unsigned int ip_end)
ACL_API ACL_IPITEM * acl_iplink_lookup_bin(const ACL_IPLINK *plink, unsigned int ip)
ACL_API void acl_iplink_free(ACL_IPLINK *plink)
ACL_API ACL_IPITEM * acl_iplink_insert(ACL_IPLINK *plink, const char *pstrip_begin, const char *pstrip_end)
ACL_API int acl_iplink_delete_by_item(ACL_IPLINK *plink, ACL_IPITEM *pitem)
ACL_API ACL_IPITEM * acl_iplink_lookup_str(const ACL_IPLINK *plink, const char *ip)
ACL_API ACL_IPITEM * acl_iplink_modify(ACL_IPLINK *plink, const char *pstrip_id, const char *pstrip_begin, const char *pstrip_end)
#define ACL_IPITEM
Definition: acl_iplink.h:19
ACL_API ACL_IPLINK * acl_iplink_create(int nsize)