evidence.h
bool(* fiftyoneDegreesEvidenceIterateMethod)(void *state, fiftyoneDegreesEvidenceKeyValuePair *pair)
Callback method used to iterate evidence key value pairs.
Definition: evidence.h:181
const char * fiftyoneDegreesEvidencePrefixString(fiftyoneDegreesEvidencePrefix prefix)
Get the prefix string of an evidence prefix.
fiftyoneDegreesEvidenceKeyValuePairArray * fiftyoneDegreesEvidenceCreate(uint32_t capacity)
Creates a new evidence array with the capacity requested.
fiftyoneDegreesEvidencePrefix prefix
e.g.
Definition: evidence.h:161
const void * parsedValue
The parsed value which may not be a string.
Definition: evidence.h:164
#define EVIDENCE_KEY_VALUE_MEMBERS
The pseudo evidence.
Definition: evidence.h:167
void fiftyoneDegreesEvidenceFree(fiftyoneDegreesEvidenceKeyValuePairArray *evidence)
Frees the memory used by an evidence array.
uint32_t fiftyoneDegreesEvidenceIterate(fiftyoneDegreesEvidenceKeyValuePairArray *evidence, int prefixes, void *state, fiftyoneDegreesEvidenceIterateMethod callback)
Iterates over the evidence calling the callback method for any values that match the prefixes provide...
fiftyoneDegreesEvidencePrefix prefixEnum
Enum value of prefix name.
Definition: evidence.h:154
Map of prefix strings to prefix enum values.
Definition: evidence.h:151
fiftyoneDegreesEvidenceKeyValuePair * fiftyoneDegreesEvidenceAddString(fiftyoneDegreesEvidenceKeyValuePairArray *evidence, fiftyoneDegreesEvidencePrefix prefix, const char *field, const char *originalValue)
Adds a new entry to the evidence.
Evidence key value pair structure which combines the prefix, key and value.
Definition: evidence.h:160
fiftyoneDegreesEvidencePrefix
Evidence prefixes used to determine the category a piece of evidence belongs to.
Definition: evidence.h:133
The evidence is invalid and should be ignored.
Definition: evidence.h:146
const void * originalValue
The original unparsed value.
Definition: evidence.h:163
fiftyoneDegreesEvidencePrefixMap * fiftyoneDegreesEvidenceMapPrefix(const char *key)
Determines the evidence map prefix from the key.
Array of items of type fiftyoneDegreesEvidenceKeyValuePair used to easily access and track the size o...
Definition: evidence.h:172
A list of IP addresses as a string to be parsed into a IP addresses collection.
Definition: evidence.h:136
Definition: GettingStarted.c:63
const char * prefix
Name of the prefix.
Definition: evidence.h:152
size_t prefixLength
Length of the prefix string.
Definition: evidence.h:153