design_pattern_for_c  V 1.00
chain_element.h File Reference

This is API for element of chain. More...

Include dependency graph for chain_element.h:
This graph shows which files directly or indirectly include this file:

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_tChainElement
 
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)
 

Detailed Description

This is API for element of chain.

Definition in file chain_element.h.

Macro Definition Documentation

◆ COR_FAILED

#define COR_FAILED   (-1)

Definition at line 11 of file chain_element.h.

◆ COR_SUCCESS

#define COR_SUCCESS   (0)

Definition at line 10 of file chain_element.h.

Typedef Documentation

◆ chain_element_data_t

Definition at line 24 of file chain_element.h.

◆ chain_element_req_t

Definition at line 30 of file chain_element.h.

◆ chain_element_t

extend DPUtilListData defined in design_pattern_util/include/dp_list.h

Definition at line 18 of file chain_element.h.

◆ ChainElement

typedef struct chain_element_t * ChainElement

Definition at line 18 of file chain_element.h.

Function Documentation

◆ chain_element_add_function()

int chain_element_add_function ( ChainElement  this,
chain_element_req_t elemnt_data 
)

Definition at line 73 of file chain_element.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chain_element_call()

void chain_element_call ( ChainElement  this,
void *  arg 
)

Definition at line 110 of file chain_element.c.

Here is the caller graph for this function:

◆ chain_element_delete()

void chain_element_delete ( ChainElement  this)

Definition at line 123 of file chain_element.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chain_element_new()

ChainElement chain_element_new ( int  is_threadsafe)

Definition at line 57 of file chain_element.c.

Here is the caller graph for this function:

◆ chain_element_remove_element_part()

void chain_element_remove_element_part ( ChainElement  this,
ChainElementPart  element 
)

Definition at line 103 of file chain_element.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chain_element_remove_function()

void chain_element_remove_function ( ChainElement  this,
chain_func  func 
)

Definition at line 86 of file chain_element.c.

Here is the call graph for this function:
Here is the caller graph for this function: