enum lfds711_misc_validity

From liblfds.org
Jump to navigation Jump to search

Source File

└───liblfds711
    └───inc
        └───liblfds711
                lfds711_misc.h

Enum

enum lfds711_misc_validity
{
  LFDS711_MISC_VALIDITY_VALID,
  LFDS711_MISC_VALIDITY_INVALID_LOOP,
  LFDS711_MISC_VALIDITY_INVALID_MISSING_ELEMENTS,
  LFDS711_MISC_VALIDITY_INVALID_ADDITIONAL_ELEMENTS,
  LFDS711_MISC_VALIDITY_INVALID_TEST_DATA,
  LFDS711_MISC_VALIDITY_INVALID_ORDER
};

Values

LFDS711_MISC_VALIDITY_VALID

Successful validation.

LFDS711_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).

LFDS711_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 lfds711_misc_validation_info passed to it.

LFDS711_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 lfds711_misc_validation_info passed to it.

LFDS711_MISC_VALIDITY_INVALID_TEST_DATA

Not used by liblfds.

LFDS711_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.

See Also