about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
0 files changed, 0 insertions, 0 deletions
href='#n34'>34 35


































                                                                      
/*                       ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS

   Lookups from association list are not case-sensitive.

 */

#ifndef HTASSOC_H
#define HTASSOC_H

#include <HTList.h>

#ifdef __cplusplus
extern "C" {
#endif
    typedef HTList HTAssocList;

    typedef struct {
	char *name;
	char *value;
    } HTAssoc;

    extern HTAssocList *HTAssocList_new(void);
    extern void HTAssocList_delete(HTAssocList *alist);

    extern void HTAssocList_add(HTAssocList *alist,
				const char *name,
				const char *value);

    extern char *HTAssocList_lookup(HTAssocList *alist,
				    const char *name);

#ifdef __cplusplus
}
#endif
#endif				/* not HTASSOC_H */