design_pattern_for_c
V 1.00
|
This is API for element of chain. More...
#include "chain_of_responsibility.h"
Go to the source code of this file.
Data Structures | |
struct | chain_element_data_t |
struct | chain_element_req_t |
Macros | |
#define | COR_SUCCESS (0) |
#define | COR_FAILED (-1) |
Typedefs | |
typedef struct chain_element_t | chain_element_t |
extend DPUtilListData defined in design_pattern_util/include/dp_list.h More... | |
typedef struct chain_element_t * | ChainElement |
typedef struct chain_element_data_t | chain_element_data_t |
typedef struct chain_element_req_t | chain_element_req_t |
Functions | |
ChainElement | chain_element_new (int is_threadsafe) |
int | chain_element_add_function (ChainElement this, chain_element_req_t *elemnt_data) |
void | chain_element_remove_function (ChainElement this, chain_func func) |
void | chain_element_remove_element_part (ChainElement this, ChainElementPart element) |
void | chain_element_call (ChainElement this, void *arg) |
void | chain_element_delete (ChainElement this) |
This is API for element of chain.
Definition in file chain_element.h.
#define COR_FAILED (-1) |
Definition at line 11 of file chain_element.h.
#define COR_SUCCESS (0) |
Definition at line 10 of file chain_element.h.
typedef struct chain_element_data_t chain_element_data_t |
Definition at line 24 of file chain_element.h.
typedef struct chain_element_req_t chain_element_req_t |
Definition at line 30 of file chain_element.h.
typedef struct chain_element_t chain_element_t |
extend DPUtilListData defined in design_pattern_util/include/dp_list.h
Definition at line 18 of file chain_element.h.
typedef struct chain_element_t * ChainElement |
Definition at line 18 of file chain_element.h.
int chain_element_add_function | ( | ChainElement | this, |
chain_element_req_t * | elemnt_data | ||
) |
Definition at line 73 of file chain_element.c.
void chain_element_call | ( | ChainElement | this, |
void * | arg | ||
) |
void chain_element_delete | ( | ChainElement | this | ) |
Definition at line 123 of file chain_element.c.
ChainElement chain_element_new | ( | int | is_threadsafe | ) |
void chain_element_remove_element_part | ( | ChainElement | this, |
ChainElementPart | element | ||
) |
Definition at line 103 of file chain_element.c.
void chain_element_remove_function | ( | ChainElement | this, |
chain_func | func | ||
) |
Definition at line 86 of file chain_element.c.