flatstore.c File Reference

#include <string.h>
#include <ctype.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "flat_pool.h"
#include "flat_con.h"
#include "flatstore_mod.h"
#include "flatstore.h"

Include dependency graph for flatstore.c:

Go to the source code of this file.

Functions

void flat_db_close (db_con_t *h)
db_con_tflat_db_init (const str *url)
int flat_db_insert (const db_con_t *h, const db_key_t *k, const db_val_t *v, const int n)
int flat_use_table (db_con_t *h, const str *t)
static int parse_flat_url (const str *url, str *path)


Function Documentation

void flat_db_close ( db_con_t h  ) 

Definition at line 127 of file flatstore.c.

References CON_TAIL, flat_release_connection(), LM_ERR, and pkg_free.

Referenced by db_flat_bind_api().

db_con_t* flat_db_init ( const str url  ) 

Definition at line 57 of file flatstore.c.

References LM_ERR, parse_flat_url(), pkg_free, pkg_malloc, and _str::s.

Referenced by db_flat_bind_api().

int flat_db_insert ( const db_con_t h,
const db_key_t k,
const db_val_t v,
const int  n 
)

int flat_use_table ( db_con_t h,
const str t 
)

Definition at line 97 of file flatstore.c.

References CON_TABLE, CON_TAIL, flat_get_connection(), LM_ERR, flat_con::ref, s, and _str::s.

Referenced by db_flat_bind_api().

static int parse_flat_url ( const str url,
str path 
) [static]

Definition at line 40 of file flatstore.c.

References _str::len, LM_ERR, and _str::s.

Referenced by flat_db_init().


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