fetch.h (75891) | fetch.h (77238) |
---|---|
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 75891 2001-04-24 00:06:21Z archie $ | 28 * $FreeBSD: head/lib/libfetch/fetch.h 77238 2001-05-26 19:37:15Z 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 --- 13 unchanged lines hidden (view full) --- 50 51struct url_stat { 52 off_t size; 53 time_t atime; 54 time_t mtime; 55}; 56 57struct url_ent { | 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 --- 13 unchanged lines hidden (view full) --- 50 51struct url_stat { 52 off_t size; 53 time_t atime; 54 time_t mtime; 55}; 56 57struct url_ent { |
58 char name[MAXPATHLEN]; | 58 char name[PATH_MAX]; |
59 struct url_stat stat; 60}; 61 62/* Recognized schemes */ 63#define SCHEME_FTP "ftp" 64#define SCHEME_HTTP "http" 65#define SCHEME_HTTPS "https" 66#define SCHEME_FILE "file" --- 53 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 | 59 struct url_stat stat; 60}; 61 62/* Recognized schemes */ 63#define SCHEME_FTP "ftp" 64#define SCHEME_HTTP "http" 65#define SCHEME_HTTPS "https" 66#define SCHEME_FILE "file" --- 53 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 |
128/* Authentication */ 129typedef int (*auth_t)(struct url *); 130extern auth_t fetchAuthMethod; 131 |
|
128/* Last error code */ 129extern int fetchLastErrCode; 130#define MAXERRSTRING 256 131extern char fetchLastErrString[MAXERRSTRING]; 132extern int fetchTimeout; 133extern int fetchRestartCalls; 134 135#endif | 132/* Last error code */ 133extern int fetchLastErrCode; 134#define MAXERRSTRING 256 135extern char fetchLastErrString[MAXERRSTRING]; 136extern int fetchTimeout; 137extern int fetchRestartCalls; 138 139#endif |