diff options
author | des <des@FreeBSD.org> | 1998-12-21 19:41:50 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-12-21 19:41:50 +0000 |
commit | 9eb60712989a0fae7fcc9dede444f5a2a2257b3e (patch) | |
tree | 39586fde93684776babc1e5c17c3e6d030d1e7ff /lib/libfetch/fetch.h | |
parent | 5dc2c17026e7f757a215f4d72924dfe769472532 (diff) | |
download | FreeBSD-src-9eb60712989a0fae7fcc9dede444f5a2a2257b3e.zip FreeBSD-src-9eb60712989a0fae7fcc9dede444f5a2a2257b3e.tar.gz |
Implement and document file list retrieval.
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r-- | lib/libfetch/fetch.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h index 6ec7d67..2e33245 100644 --- a/lib/libfetch/fetch.h +++ b/lib/libfetch/fetch.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: fetch.h,v 1.6 1998/11/06 22:14:08 des Exp $ + * $Id: fetch.h,v 1.7 1998/12/16 10:24:55 des Exp $ */ #ifndef _FETCH_H_INCLUDED @@ -54,30 +54,40 @@ struct url_stat { time_t mtime; }; +struct url_ent { + char name[MAXPATHLEN]; + struct url_stat stat; +}; + /* FILE-specific functions */ 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 */ char *fetchContentType(FILE *); 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 *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 */ struct url *fetchParseURL(char *); FILE *fetchGetURL(char *, char *); FILE *fetchPutURL(char *, char *); int fetchStatURL(char *, struct url_stat *, char *); +struct url_ent *fetchListURL(char *, char *); FILE *fetchGet(struct url *, char *); FILE *fetchPut(struct url *, char *); int fetchStat(struct url *, struct url_stat *, char *); +struct url_ent *fetchList(struct url *, char *); /* Last error code */ extern int fetchLastErrCode; |