Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.h @ 281:f562b9af2de7
Add "const" specifier in prototypes
It's easier then to know when variables are read-only (and shouldn't
be freed).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 06 Jul 2005 22:18:05 +0100 |
parents | 68ce34b4243b |
children | 1eea0fa0955e |
comparison
equal
deleted
inserted
replaced
280:68ce34b4243b | 281:f562b9af2de7 |
---|---|
8 #define SETTINGS_TYPE_BINDING 3 | 8 #define SETTINGS_TYPE_BINDING 3 |
9 | 9 |
10 #define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k) | 10 #define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k) |
11 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) | 11 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) |
12 | 12 |
13 guint parse_assigment(gchar *assignment, gchar **pkey, gchar **pval); | 13 guint parse_assigment(gchar *assignment, |
14 void settings_set(guint type, gchar *key, gchar *value); | 14 const gchar **pkey, const gchar **pval); |
15 void settings_del(guint type, gchar *key); | 15 void settings_set(guint type, const gchar *key, const gchar *value); |
16 gchar *settings_get(guint type, gchar *key); | 16 void settings_del(guint type, const gchar *key); |
17 int settings_get_int(guint type, gchar *key); | 17 const gchar *settings_get(guint type, const gchar *key); |
18 int settings_get_int(guint type, const gchar *key); | |
18 | 19 |
19 #endif /* __SETTINGS_H__ */ | 20 #endif /* __SETTINGS_H__ */ |
20 | 21 |