The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Functions | Variables
rlm_sql_null.c File Reference
#include <freeradius-devel/server/base.h>
#include "rlm_sql.h"
#include "rlm_sql_trunk.h"
+ Include dependency graph for rlm_sql_null.c:

Go to the source code of this file.

Functions

static void _sql_connection_close (UNUSED fr_event_list_t *el, UNUSED void *h, UNUSED void *uctx)
 
static connection_state_t _sql_connection_init (void **h, UNUSED connection_t *conn, UNUSED void *uctx)
 
static int sql_affected_rows (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static size_t sql_error (UNUSED TALLOC_CTX *ctx, UNUSED sql_log_entry_t out[], UNUSED size_t outlen, UNUSED fr_sql_query_t *query_ctx)
 Stub function for retrieving errors, should not be called.
 
static unlang_action_t sql_fetch_row (rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
 
static sql_rcode_t sql_finish_query (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static sql_rcode_t sql_free_result (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static int sql_num_rows (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
SQL_TRUNK_CONNECTION_ALLOC static SQL_QUERY_RESUME void sql_trunk_request_mux (UNUSED fr_event_list_t *el, trunk_connection_t *tconn, UNUSED connection_t *conn, UNUSED void *uctx)
 

Variables

static const void * fake = "fake"
 
rlm_sql_driver_t rlm_sql_null
 

Function Documentation

◆ _sql_connection_close()

static void _sql_connection_close ( UNUSED fr_event_list_t el,
UNUSED void *  h,
UNUSED void *  uctx 
)
static

Definition at line 32 of file rlm_sql_null.c.

◆ _sql_connection_init()

static connection_state_t _sql_connection_init ( void **  h,
UNUSED connection_t conn,
UNUSED void *  uctx 
)
static

Definition at line 38 of file rlm_sql_null.c.

◆ sql_affected_rows()

static int sql_affected_rows ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 101 of file rlm_sql_null.c.

◆ sql_error()

static size_t sql_error ( UNUSED TALLOC_CTX *  ctx,
UNUSED sql_log_entry_t  out[],
UNUSED size_t  outlen,
UNUSED fr_sql_query_t query_ctx 
)
static

Stub function for retrieving errors, should not be called.

Definition at line 90 of file rlm_sql_null.c.

◆ sql_fetch_row()

static unlang_action_t sql_fetch_row ( rlm_rcode_t p_result,
UNUSED int *  priority,
UNUSED request_t request,
void *  uctx 
)
static

Definition at line 74 of file rlm_sql_null.c.

◆ sql_finish_query()

static sql_rcode_t sql_finish_query ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 96 of file rlm_sql_null.c.

◆ sql_free_result()

static sql_rcode_t sql_free_result ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 82 of file rlm_sql_null.c.

◆ sql_num_rows()

static int sql_num_rows ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 69 of file rlm_sql_null.c.

◆ sql_trunk_request_mux()

SQL_TRUNK_CONNECTION_ALLOC static SQL_QUERY_RESUME void sql_trunk_request_mux ( UNUSED fr_event_list_t el,
trunk_connection_t tconn,
UNUSED connection_t conn,
UNUSED void *  uctx 
)
static

Definition at line 49 of file rlm_sql_null.c.

+ Here is the call graph for this function:

Variable Documentation

◆ fake

const void* fake = "fake"
static

Definition at line 30 of file rlm_sql_null.c.

◆ rlm_sql_null

rlm_sql_driver_t rlm_sql_null
Initial value:
= {
.common = {
.name = "sql_null"
},
.sql_query_resume = sql_query_resume,
.sql_select_query_resume = sql_query_resume,
.sql_num_rows = sql_num_rows,
.sql_fetch_row = sql_fetch_row,
.sql_free_result = sql_free_result,
.sql_error = sql_error,
.sql_finish_query = sql_finish_query,
.sql_finish_select_query = sql_finish_query,
.sql_affected_rows = sql_affected_rows,
.trunk_io_funcs = {
.connection_alloc = sql_trunk_connection_alloc,
.request_mux = sql_trunk_request_mux,
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition dl_module.h:63
static unlang_action_t sql_fetch_row(rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
static int sql_affected_rows(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
static int sql_num_rows(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
static sql_rcode_t sql_finish_query(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
static size_t sql_error(UNUSED TALLOC_CTX *ctx, UNUSED sql_log_entry_t out[], UNUSED size_t outlen, UNUSED fr_sql_query_t *query_ctx)
Stub function for retrieving errors, should not be called.
static sql_rcode_t sql_free_result(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
SQL_TRUNK_CONNECTION_ALLOC static SQL_QUERY_RESUME void sql_trunk_request_mux(UNUSED fr_event_list_t *el, trunk_connection_t *tconn, UNUSED connection_t *conn, UNUSED void *uctx)

Definition at line 108 of file rlm_sql_null.c.