XBPS Library API 20240111
The X Binary Package System
|
Enumerations | |
enum | pkg_state_t |
Functions | |
int | xbps_pkg_state_installed (struct xbps_handle *xhp, const char *pkgname, pkg_state_t *state) |
int | xbps_pkg_state_dictionary (xbps_dictionary_t dict, pkg_state_t *state) |
int | xbps_set_pkg_state_installed (struct xbps_handle *xhp, const char *pkgver, pkg_state_t state) |
int | xbps_set_pkg_state_dictionary (xbps_dictionary_t dict, pkg_state_t state) |
enum pkg_state_t |
Integer representing a state on which a package may be. Possible values for this are:
int xbps_pkg_state_installed | ( | struct xbps_handle * | xhp, |
const char * | pkgname, | ||
pkg_state_t * | state | ||
) |
Gets package state from package pkgname, and sets its state into state.
[in] | xhp | The pointer to an xbps_handle struct. |
[in] | pkgname | Package name. |
[out] | state | Package state returned. |
Definition at line 95 of file package_state.c.
References xbps_pkgdb_get_pkg().
int xbps_pkg_state_dictionary | ( | xbps_dictionary_t | dict, |
pkg_state_t * | state | ||
) |
Gets package state from a package dictionary dict, and sets its state into state.
[in] | dict | Package dictionary. |
[out] | state | Package state returned. |
Definition at line 116 of file package_state.c.
Referenced by xbps_configure_pkg(), and xbps_pkg_is_installed().
int xbps_set_pkg_state_installed | ( | struct xbps_handle * | xhp, |
const char * | pkgver, | ||
pkg_state_t | state | ||
) |
Sets package state state in package pkgname.
[in] | xhp | The pointer to an xbps_handle struct. |
[in] | pkgver | Package name/version to match. |
[in] | state | Package state to be set. |
Definition at line 136 of file package_state.c.
References xbps_handle::pkgdb, xbps_pkg_name(), and xbps_pkgdb_get_pkg().
int xbps_set_pkg_state_dictionary | ( | xbps_dictionary_t | dict, |
pkg_state_t | state | ||
) |
Sets package state state in package dictionary dict.
[in] | dict | Package dictionary. |
[in] | state | Package state to be set. |
Definition at line 128 of file package_state.c.
Referenced by xbps_configure_pkg().