my_con.c File Reference

DB_MYSQL :: Connections

Module: DB_MYSQL :: the MySQL driver for Kamailio. More...

#include "my_con.h"
#include "db_mysql.h"
#include <mysql/mysql_version.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../ut.h"

Include dependency graph for my_con.c:

Go to the source code of this file.

Functions

void db_mysql_free_connection (struct pool_con *con)
 Close the connection and release memory.
struct my_condb_mysql_new_connection (const struct db_id *id)
 Create a new connection structure, open the MySQL connection and set reference count to 1.


Detailed Description

DB_MYSQL :: Connections

Module: DB_MYSQL :: the MySQL driver for Kamailio.

Definition in file my_con.c.


Function Documentation

void db_mysql_free_connection ( struct pool_con con  ) 

Close the connection and release memory.

Definition at line 137 of file my_con.c.

References my_con::con, free_db_id(), my_con::id, pkg_free, and my_con::res.

Referenced by db_mysql_close().

struct my_con* db_mysql_new_connection ( const struct db_id id  )  [read]

Create a new connection structure, open the MySQL connection and set reference count to 1.

Definition at line 43 of file my_con.c.

References my_con::con, db_id::database, db_mysql_auto_reconnect, db_mysql_timeout_interval, db_id::host, my_con::id, LM_DBG, LM_ERR, NULL, db_id::password, pkg_free, pkg_malloc, db_id::port, my_con::ref, my_con::timestamp, db_id::username, and ZSW.

Referenced by db_mysql_init().


Generated on Wed May 23 20:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6