XBPS Library API 20240111
The X Binary Package System
|
Functions | |
char * | xbps_archive_fetch_file (const char *url, const char *fname) |
int | xbps_archive_fetch_file_into_fd (const char *url, const char *fname, int fd) |
xbps_dictionary_t | xbps_archive_fetch_plist (const char *url, const char *p) |
char * xbps_archive_fetch_file | ( | const char * | url, |
const char * | fname | ||
) |
Returns a buffer of a file stored in an archive locally or remotely as specified in the url url.
[in] | url | Full URL to binary package file (local or remote path). |
[in] | fname | File name to match. |
Definition at line 153 of file plist_fetch.c.
Referenced by xbps_archive_fetch_plist().
int xbps_archive_fetch_file_into_fd | ( | const char * | url, |
const char * | fname, | ||
int | fd | ||
) |
Returns a file stored in an archive locally or remotely as specified in the url url and stores it into the file descriptor fd.
[in] | url | Full URL to binary package file (local or remote path). |
[in] | fname | File name to match. |
[in] | fd | An open file descriptor to put the file into. |
Definition at line 232 of file plist_fetch.c.
xbps_dictionary_t xbps_archive_fetch_plist | ( | const char * | url, |
const char * | p | ||
) |
Internalizes a plist file in an archive stored locally or remotely as specified in the url url.
[in] | url | Full URL to binary package file (local or remote path). |
[in] | p | Proplist file name to internalize as a dictionary. |
Definition at line 284 of file plist_fetch.c.
References xbps_archive_fetch_file().