The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Macros | Functions | Variables
radmod2json.c File Reference
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/server/dl_module.h>
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/section.h>
#include <freeradius-devel/unlang/call_env.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/dl.h>
#include <freeradius-devel/util/types.h>
#include <json-c/json.h>
#include <dirent.h>
#include <dlfcn.h>
#include <sys/wait.h>
+ Include dependency graph for radmod2json.c:

Go to the source code of this file.

Macros

#define quote_name(_t)   fr_token_to_enum_str(_t)
 

Functions

static struct json_object * build_call_env_flags (call_env_flags_t flags)
 
static struct json_object * build_call_env_rule (call_env_parser_t const *r)
 
static struct json_object * build_call_env_rules (call_env_parser_t const *rules)
 
static struct json_object * build_conf_parser_flags (conf_parser_flags_t flags)
 
static struct json_object * build_conf_parser_rule (conf_parser_t const *r)
 
static struct json_object * build_conf_parser_rules (conf_parser_t const *rules)
 
static struct json_object * build_dflt (char const *value, fr_token_t quote)
 
static struct json_object * build_method_bindings (module_method_binding_t const *bindings)
 
static struct json_object * build_module (char const *bare_name)
 
static int compare_str (void const *a, void const *b)
 
static int discover_modules (TALLOC_CTX *ctx, char const *dir, char ***out_names, size_t *out_count)
 
static int dump_module (struct json_object *modules, char const *bare_name)
 
static struct json_object * func_symbol (void const *fn)
 
static struct json_object * json_section_ident (char const *name)
 
int main (int argc, char *argv[])
 
static NEVER_RETURNS void usage (int rcode)
 

Variables

char const * radiusd_version = RADIUSD_VERSION_BUILD("radmod2json")
 

Macro Definition Documentation

◆ quote_name

#define quote_name (   _t)    fr_token_to_enum_str(_t)

Definition at line 56 of file radmod2json.c.

Function Documentation

◆ build_call_env_flags()

static struct json_object * build_call_env_flags ( call_env_flags_t  flags)
static

Definition at line 145 of file radmod2json.c.

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

◆ build_call_env_rule()

static struct json_object * build_call_env_rule ( call_env_parser_t const *  r)
static

Definition at line 170 of file radmod2json.c.

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

◆ build_call_env_rules()

static struct json_object * build_call_env_rules ( call_env_parser_t const *  rules)
static

Definition at line 215 of file radmod2json.c.

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

◆ build_conf_parser_flags()

static struct json_object * build_conf_parser_flags ( conf_parser_flags_t  flags)
static

Definition at line 93 of file radmod2json.c.

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

◆ build_conf_parser_rule()

static struct json_object * build_conf_parser_rule ( conf_parser_t const *  r)
static

Definition at line 111 of file radmod2json.c.

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

◆ build_conf_parser_rules()

static struct json_object * build_conf_parser_rules ( conf_parser_t const *  rules)
static

Definition at line 133 of file radmod2json.c.

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

◆ build_dflt()

static struct json_object * build_dflt ( char const *  value,
fr_token_t  quote 
)
static

Definition at line 77 of file radmod2json.c.

+ Here is the caller graph for this function:

◆ build_method_bindings()

static struct json_object * build_method_bindings ( module_method_binding_t const *  bindings)
static

Definition at line 227 of file radmod2json.c.

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

◆ build_module()

static struct json_object * build_module ( char const *  bare_name)
static

Definition at line 257 of file radmod2json.c.

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

◆ compare_str()

static int compare_str ( void const *  a,
void const *  b 
)
static

Definition at line 406 of file radmod2json.c.

+ Here is the caller graph for this function:

◆ discover_modules()

static int discover_modules ( TALLOC_CTX *  ctx,
char const *  dir,
char ***  out_names,
size_t out_count 
)
static

Definition at line 369 of file radmod2json.c.

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

◆ dump_module()

static int dump_module ( struct json_object *  modules,
char const *  bare_name 
)
static

Definition at line 279 of file radmod2json.c.

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

◆ func_symbol()

static struct json_object * func_symbol ( void const *  fn)
static

Definition at line 63 of file radmod2json.c.

+ Here is the caller graph for this function:

◆ json_section_ident()

static struct json_object * json_section_ident ( char const *  name)
static

Definition at line 161 of file radmod2json.c.

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 427 of file radmod2json.c.

+ Here is the call graph for this function:

◆ usage()

static NEVER_RETURNS void usage ( int  rcode)
static

Definition at line 411 of file radmod2json.c.

Variable Documentation

◆ radiusd_version

char const* radiusd_version = RADIUSD_VERSION_BUILD("radmod2json")

Definition at line 44 of file radmod2json.c.