File: HTAssoc.h

package info (click to toggle)
lynx 2.9.0dev.6-3~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,516 kB
  • sloc: ansic: 135,095; sh: 3,641; makefile: 1,149; perl: 1,130; yacc: 782
file content (35 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 */