flatstore_mod.c File Reference

#include "../../sr_module.h"
#include "../../mem/shm_mem.h"
#include "../../db/db.h"
#include "flatstore.h"
#include "flat_mi.h"
#include "flatstore_mod.h"

Include dependency graph for flatstore_mod.c:

Go to the source code of this file.

Functions

static MODULE_VERSION int child_init (int rank)
int db_flat_bind_api (db_func_t *dbb)
static void mod_destroy (void)
static int mod_init (void)

Variables

static cmd_export_t cmds []
struct module_exports exports
char * flat_delimiter = "|"
int flat_flush = 1
int flat_pid
time_t * flat_rotate
time_t local_timestamp
static mi_export_t mi_cmds []
static param_export_t params []


Function Documentation

static int child_init ( int  rank  )  [static]

Definition at line 139 of file flatstore_mod.c.

References flat_pid, and PROC_TCP_MAIN.

int db_flat_bind_api ( db_func_t dbb  ) 

static void mod_destroy ( void   )  [static]

Definition at line 133 of file flatstore_mod.c.

References flat_rotate, and shm_free.

static int mod_init ( void   )  [static]

Definition at line 113 of file flatstore_mod.c.

References flat_delimiter, flat_rotate, LM_ERR, local_timestamp, and shm_malloc().


Variable Documentation

cmd_export_t cmds[] [static]

Initial value:

 {
   {"db_bind_api",    (cmd_function)db_flat_bind_api,      0, 0, 0, 0},
   {0, 0, 0, 0, 0, 0}
}

Definition at line 75 of file flatstore_mod.c.

Definition at line 97 of file flatstore_mod.c.

char* flat_delimiter = "|"

Definition at line 61 of file flatstore_mod.c.

Referenced by flat_db_insert(), and mod_init().

int flat_flush = 1

Definition at line 55 of file flatstore_mod.c.

Referenced by flat_db_insert().

int flat_pid

Definition at line 50 of file flatstore_mod.c.

Referenced by child_init(), and get_name().

time_t* flat_rotate

Definition at line 68 of file flatstore_mod.c.

Referenced by flat_db_insert(), mi_flat_rotate_cmd(), mod_destroy(), and mod_init().

Definition at line 70 of file flatstore_mod.c.

Referenced by flat_db_insert(), and mod_init().

mi_export_t mi_cmds[] [static]

Initial value:

 {
   { MI_FLAT_ROTATE, mi_flat_rotate_cmd,   MI_NO_INPUT_FLAG,  0,  0 },
   { 0, 0, 0, 0, 0}
}

Definition at line 92 of file flatstore_mod.c.

param_export_t params[] [static]

Initial value:

 {
   {"flush", INT_PARAM, &flat_flush},
   {0, 0, 0}
}

Definition at line 83 of file flatstore_mod.c.


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6