![]() |
XBPS Library API
0.19
The X Binary Package System
|
Enumerations | |
enum | pkg_state_t |
Functions | |
int | xbps_pkg_state_dictionary (prop_dictionary_t dict, pkg_state_t *state) |
int | xbps_pkg_state_installed (struct xbps_handle *xhp, const char *pkgname, pkg_state_t *state) |
int | xbps_set_pkg_state_dictionary (prop_dictionary_t dict, pkg_state_t state) |
int | xbps_set_pkg_state_installed (struct xbps_handle *xhp, const char *pkgname, const char *version, pkg_state_t state) |
enum pkg_state_t |
Integer representing a state on which a package may be. Possible values for this are:
Definition at line 1445 of file xbps_api.h.
int xbps_pkg_state_dictionary | ( | prop_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(), xbps_pkg_is_installed(), and xbps_transaction_install_pkg().
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().
Referenced by xbps_remove_pkg().
int xbps_set_pkg_state_dictionary | ( | prop_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().
int xbps_set_pkg_state_installed | ( | struct xbps_handle * | xhp, |
const char * | pkgname, | ||
const char * | version, | ||
pkg_state_t | state | ||
) |
Sets package state state in package pkgname.
[in] | xhp | The pointer to an xbps_handle struct. |
[in] | pkgname | Package name. |
[in] | version | Package version. |
[in] | state | Package state to be set. |
Definition at line 159 of file package_state.c.
References xbps_pkgdb_get_pkg().
Referenced by xbps_remove_pkg().