The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Macros | Typedefs | Functions | Variables
radjson2conf.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/util/atexit.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/syserror.h>
#include <json-c/json.h>
+ Include dependency graph for radjson2conf.c:

Go to the source code of this file.

Macros

#define quote_token(_s)   fr_token_from_quote_enum_str((_s), T_BARE_WORD)
 

Typedefs

typedef int(* build_fn_t) (CONF_SECTION *parent, struct json_object *item)
 

Functions

static int build_comment (CONF_SECTION *parent, struct json_object *item)
 
static int build_item (CONF_SECTION *parent, struct json_object *item)
 
static int build_pair (CONF_SECTION *parent, struct json_object *item)
 
static CONF_SECTIONbuild_root_section (TALLOC_CTX *ctx, struct json_object *root)
 
static int build_section_into (CONF_SECTION *parent, struct json_object *item)
 
static int json_get_int (struct json_object *o, char const *key, int dflt)
 
static void json_get_location (struct json_object *item, char const **filename, int *lineno)
 
static char const * json_get_str (struct json_object *o, char const *key)
 
int main (int argc, char *argv[])
 
static fr_token_t op_token (char const *s)
 
static NEVER_RETURNS void usage (int rcode)
 

Variables

char const * radiusd_version = RADIUSD_VERSION_BUILD("radjson2conf")
 

Macro Definition Documentation

◆ quote_token

#define quote_token (   _s)    fr_token_from_quote_enum_str((_s), T_BARE_WORD)

Definition at line 47 of file radjson2conf.c.

Typedef Documentation

◆ build_fn_t

typedef int(* build_fn_t) (CONF_SECTION *parent, struct json_object *item)

Definition at line 180 of file radjson2conf.c.

Function Documentation

◆ build_comment()

static int build_comment ( CONF_SECTION parent,
struct json_object *  item 
)
static

Definition at line 159 of file radjson2conf.c.

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

◆ build_item()

static int build_item ( CONF_SECTION parent,
struct json_object *  item 
)
static

Definition at line 182 of file radjson2conf.c.

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

◆ build_pair()

static int build_pair ( CONF_SECTION parent,
struct json_object *  item 
)
static

Definition at line 93 of file radjson2conf.c.

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

◆ build_root_section()

static CONF_SECTION * build_root_section ( TALLOC_CTX *  ctx,
struct json_object *  root 
)
static

Definition at line 212 of file radjson2conf.c.

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

◆ build_section_into()

static int build_section_into ( CONF_SECTION parent,
struct json_object *  item 
)
static

Definition at line 126 of file radjson2conf.c.

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

◆ json_get_int()

static int json_get_int ( struct json_object *  o,
char const *  key,
int  dflt 
)
static

Definition at line 63 of file radjson2conf.c.

+ Here is the caller graph for this function:

◆ json_get_location()

static void json_get_location ( struct json_object *  item,
char const **  filename,
int *  lineno 
)
static

Definition at line 75 of file radjson2conf.c.

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

◆ json_get_str()

static char const * json_get_str ( struct json_object *  o,
char const *  key 
)
static

Definition at line 55 of file radjson2conf.c.

+ Here is the caller graph for this function:

◆ main()

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

Definition at line 258 of file radjson2conf.c.

+ Here is the call graph for this function:

◆ op_token()

static fr_token_t op_token ( char const *  s)
inlinestatic

Definition at line 49 of file radjson2conf.c.

+ Here is the caller graph for this function:

◆ usage()

static NEVER_RETURNS void usage ( int  rcode)
static

Definition at line 245 of file radjson2conf.c.

Variable Documentation

◆ radiusd_version

char const* radiusd_version = RADIUSD_VERSION_BUILD("radjson2conf")

Definition at line 36 of file radjson2conf.c.