Changeset 64735f0 for owl.h


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
075ba92
Parents:
1077891a
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 00:34:07)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for owl_variable *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    re19eb97 r64735f0  
    218218  char *description;            /* detailed description */
    219219  void *val;                    /* current value */
    220   int  (*validate_fn)(struct _owl_variable *v, const void *newval);
     220  int  (*validate_fn)(const struct _owl_variable *v, const void *newval);
    221221                                /* returns 1 if newval is valid */
    222222  int  (*set_fn)(struct _owl_variable *v, const void *newval);
     
    232232                                 * should make a copy.
    233233                                 * returns 0 on success. */
    234   const void *(*get_fn)(struct _owl_variable *v);
     234  const void *(*get_fn)(const struct _owl_variable *v);
    235235                                /* returns a reference to the current value.
    236236                                 * WARNING:  this approach is hard to make
    237237                                 * thread-safe... */
    238   int  (*get_tostring_fn)(struct _owl_variable *v,
     238  int  (*get_tostring_fn)(const struct _owl_variable *v,
    239239                          char *buf, int bufsize, const void *val);
    240240                                /* converts val to a string
Note: See TracChangeset for help on using the changeset viewer.