conf

conf

Synopsis

#define             GSQL_CONF_ROOT_KEY
#define             GSQL_CONF_ENGINES_ROOT_KEY
#define             GSQL_CONF_PLUGINS_ROOT_KEY
void                (*GSQLConfNotifyFunc)               (gpointer userdata);
void                gsql_conf_init                      ();
gint                gsql_conf_value_get_int             (gchar *path);
gchar*              gsql_conf_value_get_string          (gchar *path);
gchar*              gsql_conf_value_get_string_at_root  (gchar *path);
gboolean            gsql_conf_value_get_boolean         (gchar *path);
void                gsql_conf_value_set_int             (gchar *path,
                                                         gint value);
void                gsql_conf_value_set_string          (gchar *path,
                                                         gchar *value);
void                gsql_conf_value_set_boolean         (gchar *path,
                                                         gboolean value);
void                gsql_conf_nitify_add                (gchar *path,
                                                         GSQLConfNotifyFunc func,
                                                         gpointer userdata);

Description

Details

GSQL_CONF_ROOT_KEY

#define GSQL_CONF_ROOT_KEY "/apps/gsql"


GSQL_CONF_ENGINES_ROOT_KEY

#define GSQL_CONF_ENGINES_ROOT_KEY GSQL_CONF_ROOT_KEY "/engines"


GSQL_CONF_PLUGINS_ROOT_KEY

#define GSQL_CONF_PLUGINS_ROOT_KEY GSQL_CONF_ROOT_KEY "/plugins"


GSQLConfNotifyFunc ()

void                (*GSQLConfNotifyFunc)               (gpointer userdata);

userdata :


gsql_conf_init ()

void                gsql_conf_init                      ();


gsql_conf_value_get_int ()

gint                gsql_conf_value_get_int             (gchar *path);

Get the value by path

path :

path to the key

Returns :

int value

gsql_conf_value_get_string ()

gchar*              gsql_conf_value_get_string          (gchar *path);

Get the value by path

path :

path to the key

Returns :

string value. returned value should be freed by g_free()

gsql_conf_value_get_string_at_root ()

gchar*              gsql_conf_value_get_string_at_root  (gchar *path);

path :

Returns :


gsql_conf_value_get_boolean ()

gboolean            gsql_conf_value_get_boolean         (gchar *path);

path :

Returns :


gsql_conf_value_set_int ()

void                gsql_conf_value_set_int             (gchar *path,
                                                         gint value);

path :

value :


gsql_conf_value_set_string ()

void                gsql_conf_value_set_string          (gchar *path,
                                                         gchar *value);

path :

value :


gsql_conf_value_set_boolean ()

void                gsql_conf_value_set_boolean         (gchar *path,
                                                         gboolean value);

path :

value :


gsql_conf_nitify_add ()

void                gsql_conf_nitify_add                (gchar *path,
                                                         GSQLConfNotifyFunc func,
                                                         gpointer userdata);

path :

func :

userdata :