Debian Codegraph @

WWW/Library/Implementation/HTNews.h

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