The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Macros | Functions | Variables
radconf2json.c File Reference
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/cf_file.h>
#include <freeradius-devel/server/cf_util.h>
#include <freeradius-devel/server/main_config.h>
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/unlang/base.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/syserror.h>
#include <json-c/json.h>
+ Include dependency graph for radconf2json.c:

Go to the source code of this file.

Macros

#define EXIT_WITH_FAILURE
 
#define op_name(_op)   (((unsigned int)(_op) < T_TOKEN_LAST && fr_tokens[(_op)]) ? fr_tokens[(_op)] : "?")
 
#define quote_name(_t)   fr_token_to_enum_str(_t)
 

Functions

static struct json_object * build_comment (CONF_COMMENT const *c)
 
static struct json_object * build_location (char const *filename, int lineno)
 
static struct json_object * build_pair (CONF_PAIR const *cp)
 
static struct json_object * build_section (CONF_SECTION const *cs)
 
int main (int argc, char *argv[])
 
static NEVER_RETURNS void usage (int rcode)
 

Variables

char const * radiusd_version = RADIUSD_VERSION_BUILD("radconf2json")
 

Macro Definition Documentation

◆ EXIT_WITH_FAILURE

#define EXIT_WITH_FAILURE
Value:
do { \
rcode = EXIT_FAILURE; \
goto finish; \
} while (0)

Definition at line 46 of file radconf2json.c.

◆ op_name

#define op_name (   _op)    (((unsigned int)(_op) < T_TOKEN_LAST && fr_tokens[(_op)]) ? fr_tokens[(_op)] : "?")

Definition at line 62 of file radconf2json.c.

◆ quote_name

#define quote_name (   _t)    fr_token_to_enum_str(_t)

Definition at line 61 of file radconf2json.c.

Function Documentation

◆ build_comment()

static struct json_object * build_comment ( CONF_COMMENT const *  c)
static

Definition at line 76 of file radconf2json.c.

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

◆ build_location()

static struct json_object * build_location ( char const *  filename,
int  lineno 
)
static

Definition at line 64 of file radconf2json.c.

+ Here is the caller graph for this function:

◆ build_pair()

static struct json_object * build_pair ( CONF_PAIR const *  cp)
static

Definition at line 88 of file radconf2json.c.

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

◆ build_section()

static struct json_object * build_section ( CONF_SECTION const *  cs)
static

Definition at line 104 of file radconf2json.c.

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

◆ main()

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

Definition at line 146 of file radconf2json.c.

+ Here is the call graph for this function:

◆ usage()

static NEVER_RETURNS void usage ( int  rcode)
static

Definition at line 131 of file radconf2json.c.

Variable Documentation

◆ radiusd_version

char const* radiusd_version = RADIUSD_VERSION_BUILD("radconf2json")

Definition at line 52 of file radconf2json.c.