Removed config.h.in; added it (and also stamp-h, tags, TAGS) to .cvsignore
[claws.git] / src / nntp.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999,2000 Hiroyuki Yamamoto
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __NNTP_H__
21 #define __NNTP_H__
22
23 #define NN_SUCCESS      0
24 #define NN_SOCKET       2
25 #define NN_AUTHFAIL     3
26 #define NN_PROTOCOL     4
27 #define NN_SYNTAX       5
28 #define NN_IOERR        6
29 #define NN_ERROR        7
30
31 #define NNTPBUFSIZE     8192
32
33 gint nntp_open(const gchar *server, gushort port, gchar *buf);
34 gint nntp_group(gint sock, const gchar *group,
35                 gint *num, gint *first, gint *last);
36 gint nntp_get_article(gint sock, const gchar *cmd, gint num, gchar **msgid);
37 gint nntp_article(gint sock, gint num, gchar **msgid);
38 gint nntp_body(gint sock, gint num, gchar **msgid);
39 gint nntp_head(gint sock, gint num, gchar **msgid);
40 gint nntp_stat(gint sock, gint num, gchar **msgid);
41 gint nntp_next(gint sock, gint *num, gchar **msgid);
42 gint nntp_xover(gint sock, gint first, gint last);
43 gint nntp_post(gint sock, FILE *fp);
44 gint nntp_newgroups(gint sock);
45 gint nntp_newnews(gint sock);
46 gint nntp_mode(gint sock, gboolean stream);
47 gint nntp_ok(gint sock, gchar *argbuf);
48 gint nntp_list(gint sock);
49
50 #endif /* __NNTP_H__ */