![]() |
XBPS Library API
0.19
The X Binary Package System
|
Data Structures | |
struct | xbps_fetch_cb_data |
Structure to be passed to the fetch function callback. More... | |
struct | xbps_handle |
Generic XBPS structure handler for initialization. More... | |
struct | xbps_state_cb_data |
Structure to be passed as argument to the state function callback. All members are read-only and set internally by libxbps. More... | |
struct | xbps_unpack_cb_data |
Structure to be passed to the unpack function callback. More... | |
Enumerations | |
enum | xbps_state_t |
Functions | |
void | xbps_end (struct xbps_handle *xhp) |
int | xbps_init (struct xbps_handle *xhp) |
Use these functions to initialize some parameters before start using libxbps and finalize usage to release resources at the end.
enum xbps_state_t |
Integer representing the xbps callback returned state. Possible values:
Definition at line 269 of file xbps_api.h.
void xbps_end | ( | struct xbps_handle * | xhp | ) |
Releases all resources used by libxbps.
[in] | xhp | Pointer to an xbps_handle struct. |
int xbps_init | ( | struct xbps_handle * | xhp | ) |
Initialize the XBPS library with the following steps:
[in] | xhp | Pointer to an xbps_handle struct. |
Definition at line 136 of file initend.c.
References xbps_handle::cachedir, xbps_handle::conffile, xbps_handle::fetch_timeout, xbps_handle::flags, xbps_handle::metadir, xbps_handle::rootdir, and xbps_xasprintf().