summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-17 21:25:00 +0000
committerdes <des@FreeBSD.org>2000-07-17 21:25:00 +0000
commit3033318809d10165bff918597656578a8dc16bd9 (patch)
tree00a4cf3f1c1814ebff20dc85906c41eb5d9c7ccb /lib/libfetch/fetch.h
parent9e42d615d8102289f59981b6332a387ed4c92781 (diff)
downloadFreeBSD-src-3033318809d10165bff918597656578a8dc16bd9.zip
FreeBSD-src-3033318809d10165bff918597656578a8dc16bd9.tar.gz
Introduce fetchXGet*(), which combine the functionalities of fetchGet*() and
fetchStat*(). In most cases, either fetchGet*() or fetchXGet*() is a wrapper around the other; in all cases, calling fetchGet*() is identical to calling fetchXGet*() with the second argument set to NULL.
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index c503dac..9d7fa9b 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -81,28 +81,33 @@ struct url_ent {
#define FETCH_VERBOSE 19
/* FILE-specific functions */
+FILE *fetchXGetFile(struct url *, struct url_stat *, char *);
FILE *fetchGetFile(struct url *, char *);
FILE *fetchPutFile(struct url *, char *);
int fetchStatFile(struct url *, struct url_stat *, char *);
struct url_ent *fetchListFile(struct url *, char *);
/* HTTP-specific functions */
+FILE *fetchXGetHTTP(struct url *, struct url_stat *, char *);
FILE *fetchGetHTTP(struct url *, char *);
FILE *fetchPutHTTP(struct url *, char *);
int fetchStatHTTP(struct url *, struct url_stat *, char *);
struct url_ent *fetchListHTTP(struct url *, char *);
/* FTP-specific functions */
+FILE *fetchXGetFTP(struct url *, struct url_stat *, char *);
FILE *fetchGetFTP(struct url *, char *);
FILE *fetchPutFTP(struct url *, char *);
int fetchStatFTP(struct url *, struct url_stat *, char *);
struct url_ent *fetchListFTP(struct url *, char *);
/* Generic functions */
+FILE *fetchXGetURL(char *, struct url_stat *, char *);
FILE *fetchGetURL(char *, char *);
FILE *fetchPutURL(char *, char *);
int fetchStatURL(char *, struct url_stat *, char *);
struct url_ent *fetchListURL(char *, char *);
+FILE *fetchXGet(struct url *, struct url_stat *, char *);
FILE *fetchGet(struct url *, char *);
FILE *fetchPut(struct url *, char *);
int fetchStat(struct url *, struct url_stat *, char *);
OpenPOWER on IntegriCloud