API for initialising and freeing libraries.
More...
#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/util/dl.h>
Go to the source code of this file.
API for initialising and freeing libraries.
- Id
- b271f6e85abb757bb60cf80abe0e87362883f3b0
- Copyright
- 2022 The FreeRADIUS server project
Definition in file global_lib.h.
◆ 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.
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. |
◆ GLOBAL_LIB_TERMINATOR
◆ lib_free_t
typedef void(* lib_free_t) (void) |
◆ lib_init_t
typedef int(* lib_init_t) (void) |
◆ 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.
◆ 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.
◆ global_lib_terminator