design_pattern_for_c
V 1.00
|
Implement of ChainElement class. More...
Go to the source code of this file.
Data Structures | |
struct | chain_element_part |
struct | chain_element_t |
Macros | |
#define | CHAIN_ELEMENT_LOCK(instance) DPUTIL_LOCK(instance->lock) |
#define | CHAIN_ELEMENT_UNLOCK DPUTIL_UNLOCK |
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) |
ChainElementPart class | |
typedef struct chain_element_part * | ChainElementPart |
static ChainElementPart | chain_element_part_new (chain_element_data_t *element_data) |
new ChainElementPart More... | |
static void | chain_element_part_free (ChainElementPart this) |
free ChainElementPart More... | |
Implement of ChainElement class.
Definition in file chain_element.c.
#define CHAIN_ELEMENT_LOCK | ( | instance | ) | DPUTIL_LOCK(instance->lock) |
Definition at line 37 of file chain_element.c.
#define CHAIN_ELEMENT_UNLOCK DPUTIL_UNLOCK |
Definition at line 38 of file chain_element.c.
typedef struct chain_element_part* ChainElementPart |
Definition at line 15 of file chain_element.c.
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 | ) |
|
static |
free ChainElementPart
Definition at line 53 of file chain_element.c.
|
static |
new ChainElementPart
Definition at line 43 of file chain_element.c.
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.