Diffusion C API
6.10.0
|
Every service that a client can provide has to implement this core set of functions. More...
Data Fields | |
void(* | request_handler )() |
Service request handler. | |
void(* | response_handler )() |
Service response handler. | |
int(* | error_handler )() |
Service error handler. | |
void *(* | request_unmarshal )() |
Deserialise a request to the appropriate structure. | |
BUF_T *(* | request_marshal )() |
Serialise a request structure to bytes. | |
void *(* | response_unmarshal )() |
Deserialise a response to the appropriate structure. | |
BUF_T *(* | response_marshal )() |
Serialise a response structure to bytes. | |
void *(* | request_create )() |
Create a default request for this service. | |
void *(* | response_create )() |
Create a default response for this service. | |
void(* | request_free )() |
Free memory associated with the request structure. | |
void(* | response_free )() |
Free memory associated with the response structure. | |
void * | local |
Local data for service-specific use. | |
Every service that a client can provide has to implement this core set of functions.