Wed Jan 8 2020 09:50:24

Asterisk developer's documentation


odbc_obj Struct Reference

ODBC container. More...

#include <res_odbc.h>

Data Fields

SQLHDBC con
 
struct timeval last_used
 
struct {
   struct odbc_obj *   next
 
list
 
ast_mutex_t lock
 
struct odbc_classparent
 
unsigned int tx:1
 
struct 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

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_request_obj2(), ast_odbc_prepare_and_execute(), ast_odbc_smart_execute(), and odbc_obj_connect().

struct { ... } list
struct odbc_obj* next

Definition at line 60 of file res_odbc.h.

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(), aoro2_obj_notx_cb(), ast_odbc_direct_execute(), ast_odbc_prepare_and_execute(), ast_odbc_sanity_check(), data_odbc_provider_handler(), and find_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 used

Is this connection currently in use?

Definition at line 56 of file res_odbc.h.

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


The documentation for this struct was generated from the following file: