Snoopy Version 6.0 (Albert)
libconfig.c File Reference
#include "libconfig.h"
#include "grammar.h"
#include "scanner.h"
#include "private.h"
#include <stdlib.h>
#include <ctype.h>
Include dependency graph for libconfig.c:

Defines

#define PATH_TOKENS   ":./"
#define CHUNK_SIZE   10
#define FLOAT_PRECISION   10
#define _new(T)   (T *)calloc(sizeof(T), 1)
#define _delete(P)   free((void *)(P))

Functions

int libconfig_yyparse (void *scanner, struct parse_context *ctx)
int config_read (config_t *config, FILE *stream)
int config_read_file (config_t *config, const char *filename)
void config_destroy (config_t *config)
void config_init (config_t *config)
void config_set_auto_convert (config_t *config, int flag)
int config_get_auto_convert (const config_t *config)
long config_setting_get_int (const config_setting_t *setting)
long long config_setting_get_int64 (const config_setting_t *setting)
int config_setting_lookup_int (const config_setting_t *setting, const char *name, long *value)
int config_setting_lookup_int64 (const config_setting_t *setting, const char *name, long long *value)
int config_setting_lookup_float (const config_setting_t *setting, const char *name, double *value)
int config_setting_lookup_string (const config_setting_t *setting, const char *name, const char **value)
int config_setting_lookup_bool (const config_setting_t *setting, const char *name, int *value)
int config_setting_set_int (config_setting_t *setting, long value)
int config_setting_set_int64 (config_setting_t *setting, long long value)
double config_setting_get_float (const config_setting_t *setting)
int config_setting_set_float (config_setting_t *setting, double value)
int config_setting_get_bool (const config_setting_t *setting)
int config_setting_set_bool (config_setting_t *setting, int value)
const char * config_setting_get_string (const config_setting_t *setting)
int config_setting_set_string (config_setting_t *setting, const char *value)
int config_setting_set_format (config_setting_t *setting, short format)
short config_setting_get_format (config_setting_t *setting)
config_setting_tconfig_lookup (const config_t *config, const char *path)
int config_lookup_string (const config_t *config, const char *path, const char **value)
int config_lookup_int (const config_t *config, const char *path, long *value)
int config_lookup_int64 (const config_t *config, const char *path, long long *value)
int config_lookup_float (const config_t *config, const char *path, double *value)
int config_lookup_bool (const config_t *config, const char *path, int *value)
long config_setting_get_int_elem (const config_setting_t *vector, int idx)
config_setting_tconfig_setting_set_int_elem (config_setting_t *vector, int idx, long value)
long long config_setting_get_int64_elem (const config_setting_t *vector, int idx)
config_setting_tconfig_setting_set_int64_elem (config_setting_t *vector, int idx, long long value)
double config_setting_get_float_elem (const config_setting_t *vector, int idx)
config_setting_tconfig_setting_set_float_elem (config_setting_t *vector, int idx, double value)
int config_setting_get_bool_elem (const config_setting_t *vector, int idx)
config_setting_tconfig_setting_set_bool_elem (config_setting_t *vector, int idx, int value)
const char * config_setting_get_string_elem (const config_setting_t *vector, int idx)
config_setting_tconfig_setting_set_string_elem (config_setting_t *vector, int idx, const char *value)
config_setting_tconfig_setting_get_elem (const config_setting_t *vector, unsigned int idx)
config_setting_tconfig_setting_get_member (const config_setting_t *setting, const char *name)
void config_set_destructor (config_t *config, void(*destructor)(void *))
int config_setting_length (const config_setting_t *setting)
void config_setting_set_hook (config_setting_t *setting, void *hook)
config_setting_tconfig_setting_add (config_setting_t *parent, const char *name, int type)
int config_setting_remove (config_setting_t *parent, const char *name)
int config_setting_remove_elem (config_setting_t *parent, unsigned int idx)
int config_setting_index (const config_setting_t *setting)

Define Documentation

#define _delete (   P)    free((void *)(P))
#define _new (   T)    (T *)calloc(sizeof(T), 1)
#define CHUNK_SIZE   10
#define FLOAT_PRECISION   10
#define PATH_TOKENS   ":./"

Function Documentation

void config_destroy ( config_t config)

Here is the caller graph for this function:

int config_get_auto_convert ( const config_t config)

Here is the caller graph for this function:

