Changeset b74b287 for set.h


Ignore:
Timestamp:
2009-10-11T21:08:26Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ec5e57d
Parents:
0f7ee7e5
Message:

Fixed account cleanup (use remove, not destroy) and now using user's account
settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.h

    r0f7ee7e5 rb74b287  
    7676
    7777/* Returns the raw set_t. Might be useful sometimes. */
    78 set_t *set_find( set_t **head, char *key );
     78set_t *set_find( set_t **head, const char *key );
    7979
    8080/* Returns a pointer to the string value of this setting. Don't modify the
    8181   returned string, and don't free() it! */
    82 G_MODULE_EXPORT char *set_getstr( set_t **head, char *key );
     82G_MODULE_EXPORT char *set_getstr( set_t **head, const char *key );
    8383
    8484/* Get an integer. In previous versions set_getint() was also used to read
    8585   boolean values, but this SHOULD be done with set_getbool() now! */
    86 G_MODULE_EXPORT int set_getint( set_t **head, char *key );
    87 G_MODULE_EXPORT int set_getbool( set_t **head, char *key );
     86G_MODULE_EXPORT int set_getint( set_t **head, const char *key );
     87G_MODULE_EXPORT int set_getbool( set_t **head, const char *key );
    8888
    8989/* set_setstr() strdup()s the given value, so after using this function
    9090   you can free() it, if you want. */
    91 int set_setstr( set_t **head, char *key, char *value );
    92 int set_setint( set_t **head, char *key, int value );
    93 void set_del( set_t **head, char *key );
    94 int set_reset( set_t **head, char *key );
     91int set_setstr( set_t **head, const char *key, char *value );
     92int set_setint( set_t **head, const char *key, int value );
     93void set_del( set_t **head, const char *key );
     94int set_reset( set_t **head, const char *key );
    9595
    9696/* Two very useful generic evaluators. */
Note: See TracChangeset for help on using the changeset viewer.