]> code.citadel.org Git - citadel.git/blob - rss2ctdl/netio.h
2ef3638e76c5316d8f06451aa1ad890594a9d360
[citadel.git] / rss2ctdl / netio.h
1 /*
2  * $Id$
3  * 
4  * Copyright 2003-2004 Oliver Feiler <kiza@kcore.de>
5  *
6  * netio.h
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22
23 #ifndef NETIO_H
24 #define NETIO_H
25
26 struct feed;
27
28 char *DownloadFeed (char *url, struct feed *cur_ptr, int suppressoutput);
29
30 typedef enum {
31         NET_ERR_OK,
32         /* Init errors */
33         NET_ERR_URL_INVALID,
34         /* Connect errors */
35         NET_ERR_SOCK_ERR,
36         NET_ERR_HOST_NOT_FOUND,
37         NET_ERR_CONN_REFUSED,
38         NET_ERR_CONN_FAILED,
39         NET_ERR_TIMEOUT,
40         NET_ERR_UNKNOWN,
41         /* Transfer errors */
42         NET_ERR_REDIRECT_COUNT_ERR,
43         NET_ERR_REDIRECT_ERR,
44         NET_ERR_HTTP_410,
45         NET_ERR_HTTP_404,
46         NET_ERR_HTTP_NON_200,
47         NET_ERR_HTTP_PROTO_ERR,
48         NET_ERR_AUTH_FAILED,
49         NET_ERR_AUTH_NO_AUTHINFO,
50         NET_ERR_AUTH_GEN_AUTH_ERR,
51         NET_ERR_AUTH_UNSUPPORTED,
52         NET_ERR_GZIP_ERR
53 } netio_error_type;
54
55 #endif