design_pattern_for_c
V 1.00
|
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 "lower_layer_builder.h"
Go to the source code of this file.
Data Structures | |
struct | lower_layer_director_t |
LowerLayerDirector class member definition. More... | |
Typedefs | |
typedef struct director_t * | Director |
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_t * | LowerLayerDirector |
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... | |
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 struct director_t* Director |
Typedef class Director, member is defined in struct director_t.
Definition at line 17 of file lower_layer_director.h.
typedef struct lower_layer_director_t lower_layer_director_t |
LowerLayerDirector class definition.
Definition at line 28 of file lower_layer_director.h.
typedef struct lower_layer_director_t * LowerLayerDirector |
Definition at line 28 of file lower_layer_director.h.
void lower_layer_director_construct | ( | LowerLayerDirector | director, |
void * | initial_parameter, | ||
void(*)(int result) | initial_result | ||
) |
director cconstruct
[in] | director | LowerLayerDirector class instance returned at lower_layer_director_construct |
[in] | initial_parameter | initialize parameter if you have |
[in] | initial_result | initialize callback, result is in here |
Definition at line 34 of file lower_layer_director.c.
void lower_layer_director_free | ( | LowerLayerDirector | director | ) |
director denstruct
[in] | director | LowerLayerDirector class instance returned at lower_layer_director_construct |
Definition at line 38 of file lower_layer_director.c.
LowerLayerDirector lower_layer_director_new | ( | char * | builder_lib_name, |
char * | builder_interface_conf | ||
) |
director new
[in] | builder_lib_name | library name implement builder interface |
[in] | builder_interface_conf | conf file write interface definition |
!=NULL | LowerLayerDirector class instance. |
NULL | error |
Definition at line 15 of file lower_layer_director.c.