opsick
|
Opsick configuration tools/functions/structures. More...
Go to the source code of this file.
Classes | |
struct | opsick_config_hostsettings |
struct | opsick_config_adminsettings |
Functions | |
int | opsick_config_load () |
int | opsick_config_get_hostsettings (struct opsick_config_hostsettings *out) |
int | opsick_config_get_adminsettings (struct opsick_config_adminsettings *out) |
Opsick configuration tools/functions/structures.
int opsick_config_get_adminsettings | ( | struct opsick_config_adminsettings * | out | ) |
Gets the current admin settings from the [admin]
section inside the opsick config file (as a copy, so it's read-only).
out | An opsick_config_adminsettings instance into which to write the parsed config values. If retrieval fails in any way, this is left untouched! |
1
if retrieval succeeded; 0
if retrieval failed due to invalid arguments (e.g. NULL
). int opsick_config_get_hostsettings | ( | struct opsick_config_hostsettings * | out | ) |
Gets the current host settings from the [host]
section inside the opsick config file (as a copy, so it's read-only).
out | An opsick_config_hostsettings instance into which to write the parsed config values. If retrieval fails in any way, this is left untouched! |
1
if retrieval succeeded; 0
if retrieval failed due to invalid arguments (e.g. NULL
). int opsick_config_load | ( | ) |
Opens the opsick config table, reads the user-defined preferences/settings in it and loads them into memory.
1
) or not ( 0
).