design_pattern_for_c  V 1.00
director.c File Reference

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"
Include dependency graph for director.c:

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

Detailed Description

Implement of director API, defined in director.h.

Definition in file director.c.

Macro Definition Documentation

◆ LLD_METHODSIZE_MAX

#define LLD_METHODSIZE_MAX   (64)

Definition at line 17 of file director.c.

Function Documentation

◆ director_add_methods()

static int director_add_methods ( Director  this,
int  methodcnt,
char **  methodname 
)
static

Definition at line 123 of file director.c.

Here is the caller graph for this function:

◆ director_construct()

void director_construct ( Director  director,
void *  initial_parameter,
void(*)(int result)  initial_result 
)

director construct

Definition at line 195 of file director.c.

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

◆ director_destruct()

void director_destruct ( Director  director)

director destruct

Definition at line 206 of file director.c.

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

◆ director_free()

void director_free ( Director  this)

director free

Definition at line 229 of file director.c.

Here is the caller graph for this function:

◆ director_free_methods()

static void director_free_methods ( int  methodcnt,
char **  methodname 
)
static

Definition at line 111 of file director.c.

Here is the caller graph for this function:

◆ director_interface_class_free()

void director_interface_class_free ( Director  this,
void *  instance 
)

interface class free

Definition at line 220 of file director.c.

Here is the caller graph for this function:

◆ director_interface_class_new()

void* director_interface_class_new ( Director  this)

interface class new

Definition at line 211 of file director.c.

Here is the caller graph for this function:

◆ director_load_interface_method()

static void director_load_interface_method ( Director  this)
static

Definition at line 141 of file director.c.

Here is the caller graph for this function:

◆ director_load_methods()

static int director_load_methods ( char *  conffile,
char ***  methodname 
)
static

Definition at line 58 of file director.c.

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

◆ director_new()

Director director_new ( char *  builder_lib_name,
char *  builder_interface_conf 
)

director new

Definition at line 152 of file director.c.

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

◆ director_open_library()

static int director_open_library ( Director  this,
char *  builder_lib_name 
)
static

Definition at line 47 of file director.c.

Here is the caller graph for this function: