enum lfds700_misc_validity

From liblfds.org
Revision as of 04:12, 14 December 2015 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:enum lfds700_misc_validity}} ==Source File== └───liblfds700 └───inc └───liblfds700 lfds700_misc.h ==Enu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds700
    └───inc
        └───liblfds700
                lfds700_misc.h

Enum

enum lfds700_misc_validity
{
  LFDS700_MISC_VALIDITY_VALID,
  LFDS700_MISC_VALIDITY_INVALID_LOOP,
  LFDS700_MISC_VALIDITY_INVALID_MISSING_ELEMENTS,
  LFDS700_MISC_VALIDITY_INVALID_ADDITIONAL_ELEMENTS,
  LFDS700_MISC_VALIDITY_INVALID_TEST_DATA,
  LFDS700_MISC_VALIDITY_INVALID_ORDER
};

Values

LFDS700_MISC_VALIDITY_VALID

Successful validation.

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

LFDS700_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 lfds700_misc_validation_info passed to it.

LFDS700_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 lfds700_misc_validation_info passed to it.

LFDS700_MISC_VALIDITY_INVALID_TEST_DATA

Not used by liblfds.

LFDS700_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