diff options
author | jbj <devnull@localhost> | 1999-11-02 17:56:30 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-02 17:56:30 +0000 |
commit | 85d4129c7bedafd466625fd4400ea5607e2f09a1 (patch) | |
tree | 523311cdd0663bd35c7730c53747e4a9e969f306 /lib/rpmurl.h | |
parent | 7fc3a97733080a03e8bb3872bd37019db483b93c (diff) | |
download | rpm-85d4129c7bedafd466625fd4400ea5607e2f09a1.tar.gz rpm-85d4129c7bedafd466625fd4400ea5607e2f09a1.tar.bz2 rpm-85d4129c7bedafd466625fd4400ea5607e2f09a1.zip |
Move most of the ftp and http interface to rpmio.c.
CVS patchset: 3415
CVS date: 1999/11/02 17:56:30
Diffstat (limited to 'lib/rpmurl.h')
-rw-r--r-- | lib/rpmurl.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/lib/rpmurl.h b/lib/rpmurl.h index 27c805222..a9a4665dd 100644 --- a/lib/rpmurl.h +++ b/lib/rpmurl.h @@ -30,6 +30,7 @@ typedef enum { } urltype; typedef /*@abstract@*/ /*@refcounted@*/ struct urlinfo { +/*@refs@*/ int nrefs; const char *url; /* copy of original url */ const char *service; const char *user; @@ -42,26 +43,20 @@ typedef /*@abstract@*/ /*@refcounted@*/ struct urlinfo { int proxyp; /* FTP/HTTP: proxy port */ int port; int ftpControl; - int ftpGetFileDoneNeeded; + int ftpFileDoneNeeded; int openError; /* Type of open failure */ -/*@refs@*/ int nrefs; } *urlinfo; #ifdef __cplusplus extern "C" { #endif -/*@observer@*/ const char *const ftpStrerror(int ftpErrno); - -void urlSetCallback(rpmCallbackFunction notify, void *notifyData, int notifyCount); +int ftpTimeoutSecs; +int ftpCheckResponse(urlinfo u, /*@out@*/ char **str); int httpOpen(urlinfo u); int ftpOpen(urlinfo u); - -int httpGetFile( /*@killref@*/ FD_t sfd, FD_t tfd); -int ftpGetFile( /*@killref@*/ FD_t sfd, FD_t tfd); -int ftpGetFileDesc(FD_t); -int ftpAbort( /*@killref@*/ FD_t fd); -int ftpClose( /*@killref@*/ FD_t fd); +int ftpFileDone(urlinfo u); +int ftpFileDesc(urlinfo u, const char * cmd, FD_t fd); urlinfo urlLink(urlinfo u, const char *msg); urlinfo XurlLink(urlinfo u, const char *msg, const char *file, unsigned line); @@ -80,7 +75,7 @@ void urlFreeCache(void); urltype urlIsURL(const char * url); int urlSplit(const char *url, /*@out@*/ urlinfo *u); -int urlGetFile(const char * url, const char * dest); +int urlFile(const char * url, const char * dest, int push); #ifdef __cplusplus } |