IDZEBRA  2.1.2
Data Structures | Functions
recctrl.c File Reference
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <direntz.h>
#include <idzebra/util.h>
#include <idzebra/recctrl.h>

Go to the source code of this file.

Data Structures

struct  recTypeClass
 
struct  recTypeInstance
 
struct  recTypes
 

Functions

static void recTypeClass_add (struct recTypeClass **rts, RecType *rt, NMEM nmem, void *module_handle)
 
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
 
static void load_from_dir (RecTypeClass *rts, NMEM nmem, const char *dirname)
 
void recTypeClass_load_modules (RecTypeClass *rts, NMEM nmem, const char *module_path)
 
void recTypeClass_info (RecTypeClass rtc, void *cd, void(*cb)(void *cd, const char *s))
 
void recTypeClass_destroy (RecTypeClass rtc)
 
RecTypes recTypes_init (RecTypeClass rtc, data1_handle dh)
 
void recTypes_destroy (RecTypes rts)
 
RecType recType_byName (RecTypes rts, Res res, const char *name, void **clientDataP)
 

Function Documentation

static void load_from_dir ( RecTypeClass rts,
NMEM  nmem,
const char *  dirname 
)
static

Definition at line 130 of file recctrl.c.

References FILENAME_MAX, and recTypeClass_add().

Referenced by recTypeClass_load_modules().

RecType recType_byName ( RecTypes  rts,
Res  res,
const char *  name,
void **  clientDataP 
)
static void recTypeClass_add ( struct recTypeClass **  rts,
RecType rt,
NMEM  nmem,
void *  module_handle 
)
static
RecTypeClass recTypeClass_create ( Res  res,
NMEM  nmem 
)

Definition at line 57 of file recctrl.c.

References recTypeClass_add().

Referenced by zebra_start_res().

void recTypeClass_destroy ( RecTypeClass  rtc)

Definition at line 223 of file recctrl.c.

References recTypeClass::module_handle, and recTypeClass::next.

Referenced by zebra_stop().

void recTypeClass_info ( RecTypeClass  rtc,
void *  cd,
void(*)(void *cd, const char *s)  cb 
)

Definition at line 216 of file recctrl.c.

References recType::name, recTypeClass::next, and recTypeClass::recType.

Referenced by zebra_filter_info().

void recTypeClass_load_modules ( RecTypeClass rts,
NMEM  nmem,
const char *  module_path 
)

Definition at line 177 of file recctrl.c.

References FILENAME_MAX, and load_from_dir().

Referenced by zebra_start_res().

void recTypes_destroy ( RecTypes  rts)
RecTypes recTypes_init ( RecTypeClass  rtc,
data1_handle  dh 
)