Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/settings.h @ 1768:d80a9e32ab1a
Refuse to replace existing guards
* Settings_set_guard returns success status
* API v3
* Min API v3
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 13 Mar 2010 20:09:14 +0200 |
parents | 552da310b83e |
children | e6d355e50d7a |
comparison
equal
deleted
inserted
replaced
1767:0e7fe154ab76 | 1768:d80a9e32ab1a |
---|---|
30 typedef gchar *(*settings_guard_t)(const gchar *key, const gchar *new_value); | 30 typedef gchar *(*settings_guard_t)(const gchar *key, const gchar *new_value); |
31 | 31 |
32 void settings_init(void); | 32 void settings_init(void); |
33 int cfg_read_file(char *filename, guint mainfile); | 33 int cfg_read_file(char *filename, guint mainfile); |
34 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); | 34 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); |
35 void settings_set_guard(const gchar *key, settings_guard_t guard); | 35 gboolean settings_set_guard(const gchar *key, settings_guard_t guard); |
36 void settings_del_guard(const gchar *key); | 36 void settings_del_guard(const gchar *key); |
37 void settings_opt_set_raw(const gchar *key, const gchar *value); | 37 void settings_opt_set_raw(const gchar *key, const gchar *value); |
38 void settings_set(guint type, const gchar *key, const gchar *value); | 38 void settings_set(guint type, const gchar *key, const gchar *value); |
39 void settings_del(guint type, const gchar *key); | 39 void settings_del(guint type, const gchar *key); |
40 const gchar *settings_get(guint type, const gchar *key); | 40 const gchar *settings_get(guint type, const gchar *key); |