HTNews.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Network News Transfer protocol module for the WWW library
  2. HTNEWS
  3. */
  4. /* History:
  5. * 26 Sep 90 Written TBL in Objective-C
  6. * 29 Nov 91 Downgraded to C, for portable implementation.
  7. */
  8. #ifndef HTNEWS_H
  9. #define HTNEWS_H
  10. #include <HTAccess.h>
  11. #include <HTAnchor.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. extern int HTNewsChunkSize;
  16. extern int HTNewsMaxChunk;
  17. #ifdef GLOBALREF_IS_MACRO
  18. extern GLOBALREF (HTProtocol, HTNews);
  19. extern GLOBALREF (HTProtocol, HTNNTP);
  20. extern GLOBALREF (HTProtocol, HTNewsPost);
  21. extern GLOBALREF (HTProtocol, HTNewsReply);
  22. extern GLOBALREF (HTProtocol, HTSNews);
  23. extern GLOBALREF (HTProtocol, HTSNewsPost);
  24. extern GLOBALREF (HTProtocol, HTSNewsReply);
  25. #else
  26. GLOBALREF HTProtocol HTNews;
  27. GLOBALREF HTProtocol HTNNTP;
  28. GLOBALREF HTProtocol HTNewsPost;
  29. GLOBALREF HTProtocol HTNewsReply;
  30. GLOBALREF HTProtocol HTSNews;
  31. GLOBALREF HTProtocol HTSNewsPost;
  32. GLOBALREF HTProtocol HTSNewsReply;
  33. #endif /* GLOBALREF_IS_MACRO */
  34. extern void HTSetNewsHost(const char *value);
  35. extern const char *HTGetNewsHost(void);
  36. extern char *HTNewsHost;
  37. extern void HTClearNNTPAuthInfo(void);
  38. #ifdef USE_SSL
  39. extern SSL_CTX *ssl_ctx;
  40. extern int HTNewsProxyConnect(int sock,
  41. const char *url,
  42. HTParentAnchor *anAnchor,
  43. HTFormat format_out,
  44. HTStream *sink);
  45. #endif
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif /* HTNEWS_H */