HTAssoc.h
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:1k
源码类别:

浏览器

开发平台:

Unix_Linux

  1. /*                                                                          Association Pairs
  2.                       ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS
  3.                                              
  4.  */
  5. /*
  6. **      (c) COPYRIGHT MIT 1995.
  7. **      Please first read the full copyright statement in the file COPYRIGH.
  8. */
  9. /*
  10.    Lookups from association list are not case-sensitive.
  11.    
  12.    This module is implemented by HTAssoc.c, and it is a part of the  W3C Reference
  13.    Library.
  14.    
  15.  */
  16. #ifndef HTASSOC_H
  17. #define HTASSOC_H
  18. #include "HTList.h"
  19. typedef HTList HTAssocList;
  20. typedef struct {
  21.     char * name;
  22.     char * value;
  23. } HTAssoc;
  24. extern HTAssocList *HTAssocList_new (void);
  25. extern BOOL HTAssocList_delete  (HTAssocList * alist);
  26. extern BOOL HTAssocList_add     (HTAssocList * alist,
  27.                                  CONST char * name, CONST char * value);
  28. extern char *HTAssocList_lookup (HTAssocList * alist, CONST char * name);
  29. #endif /* not HTASSOC_H */
  30. /*
  31.    End of file HTAssoc.h. */