XBPS Library API  0.19
The X Binary Package System
Functions
Repository index functions

Functions

prop_dictionary_t xbps_rindex_get_pkg (struct xbps_rindex *ri, const char *pkg)
 
prop_dictionary_t xbps_rindex_get_virtualpkg (struct xbps_rindex *ri, const char *pkg)
 

Detailed Description

Function Documentation

prop_dictionary_t xbps_rindex_get_pkg ( struct xbps_rindex ri,
const char *  pkg 
)

Returns a pkg dictionary from a repository index ri matching the expression pkg.

Parameters
[in]riPointer to an xbps_rindex structure.
[in]pkgPackage expression to match in this repository index.
Returns
The pkg dictionary on success, NULL otherwise.

Definition at line 193 of file rindex_get.c.

References xbps_rindex::repod, xbps_rindex::uri, xbps_pkg_version(), and xbps_pkgpattern_version().

+ Here is the call graph for this function:

prop_dictionary_t xbps_rindex_get_virtualpkg ( struct xbps_rindex ri,
const char *  pkg 
)

Returns a pkg dictionary from a repository index ri matching the expression pkg. On match the first package matching the virtual package expression will be returned.

Parameters
[in]riPointer to an xbps_rindex structure.
[in]pkgPackage expression to match in this repository index.
Returns
The pkg dictionary on success, NULL otherwise.

Definition at line 143 of file rindex_get.c.

References xbps_rindex::repod, xbps_rindex::uri, xbps_match_virtual_pkg_in_dict(), xbps_pkg_version(), xbps_pkgpattern_version(), and xbps_rindex::xhp.

+ Here is the call graph for this function: