Mercurial > ~mikael > mcabber > hg
annotate mcabber/src/settings.h @ 498:879ffddc13b0
Suppress a compilation warning
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 10 Oct 2005 23:00:00 +0200 |
parents | 33b8e801ffa6 |
children | cc8c969ab6e5 |
rev | line source |
---|---|
279 | 1 #ifndef __SETTINGS_H__ |
2 #define __SETTINGS_H__ 1 | |
3 | |
498
879ffddc13b0
Suppress a compilation warning
Mikael Berthe <mikael@lilotux.net>
parents:
364
diff
changeset
|
4 #include <ctype.h> |
279 | 5 #include <glib.h> |
6 | |
294
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
7 #include "jabglue.h" |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
8 |
498
879ffddc13b0
Suppress a compilation warning
Mikael Berthe <mikael@lilotux.net>
parents:
364
diff
changeset
|
9 #ifndef isblank |
292
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
10 # define isblank(c) ((c) == 0x20 || (c) == 0x09) |
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
11 #endif |
96917f04c841
Define isblank() when C99 is not used
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
12 |
294
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
13 |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
14 /* Default status messages */ |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
15 #define MSG_AVAIL "I'm here!" |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
16 #define MSG_FREE "Free for chat" |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
17 #define MSG_DND "Busy" |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
18 #define MSG_NOTAVAIL "Not available" |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
19 #define MSG_AWAY "Away" |
343
998b63be6e6b
Change default auto-away status message
Mikael Berthe <mikael@lilotux.net>
parents:
341
diff
changeset
|
20 #define MSG_AUTOAWAY "Auto away status (idle)" |
294
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
21 |
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
22 |
279 | 23 #define SETTINGS_TYPE_OPTION 1 |
24 #define SETTINGS_TYPE_ALIAS 2 | |
25 #define SETTINGS_TYPE_BINDING 3 | |
26 | |
27 #define settings_opt_get(k) settings_get(SETTINGS_TYPE_OPTION, k) | |
28 #define settings_opt_get_int(k) settings_get_int(SETTINGS_TYPE_OPTION, k) | |
29 | |
341
dea407d53fe6
Improve configuration file reading
Mikael Berthe <mikael@lilotux.net>
parents:
294
diff
changeset
|
30 int cfg_read_file(char *filename); |
281
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
31 guint parse_assigment(gchar *assignment, |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
32 const gchar **pkey, const gchar **pval); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
33 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
|
34 void settings_del(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
35 const gchar *settings_get(guint type, const gchar *key); |
f562b9af2de7
Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents:
280
diff
changeset
|
36 int settings_get_int(guint type, const gchar *key); |
294
871e53769084
Allow one status message per Jabber status
Mikael Berthe <mikael@lilotux.net>
parents:
292
diff
changeset
|
37 const gchar *settings_get_status_msg(enum imstatus status); |
279 | 38 |
288 | 39 const gchar *isbound(int key); |
40 | |
279 | 41 #endif /* __SETTINGS_H__ */ |
42 |