- Timestamp:
- Aug 15, 2009, 7:08:18 PM (16 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
re19eb97 r64735f0 218 218 char *description; /* detailed description */ 219 219 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); 221 221 /* returns 1 if newval is valid */ 222 222 int (*set_fn)(struct _owl_variable *v, const void *newval); … … 232 232 * should make a copy. 233 233 * returns 0 on success. */ 234 const void *(*get_fn)( struct _owl_variable *v);234 const void *(*get_fn)(const struct _owl_variable *v); 235 235 /* returns a reference to the current value. 236 236 * WARNING: this approach is hard to make 237 237 * thread-safe... */ 238 int (*get_tostring_fn)( struct _owl_variable *v,238 int (*get_tostring_fn)(const struct _owl_variable *v, 239 239 char *buf, int bufsize, const void *val); 240 240 /* converts val to a string
Note: See TracChangeset
for help on using the changeset viewer.