c-icap-doc
0.1
|
This is the struct used to implement an acl type object.
More...
#include <acl.h>
Data Fields | |
char | name [MAX_NAME_LEN+1] |
The acl type name. | |
void *(* | get_test_data )(struct ci_request *req, char *param) |
Pointer to the functions which retrieves the test data for this acl type More... | |
void(* | free_test_data )(struct ci_request *req, void *data) |
Pointer to the function which release the acl test data (if required) More... | |
const ci_type_ops_t * | type |
Pointer to the ci_types_ops_t struct which implements basic operations for the acl test data | |
This is the struct used to implement an acl type object.
void(* ci_acl_type::free_test_data) (struct ci_request *req, void *data) |
Pointer to the function which release the acl test data (if required)
This method releases the acl test data,which allocated using the get_test_data method
req | Pointer to the related ci_request_t object |
data | Pointer to allocated test data |
void*(* ci_acl_type::get_test_data) (struct ci_request *req, char *param) |
Pointer to the functions which retrieves the test data for this acl type
This method extract the test data from request object for this acl object. For example for the "src" acl type this function will extract the icap client ip address
req | Pointer to the related ci_request_t object |
param | Some acl types supports one parameter passed by the c-icap administrator |