Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
config.h
Go to the documentation of this file.
1 
11 #ifndef _JANUS_CONFIG_H
12 #define _JANUS_CONFIG_H
13 
14 #include <ini_config.h>
15 
16 
18 typedef struct janus_config_item {
20  const char *name;
22  const char *value;
26 
28 typedef struct janus_config_category {
30  const char *name;
36 
38 typedef struct janus_config {
40  const char *name;
45 } janus_config;
46 
47 
51 janus_config *janus_config_parse(const char *config_file);
55 janus_config *janus_config_create(const char *name);
80 janus_config_item *janus_config_get_item_drilldown(janus_config *config, const char *category, const char *name);
88 janus_config_item *janus_config_add_item(janus_config *config, const char *category, const char *name, const char *value);
91 void janus_config_print(janus_config *config);
95 
96 
97 #endif