![]() |
XBPS Library API
0.19
The X Binary Package System
|
Functions | |
const char * | xbps_fetch_error_string (void) |
int | xbps_fetch_file (struct xbps_handle *xhp, const char *uri, const char *flags) |
XBPS download related functions, frontend for NetBSD's libfetch.
const char* xbps_fetch_error_string | ( | void | ) |
Returns last error string reported by xbps_fetch_file().
Definition at line 82 of file download.c.
Referenced by xbps_rpool_sync().
int xbps_fetch_file | ( | struct xbps_handle * | xhp, |
const char * | uri, | ||
const char * | flags | ||
) |
Download a file from a remote URL to current working directory.
[in] | xhp | Pointer to an xbps_handle struct. |
[in] | uri | Remote URI string. |
[in] | flags | Flags passed to libfetch's fetchXget(). |
Definition at line 91 of file download.c.
References xbps_handle::fetch_timeout, and xbps_xasprintf().