1 /* ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS 2 3 Lookups from association list are not case-sensitive. 4 5 */ 6 7 #ifndef HTASSOC_H 8 #define HTASSOC_H 9 10 #include <HTList.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 typedef HTList HTAssocList; 16 17 typedef struct { 18 char *name; 19 char *value; 20 } HTAssoc; 21 22 extern HTAssocList *HTAssocList_new(void); 23 extern void HTAssocList_delete(HTAssocList *alist); 24 25 extern void HTAssocList_add(HTAssocList *alist, 26 const char *name, 27 const char *value); 28 29 extern char *HTAssocList_lookup(HTAssocList *alist, 30 const char *name); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 #endif /* not HTASSOC_H */ 36