Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.h @ 1192:7b8765c10abb
New command: /source
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 21 Apr 2007 12:06:13 +0200 |
parents | 5be2408a6534 |
children | 6f602d3270a4 |
comparison
equal
deleted
inserted
replaced
1191:b2ed413d8f3d | 1192:7b8765c10abb |
---|---|
22 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) | 22 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) |
23 | 23 |
24 #define mkcmdstr(cmd) COMMAND_CHARSTR cmd | 24 #define mkcmdstr(cmd) COMMAND_CHARSTR cmd |
25 | 25 |
26 void settings_init(void); | 26 void settings_init(void); |
27 int cfg_read_file(char *filename); | 27 int cfg_read_file(char *filename, guint mainfile); |
28 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); | 28 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); |
29 void settings_set(guint type, const gchar *key, const gchar *value); | 29 void settings_set(guint type, const gchar *key, const gchar *value); |
30 void settings_del(guint type, const gchar *key); | 30 void settings_del(guint type, const gchar *key); |
31 const gchar *settings_get(guint type, const gchar *key); | 31 const gchar *settings_get(guint type, const gchar *key); |
32 int settings_get_int(guint type, const gchar *key); | 32 int settings_get_int(guint type, const gchar *key); |