/**
* Lookup best provider for a dependency in the available list
* @param al available list
+ * @param te transaction element
* @param ds dependency set
* @return best provider for the dependency, NULL if none
*/
RPM_GNUC_INTERNAL
-rpmte rpmalSatisfiesDepend(const rpmal al, const rpmds ds);
+rpmte rpmalSatisfiesDepend(const rpmal al, const rpmte te, const rpmds ds);
/**
- * Get a list of transaction elements that are memebers of a collection in the
- * available list
- * @param al available list
- * @param collname collection name to search for
- * @return NULL-terminated list of transaction elements that are
- * members of the specified collection
+ * Return index of a transaction element in the available list
+ * @param al available list
+ * @param te transaction element
+ * @return index, (unsigned int)-1 if not found
*/
RPM_GNUC_INTERNAL
-rpmte * rpmalAllInCollection(const rpmal al, const char * collname);
+unsigned int rpmalLookupTE(const rpmal al, const rpmte te);
#ifdef __cplusplus
}