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

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 [] |
| static int child_init | ( | int | rank | ) | [static] |
| int db_flat_bind_api | ( | db_func_t * | dbb | ) |
Definition at line 149 of file flatstore_mod.c.
References db_func::close, flat_db_close(), flat_db_init(), flat_db_insert(), flat_use_table(), db_func::init, db_func::insert, NULL, and db_func::use_table.
| static void mod_destroy | ( | void | ) | [static] |
| 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().
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.
| struct module_exports exports |
Definition at line 97 of file flatstore_mod.c.
| char* flat_delimiter = "|" |
| int flat_flush = 1 |
| int flat_pid |
| 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().
| time_t local_timestamp |
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.
1.5.6