Mercurial > ~mikael > mcabber > hg
annotate 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 |
rev | line source |
---|---|
279 | 1 #ifndef __SETTINGS_H__ |
2 #define __SETTINGS_H__ 1 | |
3 | |
4 #include <glib.h> | |
5 | |
6 #define SETTINGS_TYPE_OPTION 1 | |
7 #define SETTINGS_TYPE_ALIAS 2 | |
8 #define SETTINGS_TYPE_BINDING 3 | |
9 | |
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) | |
12 | |
281
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
13 guint parse_assigment(gchar *assignment, |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
14 const gchar **pkey, const gchar **pval); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
15 void settings_set(guint type, const gchar *key, const gchar *value); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
16 void settings_del(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
17 const gchar *settings_get(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
18 int settings_get_int(guint type, const gchar *key); |
279 | 19 |
20 #endif /* __SETTINGS_H__ */ | |
21 |