summaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-05-11 13:31:02 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-05-11 13:31:02 +0000
commit60245e42b0f8eae5d3eac87f1c204ae510b8c547 (patch)
tree84787caa5073f7eb2b15de471a26c816cfab30eb /lib/libfetch/fetch.h
parentd1c418891e13501140f16d02a3e4c6c3c9c62c88 (diff)
Notes
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index e2375156e84c..02df28a5df30 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -40,14 +40,14 @@
#define URL_PWDLEN 256
struct url {
- off_t offset;
- size_t length;
char scheme[URL_SCHEMELEN+1];
char user[URL_USERLEN+1];
char pwd[URL_PWDLEN+1];
char host[MAXHOSTNAMELEN+1];
int port;
- char doc[2];
+ char *doc;
+ off_t offset;
+ size_t length;
};
struct url_stat {
@@ -81,7 +81,6 @@ int fetchStatFTP(struct url *, struct url_stat *, char *);
struct url_ent *fetchListFTP(struct url *, char *);
/* Generic functions */
-struct url *fetchParseURL(char *);
FILE *fetchGetURL(char *, char *);
FILE *fetchPutURL(char *, char *);
int fetchStatURL(char *, struct url_stat *, char *);
@@ -91,6 +90,10 @@ FILE *fetchPut(struct url *, char *);
int fetchStat(struct url *, struct url_stat *, char *);
struct url_ent *fetchList(struct url *, char *);
+/* URL parsing */
+struct url *fetchParseURL(char *);
+void fetchFreeURL(struct url *);
+
/* Last error code */
extern int fetchLastErrCode;
extern int fetchTimeout;