libalpm/deps.c : export _alpm_checkdeps (-> alpm_checkdeps).
Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
be32aa3004
commit
f21c45c0dd
2 changed files with 10 additions and 1 deletions
|
@ -356,6 +356,8 @@ typedef enum _pmdeptype_t {
|
||||||
|
|
||||||
pmdepend_t *alpm_splitdep(const char *depstring);
|
pmdepend_t *alpm_splitdep(const char *depstring);
|
||||||
int alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
|
int alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
|
||||||
|
alpm_list_t *alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
|
||||||
|
alpm_list_t *packages);
|
||||||
|
|
||||||
const char *alpm_miss_get_target(pmdepmissing_t *miss);
|
const char *alpm_miss_get_target(pmdepmissing_t *miss);
|
||||||
pmdeptype_t alpm_miss_get_type(pmdepmissing_t *miss);
|
pmdeptype_t alpm_miss_get_type(pmdepmissing_t *miss);
|
||||||
|
|
|
@ -228,12 +228,19 @@ alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode)
|
||||||
return(newtargs);
|
return(newtargs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Checks dependencies and returns missing ones in a list. Dependencies can include versions with depmod operators.
|
/** Checks dependencies and returns missing ones in a list.
|
||||||
|
* Dependencies can include versions with depmod operators.
|
||||||
* @param db pointer to the local package database
|
* @param db pointer to the local package database
|
||||||
* @param op transaction type
|
* @param op transaction type
|
||||||
* @param packages an alpm_list_t* of packages to be checked
|
* @param packages an alpm_list_t* of packages to be checked
|
||||||
* @return an alpm_list_t* of pmpkg_t* of missing_t pointers.
|
* @return an alpm_list_t* of pmpkg_t* of missing_t pointers.
|
||||||
*/
|
*/
|
||||||
|
alpm_list_t SYMEXPORT *alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
|
||||||
|
alpm_list_t *packages)
|
||||||
|
{
|
||||||
|
return(_alpm_checkdeps(db, op, packages));
|
||||||
|
}
|
||||||
|
|
||||||
alpm_list_t *_alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
|
alpm_list_t *_alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
|
||||||
alpm_list_t *packages)
|
alpm_list_t *packages)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue