perlvdbfunc.c File Reference

#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include "perlvdb.h"
#include "perlvdbfunc.h"
#include "../../str.h"

Include dependency graph for perlvdbfunc.c:

Go to the source code of this file.

Functions

int checkobj (SV *obj)
SV * getobj (db_con_t *con)
long IV2int (SV *in)
SV * newvdbobj (const char *cn)
char * parseurl (const char *url)
void perlvdb_db_close (db_con_t *h)
int perlvdb_db_delete (db_con_t *h, db_key_t *k, db_op_t *o, db_val_t *v, int n)
int perlvdb_db_free_result (db_con_t *_h, db_res_t *_r)
db_con_tperlvdb_db_init (const char *url)
int perlvdb_db_insert (db_con_t *h, db_key_t *k, db_val_t *v, int n)
int perlvdb_db_insertreplace (db_con_t *h, db_key_t *k, db_val_t *v, int n, char *insertreplace)
int perlvdb_db_query (db_con_t *h, db_key_t *k, db_op_t *op, db_val_t *v, db_key_t *c, int n, int nc, db_key_t o, db_res_t **r)
int perlvdb_db_replace (db_con_t *h, db_key_t *k, db_val_t *v, int n)
int perlvdb_db_update (db_con_t *h, db_key_t *k, db_op_t *o, db_val_t *v, db_key_t *uk, db_val_t *uv, int n, int un)
int perlvdb_use_table (db_con_t *h, const str *t)


Function Documentation

int checkobj ( SV *  obj  ) 

Definition at line 90 of file perlvdbfunc.c.

References NULL, and PERL_VDB_BASECLASS.

Referenced by perlvdb_db_init().

SV* getobj ( db_con_t con  ) 

long IV2int ( SV *  in  )  [inline]

SV* newvdbobj ( const char *  cn  ) 

Definition at line 67 of file perlvdbfunc.c.

References NULL, PERL_CONSTRUCTOR_NAME, and perlvdb_perlmethod().

Referenced by perlvdb_db_init().

char* parseurl ( const char *  url  ) 

Definition at line 56 of file perlvdbfunc.c.

References NULL.

Referenced by perlvdb_db_init().

void perlvdb_db_close ( db_con_t h  ) 

Definition at line 165 of file perlvdbfunc.c.

References LM_ERR, and pkg_free.

int perlvdb_db_delete ( db_con_t h,
db_key_t k,
db_op_t o,
db_val_t v,
int  n 
)

int perlvdb_db_free_result ( db_con_t _h,
db_res_t _r 
)

db_con_t* perlvdb_db_init ( const char *  url  ) 

Definition at line 108 of file perlvdbfunc.c.

References checkobj(), CON_TAIL, LM_ERR, newvdbobj(), NULL, parseurl(), PERL_VDB_BASECLASS, and pkg_malloc.

int perlvdb_db_insert ( db_con_t h,
db_key_t k,
db_val_t v,
int  n 
)

Definition at line 198 of file perlvdbfunc.c.

References PERL_VDB_INSERTMETHOD, and perlvdb_db_insertreplace().

int perlvdb_db_insertreplace ( db_con_t h,
db_key_t k,
db_val_t v,
int  n,
char *  insertreplace 
)

Definition at line 182 of file perlvdbfunc.c.

References getobj(), IV2int(), NULL, pairs2perlarray(), and perlvdb_perlmethod().

Referenced by perlvdb_db_insert(), and perlvdb_db_replace().

int perlvdb_db_query ( db_con_t h,
db_key_t k,
db_op_t op,
db_val_t v,
db_key_t c,
int  n,
int  nc,
db_key_t  o,
db_res_t **  r 
)

int perlvdb_db_replace ( db_con_t h,
db_key_t k,
db_val_t v,
int  n 
)

Definition at line 205 of file perlvdbfunc.c.

References PERL_VDB_REPLACEMETHOD, and perlvdb_db_insertreplace().

int perlvdb_db_update ( db_con_t h,
db_key_t k,
db_op_t o,
db_val_t v,
db_key_t uk,
db_val_t uv,
int  n,
int  un 
)

int perlvdb_use_table ( db_con_t h,
const str t 
)


Generated on Thu May 24 02:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6