introduce the active_list for searching.
[oweals/opkg-lede.git] / libopkg / pkg_hash.h
index 730341878af60e6cfff12ee300d28f6e8f521dc5..a1b64a686d6235fb7bf775bbcdceb1175229f9fb 100644 (file)
@@ -1,4 +1,4 @@
-/* pkg_hash.h - the itsy package management system
+/* pkg_hash.h - the opkg package management system
 
    Steven M. Ayer
    
@@ -19,6 +19,8 @@
 #define PKG_HASH_H
 
 #include "pkg.h"
+#include "pkg_src.h"
+#include "pkg_dest.h"
 #include "pkg_vec.h"
 #include "hash_table.h"
 
@@ -43,8 +45,8 @@ pkg_t * pkg_hash_fetch_by_name_version(hash_table_t *hash,
                                       const char * version);
 abstract_pkg_vec_t *pkg_hash_fetch_all_installation_candidates(hash_table_t *hash, const char *name);
 pkg_t *pkg_hash_fetch_best_installation_candidate(opkg_conf_t *conf, abstract_pkg_t *apkg, 
-                                                 int (*constraint_fcn)(pkg_t *pkg, void *data), void *cdata, int quiet);
-pkg_t *pkg_hash_fetch_best_installation_candidate_by_name(opkg_conf_t *conf, const char *name);
+                                                 int (*constraint_fcn)(pkg_t *pkg, void *data), void *cdata, int quiet, int *error);
+pkg_t *pkg_hash_fetch_best_installation_candidate_by_name(opkg_conf_t *conf, const char *name, int *err);
 pkg_t *pkg_hash_fetch_installed_by_name(hash_table_t *hash,
                                        const char *pkg_name);
 pkg_t *pkg_hash_fetch_installed_by_name_dest(hash_table_t *hash,