5 #ifndef CHAIN_ELEMENT_H_ 6 #define CHAIN_ELEMENT_H_ 10 #define COR_SUCCESS (0) 11 #define COR_FAILED (-1)
ChainElementPart result_element_part
int chain_element_add_function(ChainElement this, chain_element_req_t *elemnt_data)
void chain_element_call(ChainElement this, void *arg)
This is API for Chain of Responsibility design pettern class.
cor_result_e(* chain_func)(void *arg, void *ctx)
chain func
chain function element part class instance definition
chain_element_data_t element_data
void chain_element_remove_element_part(ChainElement this, ChainElementPart element)
void chain_element_remove_function(ChainElement this, chain_func func)
void chain_element_delete(ChainElement this)
struct chain_element_t * ChainElement
ChainElement chain_element_new(int is_threadsafe)