DTS Application Library
0.2.3
Application library containing referenced objects and interfaces to common libraries
|
INI style config file interface. More...
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "include/dtsapp.h"
Go to the source code of this file.
Data Structures | |
struct | config_category |
Configuration file category. More... | |
struct | config_file |
Config file. More... | |
Functions | |
void | unrefconfigfiles (void) |
Empty out and unreference config files. More... | |
int | process_config (const char *configname, const char *configfile) |
Process a configfile into buckets. More... | |
struct bucket_list * | get_config_file (const char *configname) |
Returns the catergories bucket for a config file. More... | |
struct bucket_list * | get_config_category (const char *configname, const char *category) |
Return a single category. More... | |
struct bucket_list * | get_category_next (struct bucket_loop *cloop, char *name, int len) |
Iterate through categories returning the entries bucket. More... | |
struct bucket_loop * | get_category_loop (const char *configname) |
Return a bucket loop to allow iterating over categories. More... | |
void | config_entry_callback (struct bucket_list *entries, config_entrycb entry_cb) |
Callback Wraper that iterates through all items calling a callback for each item. More... | |
void | config_cat_callback (struct bucket_list *categories, config_catcb cat_cb) |
Callback wrapper that iterates through categories calling a callback on each category. More... | |
void | config_file_callback (config_filecb file_cb) |
Callback wrapper to iterate over all configfiles calling a callback on each file. More... | |
struct config_entry * | get_config_entry (struct bucket_list *categories, const char *item) |
Find the entry in a config file. More... | |
INI style config file interface.
Definition in file config.c.