18#ifndef _SPHONE_CONF_H_
19#define _SPHONE_CONF_H_
43 const bool defaultval, gpointer keyfileptr);
55 const gint defaultval, gpointer keyfileptr);
67 gsize *length, gpointer keyfileptr);
79 const gchar *defaultval, gpointer keyfileptr);
91 gsize *length, gpointer keyfileptr);
111void sci_conf_free_conf_file(gpointer keyfileptr);
115bool sci_conf_init(
const char* fileName,
const char* data,
size_t length);
116void sci_conf_exit(
void);
bool sci_conf_get_bool(const gchar *group, const gchar *key, const bool defaultval, gpointer keyfileptr)
Get a boolean configuration value.
gint * sci_conf_get_int_list(const gchar *group, const gchar *key, gsize *length, gpointer keyfileptr)
Get an integer list configuration value.
gpointer sci_conf_read_conf_bytes(const char *data, size_t length)
Read configuration from raw memory.
gpointer sci_conf_read_conf_file(const gchar *const conffile)
Read configuration file.
gchar ** sci_conf_get_string_list(const gchar *group, const gchar *key, gsize *length, gpointer keyfileptr)
Get a string list configuration value.
gchar * sci_conf_get_string(const gchar *group, const gchar *key, const gchar *defaultval, gpointer keyfileptr)
Get a string configuration value.
gint sci_conf_get_int(const gchar *group, const gchar *key, const gint defaultval, gpointer keyfileptr)
Get an integer configuration value.