- Timestamp:
- 2010-07-27T22:04:19Z (14 years ago)
- Branches:
- master
- Children:
- 4255320
- Parents:
- 82ca986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
set.h
r82ca986 rf6f5eee 37 37 from setting invalid values, you can write an evaluator function for 38 38 every setting, which can check a new value and block it by returning 39 NULL, or replace it by returning a new value. See struct set.eval. 40 One thing that is really missing here is additional data for the 41 evaluator. This could be useful to add minimum and maximum values for 42 integers, for example. */ 39 NULL, or replace it by returning a new value. See struct set.eval. */ 43 40 44 41 typedef char *(*set_eval) ( struct set *set, char *value ); … … 66 63 this (yet?). */ 67 64 68 /* Eval: Returns SET_INVALID if the value is incorrect orexactly69 the passed value variable . When returning a corrected value,70 set_setstr() should be able tofree() the returned string! */65 /* Eval: Returns SET_INVALID if the value is incorrect, exactly 66 the passed value variable, or a corrected value. In case of 67 the latter, set_setstr() will free() the returned string! */ 71 68 set_eval eval; 72 69 void *eval_data;
Note: See TracChangeset
for help on using the changeset viewer.