Logo Search packages:      
Sourcecode: c-icap version File versions  Download package

Public Attributes

ci_service_module Struct Reference
[Services API]

#include <service.h>

Collaboration diagram for ci_service_module:
Collaboration graph
[legend]

List of all members.

Public Attributes

int(* mod_check_preview_handler )(char *preview_data, int preview_data_len, struct ci_request *req)
 Pointer to the function which is used to preview the ICAP client request.
void(* mod_close_service )()
 Pointer to the function which called on c-icap server shutdown.
struct ci_conf_entrymod_conf_table
 Pointer to the config table of the service.
void * mod_data
 NULL pointer.
int(* mod_end_of_data_handler )(struct ci_request *req)
 Pointer to the function called when the icap client has send all the data to the service.
void *(* mod_init_request_data )(struct ci_request *req)
 Pointer to the function called when a new request for this services arrives to c-icap server.
int(* mod_init_service )(ci_service_xdata_t *srv_xdata, struct ci_server_conf *server_conf)
 Pointer to the function called when the service loaded.
char * mod_name
 The service name.
int(* mod_post_init_service )(ci_service_xdata_t *srv_xdata, struct ci_server_conf *server_conf)
 Pointer to the function which called after the c-icap initialized, but before the c-icap start serves requests.
void(* mod_release_request_data )(void *srv_data)
 Pointer to the function which releases the service data.
int(* mod_service_io )(char *wbuf, int *wlen, char *rbuf, int *rlen, int iseof, struct ci_request *req)
 Pointer to the function called to read/send body data from/to icap client.
char * mod_short_descr
 Service short description.
int mod_type
 Service type.

Detailed Description

Is the structure which implements a service

To implement a service someones needs to implement the member functions of this struct. These functions will be called by c-icap as follows:

Definition at line 108 of file service.h.


The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index