Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.h

    r56244c0 rf3579fd  
    6969           set_setstr() should be able to free() the returned string! */
    7070        set_eval eval;
    71         void *eval_data;
    7271        struct set *next;
    7372} set_t;
    7473
    7574/* Should be pretty clear. */
    76 set_t *set_add( set_t **head, const char *key, const char *def, set_eval eval, void *data );
     75set_t *set_add( set_t **head, char *key, char *def, set_eval eval, void *data );
    7776
    7877/* Returns the raw set_t. Might be useful sometimes. */
    79 set_t *set_find( set_t **head, const char *key );
     78set_t *set_find( set_t **head, char *key );
    8079
    8180/* Returns a pointer to the string value of this setting. Don't modify the
    8281   returned string, and don't free() it! */
    83 G_MODULE_EXPORT char *set_getstr( set_t **head, const char *key );
     82G_MODULE_EXPORT char *set_getstr( set_t **head, char *key );
    8483
    8584/* Get an integer. In previous versions set_getint() was also used to read
    8685   boolean values, but this SHOULD be done with set_getbool() now! */
    87 G_MODULE_EXPORT int set_getint( set_t **head, const char *key );
    88 G_MODULE_EXPORT int set_getbool( set_t **head, const char *key );
     86G_MODULE_EXPORT int set_getint( set_t **head, char *key );
     87G_MODULE_EXPORT int set_getbool( set_t **head, char *key );
    8988
    9089/* set_setstr() strdup()s the given value, so after using this function
    9190   you can free() it, if you want. */
    92 int set_setstr( set_t **head, const char *key, char *value );
    93 int set_setint( set_t **head, const char *key, int value );
    94 void set_del( set_t **head, const char *key );
    95 int set_reset( set_t **head, const char *key );
     91int set_setstr( set_t **head, char *key, char *value );
     92int set_setint( set_t **head, char *key, int value );
     93void set_del( set_t **head, char *key );
     94int set_reset( set_t **head, char *key );
    9695
    9796/* Two very useful generic evaluators. */
    9897char *set_eval_int( set_t *set, char *value );
    9998char *set_eval_bool( set_t *set, char *value );
    100 
    101 /* Another more complicated one. */
    102 char *set_eval_list( set_t *set, char *value );
    10399
    104100/* Some not very generic evaluators that really shouldn't be here... */
Note: See TracChangeset for help on using the changeset viewer.