design_pattern_for_c
V 1.00
|
Implement of director API, defined in director.h. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <dlfcn.h>
#include "builder_action.h"
#include "director.h"
#include "dp_debug.h"
Go to the source code of this file.
Data Structures | |
struct | director_t |
director class member definition More... | |
Macros | |
#define | LLD_METHODSIZE_MAX (64) |
Functions | |
Director private method | |
static int | director_open_library (Director this, char *builder_lib_name) |
static int | director_load_methods (char *conffile, char ***methodname) |
static void | director_free_methods (int methodcnt, char **methodname) |
static int | director_add_methods (Director this, int methodcnt, char **methodname) |
static void | director_load_interface_method (Director this) |
Director public method implement | |
Director | director_new (char *builder_lib_name, char *builder_interface_conf) |
director new More... | |
void | director_construct (Director director, void *initial_parameter, void(*initial_result)(int result)) |
director construct More... | |
void | director_destruct (Director director) |
director destruct More... | |
void * | director_interface_class_new (Director this) |
interface class new More... | |
void | director_interface_class_free (Director this, void *instance) |
interface class free More... | |
void | director_free (Director this) |
director free More... | |
Implement of director API, defined in director.h.
Definition in file director.c.
#define LLD_METHODSIZE_MAX (64) |
Definition at line 17 of file director.c.
|
static |
void director_construct | ( | Director | director, |
void * | initial_parameter, | ||
void(*)(int result) | initial_result | ||
) |
director construct
Definition at line 195 of file director.c.
void director_destruct | ( | Director | director | ) |
director destruct
Definition at line 206 of file director.c.
void director_free | ( | Director | this | ) |
director free
Definition at line 229 of file director.c.
|
static |
void director_interface_class_free | ( | Director | this, |
void * | instance | ||
) |
interface class free
Definition at line 220 of file director.c.
void* director_interface_class_new | ( | Director | this | ) |
interface class new
Definition at line 211 of file director.c.
|
static |
|
static |
Definition at line 58 of file director.c.
Director director_new | ( | char * | builder_lib_name, |
char * | builder_interface_conf | ||
) |
director new
Definition at line 152 of file director.c.
|
static |