enum lfds710_misc_validity
Jump to navigation
Jump to search
Source File
└───liblfds710 └───inc └───liblfds710 lfds710_misc.h
Enum
enum lfds710_misc_validity { LFDS710_MISC_VALIDITY_VALID, LFDS710_MISC_VALIDITY_INVALID_LOOP, LFDS710_MISC_VALIDITY_INVALID_MISSING_ELEMENTS, LFDS710_MISC_VALIDITY_INVALID_ADDITIONAL_ELEMENTS, LFDS710_MISC_VALIDITY_INVALID_TEST_DATA, LFDS710_MISC_VALIDITY_INVALID_ORDER };
Values
LFDS710_MISC_VALIDITY_VALID
- Successful validation.
LFDS710_MISC_VALIDITY_INVALID_LOOP
- Validation failed due to a loop existing in the data structure elements (i.e. data corruption, such that a say linked list ended up with one of its elements next pointers pointing to an earlier element).
LFDS710_MISC_VALIDITY_INVALID_MISSING_ELEMENTS
- Validation failed due to the number of elements in the data structure being less than the minimum value specified to the query function by the struct lfds710_misc_validation_info passed to it.
LFDS710_MISC_VALIDITY_INVALID_ADDITIONAL_ELEMENTS
- Validation failed due to the number of elements in the data structure being greater than the maximum value specified to the query function by the struct lfds710_misc_validation_info passed to it.
LFDS710_MISC_VALIDITY_INVALID_TEST_DATA
- Not used by liblfds.
LFDS710_MISC_VALIDITY_INVALID_ORDER
- Not used by liblfds.
Notes
This enum is used by query functions when performing valiation operations to indicate the result of the validation operation. Of the values in the enum, query functions only use the first four (valid, loop, missing, additional). The others are used internally by the test programme, which is wrong :-) and will soon change.