Deleted Added
full compact
fetch.h (90267) fetch.h (100510)
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/lib/libfetch/fetch.h 90267 2002-02-05 22:13:51Z des $
28 * $FreeBSD: head/lib/libfetch/fetch.h 100510 2002-07-22 16:11:39Z des $
29 */
30
31#ifndef _FETCH_H_INCLUDED
32#define _FETCH_H_INCLUDED
33
34#define _LIBFETCH_VER "libfetch/2.0"
35
36#define URL_SCHEMELEN 16

--- 44 unchanged lines hidden (view full) ---

81#define FETCH_SERVER 13
82#define FETCH_TEMP 14
83#define FETCH_TIMEOUT 15
84#define FETCH_UNAVAIL 16
85#define FETCH_UNKNOWN 17
86#define FETCH_URL 18
87#define FETCH_VERBOSE 19
88
29 */
30
31#ifndef _FETCH_H_INCLUDED
32#define _FETCH_H_INCLUDED
33
34#define _LIBFETCH_VER "libfetch/2.0"
35
36#define URL_SCHEMELEN 16

--- 44 unchanged lines hidden (view full) ---

81#define FETCH_SERVER 13
82#define FETCH_TEMP 14
83#define FETCH_TIMEOUT 15
84#define FETCH_UNAVAIL 16
85#define FETCH_UNKNOWN 17
86#define FETCH_URL 18
87#define FETCH_VERBOSE 19
88
89__BEGIN_DECLS
90
89/* FILE-specific functions */
90FILE *fetchXGetFile(struct url *, struct url_stat *, const char *);
91FILE *fetchGetFile(struct url *, const char *);
92FILE *fetchPutFile(struct url *, const char *);
93int fetchStatFile(struct url *, struct url_stat *, const char *);
94struct url_ent *fetchListFile(struct url *, const char *);
95
96/* HTTP-specific functions */

--- 23 unchanged lines hidden (view full) ---

120struct url_ent *fetchList(struct url *, const char *);
121
122/* URL parsing */
123struct url *fetchMakeURL(const char *, const char *, int,
124 const char *, const char *, const char *);
125struct url *fetchParseURL(const char *);
126void fetchFreeURL(struct url *);
127
91/* FILE-specific functions */
92FILE *fetchXGetFile(struct url *, struct url_stat *, const char *);
93FILE *fetchGetFile(struct url *, const char *);
94FILE *fetchPutFile(struct url *, const char *);
95int fetchStatFile(struct url *, struct url_stat *, const char *);
96struct url_ent *fetchListFile(struct url *, const char *);
97
98/* HTTP-specific functions */

--- 23 unchanged lines hidden (view full) ---

122struct url_ent *fetchList(struct url *, const char *);
123
124/* URL parsing */
125struct url *fetchMakeURL(const char *, const char *, int,
126 const char *, const char *, const char *);
127struct url *fetchParseURL(const char *);
128void fetchFreeURL(struct url *);
129
130__END_DECLS
131
128/* Authentication */
129typedef int (*auth_t)(struct url *);
130extern auth_t fetchAuthMethod;
131
132/* Last error code */
133extern int fetchLastErrCode;
134#define MAXERRSTRING 256
135extern char fetchLastErrString[MAXERRSTRING];
136
137/* I/O timeout */
138extern int fetchTimeout;
139
140/* Restart interrupted syscalls */
141extern int fetchRestartCalls;
142
143/* Extra verbosity */
144extern int fetchDebug;
145
146#endif
132/* Authentication */
133typedef int (*auth_t)(struct url *);
134extern auth_t fetchAuthMethod;
135
136/* Last error code */
137extern int fetchLastErrCode;
138#define MAXERRSTRING 256
139extern char fetchLastErrString[MAXERRSTRING];
140
141/* I/O timeout */
142extern int fetchTimeout;
143
144/* Restart interrupted syscalls */
145extern int fetchRestartCalls;
146
147/* Extra verbosity */
148extern int fetchDebug;
149
150#endif