- Timestamp:
- 2009-10-11T21:08:26Z (15 years ago)
- Branches:
- master
- Children:
- ec5e57d
- Parents:
- 0f7ee7e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
set.h
r0f7ee7e5 rb74b287 76 76 77 77 /* Returns the raw set_t. Might be useful sometimes. */ 78 set_t *set_find( set_t **head, c har *key );78 set_t *set_find( set_t **head, const char *key ); 79 79 80 80 /* Returns a pointer to the string value of this setting. Don't modify the 81 81 returned string, and don't free() it! */ 82 G_MODULE_EXPORT char *set_getstr( set_t **head, c har *key );82 G_MODULE_EXPORT char *set_getstr( set_t **head, const char *key ); 83 83 84 84 /* Get an integer. In previous versions set_getint() was also used to read 85 85 boolean values, but this SHOULD be done with set_getbool() now! */ 86 G_MODULE_EXPORT int set_getint( set_t **head, c har *key );87 G_MODULE_EXPORT int set_getbool( set_t **head, c har *key );86 G_MODULE_EXPORT int set_getint( set_t **head, const char *key ); 87 G_MODULE_EXPORT int set_getbool( set_t **head, const char *key ); 88 88 89 89 /* set_setstr() strdup()s the given value, so after using this function 90 90 you can free() it, if you want. */ 91 int set_setstr( set_t **head, c har *key, char *value );92 int set_setint( set_t **head, c har *key, int value );93 void set_del( set_t **head, c har *key );94 int set_reset( set_t **head, c har *key );91 int set_setstr( set_t **head, const char *key, char *value ); 92 int set_setint( set_t **head, const char *key, int value ); 93 void set_del( set_t **head, const char *key ); 94 int set_reset( set_t **head, const char *key ); 95 95 96 96 /* Two very useful generic evaluators. */
Note: See TracChangeset
for help on using the changeset viewer.