design_pattern_for_c  V 1.00
lower_layer_director.c File Reference

Implement of lower_layer_director (related to builder design petten) library API, defined in flyweight.h. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "director.h"
#include "lower_layer_builder.h"
#include "dp_debug.h"
Include dependency graph for lower_layer_director.c:

Go to the source code of this file.

Functions

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

Detailed Description

Implement of lower_layer_director (related to builder design petten) library API, defined in flyweight.h.

Definition in file lower_layer_director.c.

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: