dbt_tb.c File Reference

#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include "../../mem/shm_mem.h"
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../locking.h"
#include "dbt_util.h"
#include "dbt_lib.h"

Include dependency graph for dbt_tb.c:

Go to the source code of this file.

Functions

int dbt_column_free (dbt_column_p dcp)
dbt_column_p dbt_column_new (char *_s, int _l)
int dbt_row_free (dbt_table_p _dtp, dbt_row_p _drp)
dbt_row_p dbt_row_new (int _nf)
int dbt_row_set_val (dbt_row_p _drp, dbt_val_p _vp, int _t, int _idx)
int dbt_row_update_val (dbt_row_p _drp, dbt_val_p _vp, int _t, int _idx)
int dbt_table_add_row (dbt_table_p _dtp, dbt_row_p _drp)
int dbt_table_check_row (dbt_table_p _dtp, dbt_row_p _drp)
int dbt_table_free (dbt_table_p _dtp)
int dbt_table_free_rows (dbt_table_p _dtp)
dbt_table_p dbt_table_new (const str *_tbname, const str *_dbname, const char *path)
int dbt_table_update_flags (dbt_table_p _dtp, int _f, int _o, int _m)


Function Documentation

int dbt_column_free ( dbt_column_p  dcp  ) 

Definition at line 76 of file dbt_tb.c.

References _dbt_column::name, _str::s, and shm_free.

Referenced by dbt_table_free().

dbt_column_p dbt_column_new ( char *  _s,
int  _l 
)

int dbt_row_free ( dbt_table_p  _dtp,
dbt_row_p  _drp 
)

dbt_row_p dbt_row_new ( int  _nf  ) 

Definition at line 91 of file dbt_tb.c.

References _dbt_row::fields, _dbt_row::next, db_val_t::nul, NULL, _dbt_row::prev, shm_free, and shm_malloc().

Referenced by dbt_insert(), and dbt_load_file().

int dbt_row_set_val ( dbt_row_p  _drp,
dbt_val_p  _vp,
int  _t,
int  _idx 
)

int dbt_row_update_val ( dbt_row_p  _drp,
dbt_val_p  _vp,
int  _t,
int  _idx 
)

int dbt_table_add_row ( dbt_table_p  _dtp,
dbt_row_p  _drp 
)

int dbt_table_check_row ( dbt_table_p  _dtp,
dbt_row_p  _drp 
)

int dbt_table_free ( dbt_table_p  _dtp  ) 

int dbt_table_free_rows ( dbt_table_p  _dtp  ) 

dbt_table_p dbt_table_new ( const str _tbname,
const str _dbname,
const char *  path 
)

Definition at line 142 of file dbt_tb.c.

References DBT_TBFL_ZERO, _str::len, LM_DBG, NULL, _str::s, shm_free, and shm_malloc().

Referenced by dbt_load_file().

int dbt_table_update_flags ( dbt_table_p  _dtp,
int  _f,
int  _o,
int  _m 
)


Generated on Tue May 22 14:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6