The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Typedefs | Functions | Variables
global_lib.h File Reference

API for initialising and freeing libraries. More...

#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/util/dl.h>
+ Include dependency graph for global_lib.h:

Go to the source code of this file.

Data Structures

struct  global_lib_autoinst_t
 Structure to define how to initialise libraries with global configuration. More...
 

Macros

#define GLOBAL_LIB_TERMINATOR   &global_lib_terminator
 

Typedefs

typedef void(* lib_free_t) (void)
 
typedef int(* lib_init_t) (void)
 

Functions

int global_lib_auto_instantiate (dl_t const *module, void *symbol, void *user_ctx)
 
void global_lib_autofree (dl_t const *module, void *symbol, void *user_ctx)
 
int global_lib_init (void)
 Initialise the global list of external libraries. More...
 
int global_lib_instantiate (void)
 Walk the tree of libraries and instantiate any which are pending. More...
 

Variables

const global_lib_autoinst_t global_lib_terminator
 

Detailed Description

API for initialising and freeing libraries.

Id
b271f6e85abb757bb60cf80abe0e87362883f3b0

Definition in file global_lib.h.


Data Structure Documentation

◆ global_lib_autoinst_t

struct global_lib_autoinst_t

Structure to define how to initialise libraries with global configuration.

Definition at line 38 of file global_lib.h.

+ Collaboration diagram for global_lib_autoinst_t:
Data Fields
conf_parser_t const * config Config parser for this library's global options.
lib_free_t free Callback to free library.
lib_init_t init Callback to initialise library.
void * inst Module data to parse global config into.
char const * name Name of library and section within global config.

Macro Definition Documentation

◆ GLOBAL_LIB_TERMINATOR

#define GLOBAL_LIB_TERMINATOR   &global_lib_terminator

Definition at line 51 of file global_lib.h.

Typedef Documentation

◆ lib_free_t

typedef void(* lib_free_t) (void)

Definition at line 33 of file global_lib.h.

◆ lib_init_t

typedef int(* lib_init_t) (void)

Definition at line 31 of file global_lib.h.

Function Documentation

◆ global_lib_auto_instantiate()

int global_lib_auto_instantiate ( dl_t const *  module,
void *  symbol,
void *  user_ctx 
)

◆ global_lib_autofree()

void global_lib_autofree ( dl_t const *  module,
void *  symbol,
void *  user_ctx 
)

◆ global_lib_init()

int global_lib_init ( void  )

Initialise the global list of external libraries.

Definition at line 204 of file global_lib.c.

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

◆ global_lib_instantiate()

int global_lib_instantiate ( void  )

Walk the tree of libraries and instantiate any which are pending.

Definition at line 218 of file global_lib.c.

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

Variable Documentation

◆ global_lib_terminator

const global_lib_autoinst_t global_lib_terminator
extern

Definition at line 32 of file global_lib.c.