design_pattern_for_c  V 1.00
lower_layer_director.h File Reference

This is API for director class action as design petten In this case, Builder interface is included by conf file, and interface implement class is dynamic library. More...

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

Go to the source code of this file.

Data Structures

struct  lower_layer_director_t
 LowerLayerDirector class member definition. More...
 

Typedefs

typedef struct director_tDirector
 Typedef class Director, member is defined in struct director_t. More...
 
typedef struct lower_layer_director_t lower_layer_director_t
 LowerLayerDirector class definition. More...
 
typedef struct lower_layer_director_tLowerLayerDirector
 

Functions

LowerLayerDirector lower_layer_director_new (char *builder_lib_name, char *builder_interface_conf)
 director new More...
 
void lower_layer_director_construct (LowerLayerDirector director, void *initial_parameter, void(*initial_result)(int result))
 director cconstruct More...
 
void lower_layer_director_free (LowerLayerDirector director)
 director denstruct More...
 

Detailed Description

This is API for director class action as design petten In this case, Builder interface is included by conf file, and interface implement class is dynamic library.

Please see conf/sample.conf

Definition in file lower_layer_director.h.

Typedef Documentation

◆ Director

typedef struct director_t* Director

Typedef class Director, member is defined in struct director_t.

Definition at line 17 of file lower_layer_director.h.

◆ lower_layer_director_t

LowerLayerDirector class definition.

Definition at line 28 of file lower_layer_director.h.

◆ LowerLayerDirector

Definition at line 28 of file lower_layer_director.h.

Function Documentation

◆ lower_layer_director_construct()

void lower_layer_director_construct ( LowerLayerDirector  director,
void *  initial_parameter,
void(*)(int result)  initial_result 
)

director cconstruct

Parameters
[in]directorLowerLayerDirector class instance returned at lower_layer_director_construct
[in]initial_parameterinitialize parameter if you have
[in]initial_resultinitialize callback, result is in here
Returns
none
Note
please keep initial_parameter on static field (define static or allocate memory)

Definition at line 34 of file lower_layer_director.c.

Here is the call graph for this function:

◆ lower_layer_director_free()

void lower_layer_director_free ( LowerLayerDirector  director)

director denstruct

Parameters
[in]directorLowerLayerDirector class instance returned at lower_layer_director_construct

Definition at line 38 of file lower_layer_director.c.

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

◆ lower_layer_director_new()

LowerLayerDirector lower_layer_director_new ( char *  builder_lib_name,
char *  builder_interface_conf 
)

director new

Parameters
[in]builder_lib_namelibrary name implement builder interface
[in]builder_interface_confconf file write interface definition
Return values
!=NULLLowerLayerDirector class instance.
NULLerror

Definition at line 15 of file lower_layer_director.c.

Here is the call graph for this function: