14 #define INI_KEY_MAX_LEN 128 15 #define INI_VALUE_MAX_LEN 4096 16 #define INI_SECTION_BUCKETS 100 17 #define INI_TUPLE_BUCKETS 50 47 struct ini*
const o_ini);
51 struct ini*
const io_ini);
56 struct ini *
const i_ini,
57 char const * i_section,
62 struct ini*
const io_ini,
int ini_parse(struct ini *const io_ini, char const *i_path, enum ini_options const i_options)
read an INI file
Definition: ini.c:548
char * m_name
Definition: ini.h:26
struct hash m_hash
Definition: ini.h:38
A hash table, which maps keys to values.
char * m_value
Definition: ini.h:27
holds key/value pair data
Definition: ini.h:24
container to hold sections
Definition: ini.h:36
container to hold data for a section
Definition: ini.h:30
char const * ini_lookup(int *const o_found, struct ini *const i_ini, char const *i_section, char const *i_key)
lookup a value
Definition: ini.c:516
void ini_discharge(struct ini *const io_ini)
release resources held by the object
Definition: ini.c:505
char * m_name
Definition: ini.h:32
struct hash m_hash
Definition: ini.h:33
ini_options
place holder for future parsing options
Definition: ini.h:19
hash data structure that holds keys and values
Definition: hash.h:29
int ini_assign(struct ini *const o_ini)
initialize ini object
Definition: ini.c:489