c-icap-doc  0.1
Data Structures | Typedefs | Functions
c-icap server configuration API

Data Structures

struct  ci_server_conf
 This struct holds the basic configurations of c-icap server. More...
 
struct  ci_conf_entry
 This struct holds a configuration parameter of c-icap server. More...
 
struct  ci_port
 Basic configurations for a listening port. More...
 

Typedefs

typedef struct ci_port ci_port_t
 Basic configurations for a listening port.
 

Functions

int ci_cfg_set_str (const char *directive, const char **argv, void *setdata)
 Sets a string configuration parameter. More...
 
int ci_cfg_set_int (const char *directive, const char **argv, void *setdata)
 Sets an int configuration parameter. More...
 
int ci_cfg_onoff (const char *directive, const char **argv, void *setdata)
 Sets an on/off configuration parameter. More...
 
int ci_cfg_disable (const char *directive, const char **argv, void *setdata)
 Can used with configuration parameters which does not takes arguments but when defined just disable a feature. More...
 
int ci_cfg_enable (const char *directive, const char **argv, void *setdata)
 Can used with configuration parameters which does not takes arguments but when defined just enable a feature. More...
 
int ci_cfg_size_off (const char *directive, const char **argv, void *setdata)
 Sets a configuration parameter of type ci_off_t (typedef of off_t type).
 
int ci_cfg_size_long (const char *directive, const char **argv, void *setdata)
 Sets a configuration parameter of type long.
 
int ci_cfg_version (const char *directive, const char **argv, void *setdata)
 Sets a configuration parameter of type int to 1 and prints c-icap version.
 
int ci_cfg_build_info (const char *directive, const char **argv, void *setdata)
 Sets a configuration parameter of type int to 1 and prints c-icap build information.
 

Detailed Description

Function Documentation

int ci_cfg_disable ( const char *  directive,
const char **  argv,
void *  setdata 
)

Can used with configuration parameters which does not takes arguments but when defined just disable a feature.

The setdata is a pointer to an int which is set to zero.

int ci_cfg_enable ( const char *  directive,
const char **  argv,
void *  setdata 
)

Can used with configuration parameters which does not takes arguments but when defined just enable a feature.

The setdata is a pointer to an int which is set to non zero.

int ci_cfg_onoff ( const char *  directive,
const char **  argv,
void *  setdata 
)

Sets an on/off configuration parameter.

The setdata is a pointer to an integer, which when the argument is "on" it is set to 1 and when the argument is "off" it is set to 0.

int ci_cfg_set_int ( const char *  directive,
const char **  argv,
void *  setdata 
)

Sets an int configuration parameter.

The setdata is a pointer to an integer

int ci_cfg_set_str ( const char *  directive,
const char **  argv,
void *  setdata 
)

Sets a string configuration parameter.

The setdata are a pointer to a string pointer