Mon Mar 19 11:30:59 2012

Asterisk developer's documentation


odbc_obj Struct Reference

ODBC container. More...

#include <res_odbc.h>


Data Fields

SQLHDBC con
timeval last_used
struct {
   odbc_obj *   next
list
ast_mutex_t lock
odbc_classparent
unsigned int tx:1
odbc_txn_frametxf
unsigned int up:1
unsigned int used:1


Detailed Description

ODBC container.

Definition at line 46 of file res_odbc.h.


Field Documentation

SQLHDBC con

ODBC Connection Handle

Definition at line 48 of file res_odbc.h.

Referenced by _ast_odbc_request_obj2(), acf_transaction_write(), ast_odbc_find_table(), ast_odbc_sanity_check(), commit_exec(), config_odbc_prepare(), custom_prepare(), execute_cb(), generic_execute(), generic_prepare(), load_config(), odbc_obj_connect(), odbc_obj_disconnect(), odbc_release_obj2(), rollback_exec(), and update2_prepare().

struct timeval last_used

Used by idlecheck to determine if the connection should be renegotiated

Definition at line 50 of file res_odbc.h.

Referenced by ast_odbc_smart_execute(), and odbc_obj_connect().

struct { ... } list

ast_mutex_t lock

Definition at line 47 of file res_odbc.h.

Referenced by aoro2_obj_cb(), data_odbc_provider_handler(), handle_cli_odbc_show(), odbc_obj_connect(), odbc_obj_destructor(), and odbc_obj_disconnect().

struct odbc_obj* next

Definition at line 60 of file res_odbc.h.

struct odbc_class* parent

Information about the connection is protected

Definition at line 49 of file res_odbc.h.

Referenced by ast_odbc_backslash_is_escape(), ast_odbc_retrieve_transaction_obj(), ast_odbc_sanity_check(), find_transaction(), odbc_obj_connect(), odbc_obj_destructor(), and odbc_obj_disconnect().

unsigned int tx

Should this connection be unshared, regardless of the class setting?

Definition at line 58 of file res_odbc.h.

Referenced by acf_transaction_write(), aoro2_obj_cb(), ast_odbc_sanity_check(), data_odbc_provider_handler(), find_transaction(), odbc_release_obj2(), and release_transaction().

struct odbc_txn_frame* txf

Reference back to the transaction frame, if applicable

Definition at line 59 of file res_odbc.h.

Referenced by find_transaction(), odbc_release_obj2(), and release_transaction().

unsigned int up

Definition at line 57 of file res_odbc.h.

Referenced by ast_odbc_sanity_check(), data_odbc_provider_handler(), handle_cli_odbc_show(), odbc_obj_connect(), and odbc_obj_disconnect().

unsigned int used

Is this connection currently in use?

Definition at line 56 of file res_odbc.h.

Referenced by aoro2_obj_cb(), data_odbc_provider_handler(), and handle_cli_odbc_show().


The documentation for this struct was generated from the following file:
Generated on Mon Mar 19 11:30:59 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7