summaryrefslogtreecommitdiff
path: root/lib/rpmurl.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-02 17:56:30 +0000
committerjbj <devnull@localhost>1999-11-02 17:56:30 +0000
commit85d4129c7bedafd466625fd4400ea5607e2f09a1 (patch)
tree523311cdd0663bd35c7730c53747e4a9e969f306 /lib/rpmurl.h
parent7fc3a97733080a03e8bb3872bd37019db483b93c (diff)
downloadrpm-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.h19
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
}