~ubuntu-branches/ubuntu/edgy/lynx/edgy

« back to all changes in this revision

Viewing changes to WWW/Library/Implementation/HTAssoc.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*                       ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS
 
2
 
 
3
   Lookups from association list are not case-sensitive.
 
4
 
 
5
 */
 
6
 
 
7
#ifndef HTASSOC_H
 
8
#define HTASSOC_H
 
9
 
 
10
#include <HTList.h>
 
11
 
 
12
typedef HTList HTAssocList;
 
13
 
 
14
typedef struct {
 
15
    char * name;
 
16
    char * value;
 
17
} HTAssoc;
 
18
 
 
19
 
 
20
PUBLIC HTAssocList *HTAssocList_new NOPARAMS;
 
21
PUBLIC void HTAssocList_delete PARAMS((HTAssocList * alist));
 
22
 
 
23
PUBLIC void HTAssocList_add PARAMS((HTAssocList *       alist,
 
24
                                    CONST char *        name,
 
25
                                    CONST char *        value));
 
26
 
 
27
PUBLIC char *HTAssocList_lookup PARAMS((HTAssocList *   alist,
 
28
                                        CONST char *    name));
 
29
 
 
30
#endif /* not HTASSOC_H */