Diffusion C API  6.7.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
svc_defn_s Struct Reference

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.
 

Detailed Description

Every service that a client can provide has to implement this core set of functions.


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