summaryrefslogtreecommitdiffstats
path: root/innbbsd/inntobbs.h
blob: 6d910252057d52bf2da37c3bf82dc373a1121621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef INNTOBBS_H
#define INNTOBBS_H

enum HeaderValue {
    SUBJECT_H, FROM_H, DATE_H, MID_H, NEWSGROUPS_H,
    NNTPPOSTINGHOST_H, NNTPHOST_H, CONTROL_H, PATH_H,
    ORGANIZATION_H, X_Auth_From_H, APPROVED_H, DISTRIBUTION_H,
    REFERENCES_H, KEYWORDS_H, SUMMARY_H,
    LASTHEADER,
};

#if !defined(PalmBBS)
extern char    *HEADER[];
extern char    *BODY;
extern char    *FROM, *SUBJECT, *SITE, *DATE, *POSTHOST, *NNTPHOST, *PATH,
               *GROUPS, *MSGID, *CONTROL;
extern char    *REMOTEHOSTNAME, *REMOTEUSERNAME;
#else
extern char   **XHEADER;
extern char    *BODY;
extern char    *FROM, *SUBJECT, *SITE, *DATE, *POSTHOST, *NNTPHOST, *XPATH,
               *GROUPS, *MSGID, *CONTROL;
extern char    *REMOTEHOSTNAME, *REMOTEUSERNAME;
#endif

int             receive_article();

#if defined(PalmBBS)
#ifndef INNTOBBS
#ifndef PATH
#define PATH XPATH
#endif
#ifndef HEADER
#define HEADER XHEADER
#endif
#endif
#endif

#endif