diff options
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r-- | lib/libfetch/fetch.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h index dc5fc05..cca0d1f 100644 --- a/lib/libfetch/fetch.h +++ b/lib/libfetch/fetch.h @@ -55,7 +55,7 @@ struct url_stat { }; struct url_ent { - char name[MAXPATHLEN]; + char name[PATH_MAX]; struct url_stat stat; }; @@ -125,6 +125,10 @@ struct url *fetchMakeURL(const char *, const char *, int, struct url *fetchParseURL(const char *); void fetchFreeURL(struct url *); +/* Authentication */ +typedef int (*auth_t)(struct url *); +extern auth_t fetchAuthMethod; + /* Last error code */ extern int fetchLastErrCode; #define MAXERRSTRING 256 |