http11.h.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:2k
源码类别:

WEB邮件程序

开发平台:

C/C++

  1. #ifndef http11_h
  2. #define http11_h
  3. /*
  4. ** Copyright 1998 - 1999 Double Precision, Inc.
  5. ** See COPYING for distribution information.
  6. */
  7. #if HAVE_CONFIG_H
  8. #include "config.h"
  9. #endif
  10. #ifdef  __cplusplus
  11. extern "C" {
  12. #endif
  13. #if HAVE_LIBFCGI
  14. #include "fcgi_config.h"
  15. #include <stdlib.h>
  16. #include "fcgi_stdio.h"
  17. #endif
  18. /* $Id: http11.h.in,v 1.7 2000/03/26 18:20:26 mrsam Exp $ */
  19. /* HTTP 1.1 library */
  20. /* Implement Accept-Language: and Content-Language: headers as follows.
  21. **
  22. ** libdir contains one subdirectory for each support content language.
  23. **
  24. ** softlinks are used to provide default variations of each content.
  25. ** (example: en -> en-us )
  26. **
  27. ** subdirectory/LANGUAGE is a file with one line, containing the name of
  28. ** the directory.  So, we can open en/LANGUAGE, read en-us, and send that
  29. ** back as the Content-Language:
  30. **
  31. ** subdirectory/LOCALE is a file with one line - the corresponding locale.
  32. ** en-us/LOCALE will contain en_US, for example.
  33. **
  34. */
  35. char *http11_best_content_language(const char *libdir, const char *acc_lang);
  36. /* acc_lang is our Accept-Language: header.  Figure out the best
  37. ** content language we can use.
  38. **
  39. ** Note - return pointer must be free()d.
  40. */
  41. const char *http11_content_language(const char *libdir, const char *cont_lang);
  42. /* Return the real content language by reading LANGUAGE */
  43. const char *http11_content_locale(const char *libdir, const char *cont_lang);
  44. /* Return the LOCALE */
  45. const char *http11_content_ispelldict(const char *libdir, const char *cont_lang);
  46. /* Return the ISPELL dictionary */
  47. const char *http11_content_charset(const char *libdir, const char *acc_lang);
  48. /* Return the CHARSET */
  49. FILE *http11_open_langfile(const char *libdir, const char *acc_lang,
  50. const char *file);
  51. /* Open arbitrary file */
  52. #define HTTP11_DEFAULTLANG "@DEFAULTLANG@"
  53. #ifdef  __cplusplus
  54. }
  55. #endif
  56. #endif