design_pattern_for_c  V 1.00
chain_element.c File Reference

Implement of ChainElement class. More...

#include "dp_util.h"
#include "chain_element.h"
Include dependency graph for chain_element.c:

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_partChainElementPart
 
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...
 

Detailed Description

Implement of ChainElement class.

Definition in file chain_element.c.

Macro Definition Documentation

◆ CHAIN_ELEMENT_LOCK

#define CHAIN_ELEMENT_LOCK (   instance)    DPUTIL_LOCK(instance->lock)

Definition at line 37 of file chain_element.c.

◆ CHAIN_ELEMENT_UNLOCK

#define CHAIN_ELEMENT_UNLOCK   DPUTIL_UNLOCK

Definition at line 38 of file chain_element.c.

Typedef Documentation

◆ ChainElementPart

Definition at line 15 of file chain_element.c.

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_part_free()

static void chain_element_part_free ( ChainElementPart  this)
static

free ChainElementPart

Definition at line 53 of file chain_element.c.

Here is the caller graph for this function:

◆ chain_element_part_new()

static ChainElementPart chain_element_part_new ( chain_element_data_t element_data)
static

new ChainElementPart

Definition at line 43 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: