6 * - Key/Value pair parsing
8 #ifndef _ACESS_KEYVALUE_H_
9 #define _ACESS_KEYVALUE_H_
11 typedef struct sKeyVal_ParseRules tKeyVal_ParseRules;
12 typedef struct sKeyVal_int_Rule tKeyVal_int_Rule;
13 typedef void (*tKeyVal_UnkCb)(char *String);
14 typedef void (*tKeyVal_KeyCb)(const char *Key, char *Value);
17 * \brief Handling rule for a key
19 struct sKeyVal_int_Rule
22 const char *Type; // Acess printf format, with 'F' being a tKeyVal_KeyCb
26 struct sKeyVal_ParseRules
29 * \brief Function to call when no match is found
31 tKeyVal_UnkCb Unknown;
32 tKeyVal_int_Rule Rules[];
36 * \brief Parse a NULL terminated list of strings as Key/Value pairs
37 * \param Rules Parsing rules
38 * \param Strings Input string list
40 extern int KeyVal_ParseNull(tKeyVal_ParseRules *Rules, char **Strings);