Revision 17152,
749 bytes
checked in by ghudson, 23 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r17151,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #ifndef CONDITIONAL_H |
---|
2 | #define CONDITIONAL_H |
---|
3 | |
---|
4 | BEGIN_GNOME_DECLS |
---|
5 | |
---|
6 | gboolean conditional_parse (const char *conditional, int len); |
---|
7 | |
---|
8 | /* get key, if key doesn't exist append "Conditional" to key and treat |
---|
9 | * value as "{<conditional1>}<value1>{<conditional2>}<value2>...", |
---|
10 | * key should not include "=default", which should be given as argument */ |
---|
11 | char * conditional_get_string (const char *key, |
---|
12 | const char *def, |
---|
13 | gboolean *isdef); |
---|
14 | gboolean conditional_get_bool (const char *key, |
---|
15 | gboolean def, |
---|
16 | gboolean *isdef); |
---|
17 | int conditional_get_int (const char *key, |
---|
18 | int def, |
---|
19 | gboolean *isdef); |
---|
20 | |
---|
21 | /* get key and treat it as a conditional, if missing, it's true */ |
---|
22 | gboolean conditional_true (const char *key); |
---|
23 | |
---|
24 | END_GNOME_DECLS |
---|
25 | |
---|
26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.