Annotation of libwww/Library/src/HTAssoc.html, revision 2.3
2.3 ! frystyk 1: <HTML>
2.1 luotonen 2: <HEAD>
2.3 ! frystyk 3: <TITLE>Association Pairs</TITLE>
2.1 luotonen 4: </HEAD>
5: <BODY>
2.3 ! frystyk 6:
2.1 luotonen 7: <H1>Association List For Storing Name-Value Pairs</H1>
2.3 ! frystyk 8:
! 9: <PRE>
! 10: /*
! 11: ** (c) COPYRIGHT CERN 1994.
! 12: ** Please first read the full copyright statement in the file COPYRIGH.
! 13: */
! 14: </PRE>
! 15:
! 16: Lookups from assosiation list are not case-sensitive. <P>
! 17:
! 18: This module is implemented by <A HREF="HTAssoc.c">HTAssoc.c</A>, and it is
! 19: a part of the <A
! 20: HREF="http://info.cern.ch/hypertext/WWW/Library/User/Guide/Guide.html">
! 21: Library of Common Code</A>.
! 22:
2.1 luotonen 23: <PRE>
24: #ifndef HTASSOC_H
25: #define HTASSOC_H
26:
27: #include "HTUtils.h"
28: #include "HTList.h"
29:
30:
31: #ifdef SHORT_NAMES
32: #define HTAL_new HTAssocList_new
33: #define HTAL_del HTAssocList_delete
34: #define HTAL_add HTAssocList_add
35: #define HTAL_lup HTAssocList_lookup
36: #endif /*SHORT_NAMES*/
37:
38: typedef HTList HTAssocList;
39:
40: typedef struct {
41: char * name;
42: char * value;
43: } HTAssoc;
44:
45:
2.2 frystyk 46: extern HTAssocList *HTAssocList_new NOPARAMS;
47: extern void HTAssocList_delete PARAMS((HTAssocList * alist));
2.1 luotonen 48:
2.2 frystyk 49: extern void HTAssocList_add PARAMS((HTAssocList * alist,
2.1 luotonen 50: CONST char * name,
51: CONST char * value));
52:
2.2 frystyk 53: extern char *HTAssocList_lookup PARAMS((HTAssocList * alist,
2.1 luotonen 54: CONST char * name));
55:
56: #endif /* not HTASSOC_H */
57: </PRE>
58: End of file HTAssoc.h.
59: </BODY>
Webmaster