The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions
log.h File Reference

Function prototypes and datatypes for the REST (HTTP) transport. More...

#include <freeradius-devel/server/request.h>
#include <unbound.h>
+ Include dependency graph for log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unbound_log_t
 Logging state. More...
 

Functions

int unbound_log_init (TALLOC_CTX *ctx, unbound_log_t **u_log_out, struct ub_ctx *ub)
 Setup an unbound context for log, and initialise a u_log struct. More...
 
int unbound_log_to_global (unbound_log_t *u_log, struct ub_ctx *ub)
 Switch thread-specific libunbound output to the global log. More...
 
int unbound_log_to_request (unbound_log_t *u_log, struct ub_ctx *ub, request_t *request)
 Switch thread-specific libunbound output to the request log destination(s) More...
 

Detailed Description

Function prototypes and datatypes for the REST (HTTP) transport.

Id
2aed20f8305084395e316ccd319a841ca261ac9e

Definition in file log.h.


Data Structure Documentation

◆ unbound_log_t

struct unbound_log_t

Logging state.

Definition at line 44 of file log.h.

+ Collaboration diagram for unbound_log_t:
Data Fields
request_t * request Request we're logging to.
FILE * stream Stream we use to interface with the FreeRADIUS logging functions.

Function Documentation

◆ unbound_log_init()

int unbound_log_init ( TALLOC_CTX *  ctx,
unbound_log_t **  u_log_out,
struct ub_ctx *  ub 
)

Setup an unbound context for log, and initialise a u_log struct.

Definition at line 129 of file log.c.

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

◆ unbound_log_to_global()

int unbound_log_to_global ( unbound_log_t u_log,
struct ub_ctx *  ub 
)

Switch thread-specific libunbound output to the global log.

Must be called before a function that previously called unbound_log_to_request yields, or can no longer be certain that the request_t * set in t->request is still valid.

Definition at line 114 of file log.c.

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

◆ unbound_log_to_request()

int unbound_log_to_request ( unbound_log_t u_log,
struct ub_ctx *  ub,
request_t request 
)

Switch thread-specific libunbound output to the request log destination(s)

Definition at line 102 of file log.c.

+ Here is the call graph for this function: