Imported Upstream version 4.14.1
[platform/upstream/rpm.git] / lib / rpmal.h
index 6f1327b..10fe756 100644 (file)
@@ -73,22 +73,21 @@ rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds);
 /**
  * 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
 }