File: HTAssoc.html

package info (click to toggle)
cern-httpd 3.0A-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,392 kB
  • ctags: 6,554
  • sloc: ansic: 37,902; makefile: 1,746; perl: 535; csh: 167; sh: 143
file content (42 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (6)
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
36
37
38
39
40
41
42
<HEAD>
</HEAD>
<BODY>
<H1>Association List For Storing Name-Value Pairs</H1>
Lookups from assosiation list are not case-sensitive.
<PRE>
#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,
				    CONST char *	name,
				    CONST char *	value));

PUBLIC char *HTAssocList_lookup PARAMS((HTAssocList *	alist,
				        CONST char *	name));

#endif /* not HTASSOC_H */
</PRE>
End of file HTAssoc.h.
</BODY>