2010-03-08 04:55:21 -06:00
|
|
|
/* ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS
|
2013-03-09 18:59:42 -06:00
|
|
|
|
2010-03-08 04:55:21 -06:00
|
|
|
Lookups from assosiation list are not case-sensitive.
|
2013-03-09 18:59:42 -06:00
|
|
|
|
2010-03-08 04:55:21 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HTASSOC_H
|
|
|
|
#define HTASSOC_H
|
|
|
|
|
|
|
|
#include "HTUtils.h"
|
|
|
|
#include "HTList.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SHORT_NAMES
|
|
|
|
#define HTAL_new HTAssocList_new
|
|
|
|
#define HTAL_del HTAssocList_delete
|
|
|
|
#define HTAL_add HTAssocList_add
|
|
|
|
#define HTAL_lup HTAssocList_lookup
|
|
|
|
#endif /*SHORT_NAMES*/
|
|
|
|
|
|
|
|
typedef HTList HTAssocList;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char * name;
|
|
|
|
char * value;
|
|
|
|
} HTAssoc;
|
|
|
|
|
|
|
|
|
|
|
|
PUBLIC HTAssocList *HTAssocList_new NOPARAMS;
|
|
|
|
PUBLIC void HTAssocList_delete PARAMS((HTAssocList * alist));
|
|
|
|
|
|
|
|
PUBLIC void HTAssocList_add PARAMS((HTAssocList * alist,
|
|
|
|
WWW_CONST char * name,
|
|
|
|
WWW_CONST char * value));
|
|
|
|
|
|
|
|
PUBLIC char *HTAssocList_lookup PARAMS((HTAssocList * alist,
|
|
|
|
WWW_CONST char * name));
|
|
|
|
|
|
|
|
#endif /* not HTASSOC_H */
|
|
|
|
/*
|
|
|
|
|
|
|
|
End of file HTAssoc.h. */
|