summaryrefslogtreecommitdiff
path: root/lib/rpmurl.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-05 20:00:26 +0000
committerjbj <devnull@localhost>1999-11-05 20:00:26 +0000
commite8c7c6893ce0de37de7218d6419ca31452eaa601 (patch)
tree0358a5379ea43671a9ad9836b093e9016b3438be /lib/rpmurl.h
parent3363604c7076329e431afdc975f205b54f088631 (diff)
downloadrpm-e8c7c6893ce0de37de7218d6419ca31452eaa601.tar.gz
rpm-e8c7c6893ce0de37de7218d6419ca31452eaa601.tar.bz2
rpm-e8c7c6893ce0de37de7218d6419ca31452eaa601.zip
rpmio.c: Add per FD_t syserrno, read timers and simple counting statistics.
rpmio.c: Honor contentLength to prevent R/W I/O dribbles. ftp.c: Support for HTTP/1.1 with persistent connection. ftp.c: Read (and set) Content-Length and HTTP minor version from reply. CVS patchset: 3418 CVS date: 1999/11/05 20:00:26
Diffstat (limited to 'lib/rpmurl.h')
-rw-r--r--lib/rpmurl.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/lib/rpmurl.h b/lib/rpmurl.h
index 477c051ad..03d6cb9fb 100644
--- a/lib/rpmurl.h
+++ b/lib/rpmurl.h
@@ -31,49 +31,52 @@ typedef enum {
typedef /*@abstract@*/ /*@refcounted@*/ struct urlinfo {
/*@refs@*/ int nrefs;
- const char *url; /* copy of original url */
- const char *service;
- const char *user;
- const char *password;
- const char *host;
- const char *portstr;
- const char *path;
- const char *proxyu; /* FTP: proxy user */
- const char *proxyh; /* FTP/HTTP: proxy host */
+ const char * url; /* copy of original url */
+ const char * service;
+ const char * user;
+ const char * password;
+ const char * host;
+ const char * portstr;
+ const char * path;
+ const char * proxyu; /* FTP: proxy user */
+ const char * proxyh; /* FTP/HTTP: proxy host */
int proxyp; /* FTP/HTTP: proxy port */
int port;
FD_t ftpControl;
int ftpFileDoneNeeded;
int openError; /* Type of open failure */
+ int httpVersion;
+ int httpHasRange;
+ int httpContentLength;
+ int httpPersist;
} *urlinfo;
#ifdef __cplusplus
extern "C" {
#endif
-int ftpTimeoutSecs;
-int ftpCheckResponse(urlinfo u, /*@out@*/ char **str);
-int httpOpen(urlinfo u);
+int ftpCheckResponse(urlinfo u, /*@out@*/ char ** str);
+int httpOpen(urlinfo u, const char * httpcmd);
int ftpOpen(urlinfo u);
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);
+urlinfo urlLink(urlinfo u, const char * msg);
+urlinfo XurlLink(urlinfo u, const char * msg, const char * file, unsigned line);
#define urlLink(_u, _msg) XurlLink(_u, _msg, __FILE__, __LINE__)
-urlinfo urlNew(const char *msg);
-urlinfo XurlNew(const char *msg, const char *file, unsigned line);
+urlinfo urlNew(const char * msg);
+urlinfo XurlNew(const char * msg, const char * file, unsigned line);
#define urlNew(_msg) XurlNew(_msg, __FILE__, __LINE__)
-void urlFree( /*@killref@*/ urlinfo u, const char *msg);
-void XurlFree( /*@killref@*/ urlinfo u, const char *msg, const char *file, unsigned line);
+void urlFree( /*@killref@*/ urlinfo u, const char * msg);
+void XurlFree( /*@killref@*/ urlinfo u, const char * msg, const char * file, unsigned line);
#define urlFree(_u, _msg) XurlFree(_u, _msg, __FILE__, __LINE__)
void urlFreeCache(void);
urltype urlIsURL(const char * url);
-int urlSplit(const char *url, /*@out@*/ urlinfo *u);
+int urlSplit(const char * url, /*@out@*/ urlinfo * u);
int urlGetFile(const char * url, const char * dest);