The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Functions
sql_fbapi.h File Reference
#include <stdlib.h>
#include <string.h>
#include <ibase.h>
#include <freeradius-devel/server/base.h>
#include "rlm_sql.h"
+ Include dependency graph for sql_fbapi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rlm_sql_firebird_conn_t
 

Macros

#define DEADLOCK_SQL_CODE   -913
 
#define DOWN_SQL_CODE   -902
 
#define IS_ISC_ERROR(status)   ((status[0] == 1) && (status[1] > 0))
 
#define ISC_LONG_FMT   "l"
 
#define ISC_ULONG_FMT   "ul"
 

Functions

int fb_affected_rows (rlm_sql_firebird_conn_t *conn)
 
int fb_close_cursor (rlm_sql_firebird_conn_t *conn)
 
int fb_commit (rlm_sql_firebird_conn_t *conn)
 
int fb_connect (rlm_sql_firebird_conn_t *conn, rlm_sql_config_t const *config)
 
int fb_disconnect (rlm_sql_firebird_conn_t *conn)
 
int fb_error (rlm_sql_firebird_conn_t *conn)
 
int fb_fetch (rlm_sql_firebird_conn_t *conn)
 
int fb_free_result (rlm_sql_firebird_conn_t *conn)
 
void fb_free_sqlda (XSQLDA *sqlda)
 
void fb_free_statement (rlm_sql_firebird_conn_t *conn)
 
int fb_init_socket (rlm_sql_firebird_conn_t *conn)
 
int fb_rollback (rlm_sql_firebird_conn_t *conn)
 
int fb_sql_query (rlm_sql_firebird_conn_t *conn, char const *query)
 
void fb_store_row (rlm_sql_firebird_conn_t *conn)
 

Data Structure Documentation

◆ rlm_sql_firebird_conn_t

struct rlm_sql_firebird_conn_t

Definition at line 44 of file sql_fbapi.h.

+ Collaboration diagram for rlm_sql_firebird_conn_t:
Data Fields
isc_db_handle dbh
char * dpb
int dpb_len
char * error
pthread_mutex_t mut
rlm_sql_row_t row
int row_fcount
int * row_sizes
ISC_LONG sql_code
int sql_dialect
XSQLDA * sqlda_out
int statement_type
ISC_STATUS status[20] Magic interbase status code array (holds multiple error codes used to construct more detailed error messages.
isc_stmt_handle stmt
char * tpb
int tpb_len
isc_tr_handle trh

Macro Definition Documentation

◆ DEADLOCK_SQL_CODE

#define DEADLOCK_SQL_CODE   -913

Definition at line 33 of file sql_fbapi.h.

◆ DOWN_SQL_CODE

#define DOWN_SQL_CODE   -902

Definition at line 34 of file sql_fbapi.h.

◆ IS_ISC_ERROR

#define IS_ISC_ERROR (   status)    ((status[0] == 1) && (status[1] > 0))

Definition at line 31 of file sql_fbapi.h.

◆ ISC_LONG_FMT

#define ISC_LONG_FMT   "l"

Definition at line 40 of file sql_fbapi.h.

◆ ISC_ULONG_FMT

#define ISC_ULONG_FMT   "ul"

Definition at line 41 of file sql_fbapi.h.

Function Documentation

◆ fb_affected_rows()

int fb_affected_rows ( rlm_sql_firebird_conn_t conn)

Definition at line 498 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_close_cursor()

int fb_close_cursor ( rlm_sql_firebird_conn_t conn)

Definition at line 531 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_commit()

int fb_commit ( rlm_sql_firebird_conn_t conn)

Definition at line 558 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_connect()

int fb_connect ( rlm_sql_firebird_conn_t conn,
rlm_sql_config_t const *  config 
)

Definition at line 345 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_disconnect()

int fb_disconnect ( rlm_sql_firebird_conn_t conn)

◆ fb_error()

int fb_error ( rlm_sql_firebird_conn_t conn)

Definition at line 81 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_fetch()

int fb_fetch ( rlm_sql_firebird_conn_t conn)

Definition at line 399 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_free_result()

int fb_free_result ( rlm_sql_firebird_conn_t conn)

◆ fb_free_sqlda()

void fb_free_sqlda ( XSQLDA *  sqlda)

Definition at line 127 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_free_statement()

void fb_free_statement ( rlm_sql_firebird_conn_t conn)

Definition at line 537 of file sql_fbapi.c.

+ Here is the caller graph for this function:

◆ fb_init_socket()

int fb_init_socket ( rlm_sql_firebird_conn_t conn)

Definition at line 322 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_rollback()

int fb_rollback ( rlm_sql_firebird_conn_t conn)

Definition at line 544 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_sql_query()

int fb_sql_query ( rlm_sql_firebird_conn_t conn,
char const *  query 
)

Definition at line 479 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fb_store_row()

void fb_store_row ( rlm_sql_firebird_conn_t conn)

Definition at line 149 of file sql_fbapi.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: