Annotation of libwww/Library/src/HTAssoc.html, revision 2.5

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 "HTList.h"
                     28: 
                     29: 
                     30: #ifdef SHORT_NAMES
                     31: #define        HTAL_new        HTAssocList_new
                     32: #define        HTAL_del        HTAssocList_delete
                     33: #define        HTAL_add        HTAssocList_add
                     34: #define        HTAL_lup        HTAssocList_lookup
                     35: #endif /*SHORT_NAMES*/
                     36: 
                     37: typedef HTList HTAssocList;
                     38: 
                     39: typedef struct {
                     40:     char * name;
                     41:     char * value;
                     42: } HTAssoc;
                     43: 
                     44: 
2.2       frystyk    45: extern HTAssocList *HTAssocList_new NOPARAMS;
                     46: extern void HTAssocList_delete PARAMS((HTAssocList * alist));
2.1       luotonen   47: 
2.2       frystyk    48: extern void HTAssocList_add PARAMS((HTAssocList *      alist,
2.1       luotonen   49:                                    CONST char *        name,
                     50:                                    CONST char *        value));
                     51: 
2.2       frystyk    52: extern char *HTAssocList_lookup PARAMS((HTAssocList *  alist,
2.1       luotonen   53:                                        CONST char *    name));
                     54: 
                     55: #endif /* not HTASSOC_H */
                     56: </PRE>
                     57: End of file HTAssoc.h.
                     58: </BODY>

Webmaster