diff options
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r-- | lib/libfetch/fetch.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h index 3899cca..36a1e9a 100644 --- a/lib/libfetch/fetch.h +++ b/lib/libfetch/fetch.h @@ -38,25 +38,25 @@ #define URL_PWDLEN 256 struct url { - char scheme[URL_SCHEMELEN+1]; - char user[URL_USERLEN+1]; - char pwd[URL_PWDLEN+1]; - char host[MAXHOSTNAMELEN+1]; - int port; - char *doc; - off_t offset; - size_t length; + char scheme[URL_SCHEMELEN+1]; + char user[URL_USERLEN+1]; + char pwd[URL_PWDLEN+1]; + char host[MAXHOSTNAMELEN+1]; + int port; + char *doc; + off_t offset; + size_t length; }; struct url_stat { - off_t size; - time_t atime; - time_t mtime; + off_t size; + time_t atime; + time_t mtime; }; struct url_ent { - char name[PATH_MAX]; - struct url_stat stat; + char name[PATH_MAX]; + struct url_stat stat; }; /* Recognized schemes */ @@ -121,22 +121,26 @@ struct url_ent *fetchList(struct url *, const char *); /* URL parsing */ struct url *fetchMakeURL(const char *, const char *, int, - const char *, const char *, const char *); + const char *, const char *, const char *); struct url *fetchParseURL(const char *); void fetchFreeURL(struct url *); /* Authentication */ typedef int (*auth_t)(struct url *); -extern auth_t fetchAuthMethod; +extern auth_t fetchAuthMethod; /* Last error code */ -extern int fetchLastErrCode; +extern int fetchLastErrCode; #define MAXERRSTRING 256 -extern char fetchLastErrString[MAXERRSTRING]; -extern int fetchTimeout; -extern int fetchRestartCalls; +extern char fetchLastErrString[MAXERRSTRING]; + +/* I/O timeout */ +extern int fetchTimeout; + +/* Restart interrupted syscalls */ +extern int fetchRestartCalls; /* Extra verbosity */ -extern int fetchDebug; +extern int fetchDebug; #endif |