void config_init ( config_t config)

Here is the caller graph for this function:

config_setting_t* config_lookup ( const config_t config,
const char *  path 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_lookup_bool ( const config_t config,
const char *  path,
int *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_lookup_float ( const config_t config,
const char *  path,
double *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_lookup_int ( const config_t config,
const char *  path,
long *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_lookup_int64 ( const config_t config,
const char *  path,
long long *  value 
)

Here is the call graph for this function:

int config_lookup_string ( const config_t config,
const char *  path,
const char **  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_read ( config_t config,
FILE *  stream 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_read_file ( config_t config,
const char *  filename 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void config_set_auto_convert ( config_t config,
int  flag 
)
void config_set_destructor ( config_t config,
void(*)(void *)  destructor 
)
config_setting_t* config_setting_add ( config_setting_t parent,
const char *  name,
int  type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_get_bool ( const config_setting_t setting)

Here is the caller graph for this function:

int config_setting_get_bool_elem ( const config_setting_t vector,
int  idx 
)

Here is the call graph for this function:

config_setting_t* config_setting_get_elem ( const config_setting_t vector,
unsigned int  idx 
)

Here is the caller graph for this function:

double config_setting_get_float ( const config_setting_t setting)

Here is the call graph for this function:

Here is the caller graph for this function:

double config_setting_get_float_elem ( const config_setting_t vector,
int  idx 
)

Here is the call graph for this function:

short config_setting_get_format ( config_setting_t setting)
long config_setting_get_int ( const config_setting_t setting)

Here is the caller graph for this function:

long long config_setting_get_int64 ( const config_setting_t setting)

Here is the caller graph for this function:

long long config_setting_get_int64_elem ( const config_setting_t vector,
int  idx 
)

Here is the call graph for this function:

long config_setting_get_int_elem ( const config_setting_t vector,
int  idx 
)

Here is the call graph for this function:

config_setting_t* config_setting_get_member ( const config_setting_t setting,
const char *  name 
)

Here is the caller graph for this function:

const char* config_setting_get_string ( const config_setting_t setting)

Here is the caller graph for this function:

const char* config_setting_get_string_elem ( const config_setting_t vector,
int  idx 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_index ( const config_setting_t setting)

Here is the call graph for this function:

int config_setting_length ( const config_setting_t setting)

Here is the caller graph for this function:

int config_setting_lookup_bool ( const config_setting_t setting,
const char *  name,
int *  value 
)

Here is the call graph for this function:

int config_setting_lookup_float ( const config_setting_t setting,
const char *  name,
double *  value 
)

Here is the call graph for this function:

int config_setting_lookup_int ( const config_setting_t setting,
const char *  name,
long *  value 
)

Here is the call graph for this function:

int config_setting_lookup_int64 ( const config_setting_t setting,
const char *  name,
long long *  value 
)

Here is the call graph for this function:

int config_setting_lookup_string ( const config_setting_t setting,
const char *  name,
const char **  value 
)

Here is the call graph for this function:

int config_setting_remove ( config_setting_t parent,
const char *  name 
)
int config_setting_remove_elem ( config_setting_t parent,
unsigned int  idx 
)
int config_setting_set_bool ( config_setting_t setting,
int  value 
)

Here is the caller graph for this function:

config_setting_t* config_setting_set_bool_elem ( config_setting_t vector,
int  idx,
int  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_set_float ( config_setting_t setting,
double  value 
)

Here is the caller graph for this function:

config_setting_t* config_setting_set_float_elem ( config_setting_t vector,
int  idx,
double  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_set_format ( config_setting_t setting,
short  format 
)

Here is the caller graph for this function:

void config_setting_set_hook ( config_setting_t setting,
void *  hook 
)
int config_setting_set_int ( config_setting_t setting,
long  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_set_int64 ( config_setting_t setting,
long long  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

config_setting_t* config_setting_set_int64_elem ( config_setting_t vector,
int  idx,
long long  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

config_setting_t* config_setting_set_int_elem ( config_setting_t vector,
int  idx,
long  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int config_setting_set_string ( config_setting_t setting,
const char *  value 
)

Here is the caller graph for this function:

config_setting_t* config_setting_set_string_elem ( config_setting_t vector,
int  idx,
const char *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int libconfig_yyparse ( void *  scanner,
struct parse_context ctx 
)

Here is the caller graph for this function: