We need this function in other places later in order to be able to fetch
abstract packages without implicitely creating them.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
return 0;
}
-static abstract_pkg_t *abstract_pkg_fetch_by_name(const char *pkg_name)
-{
- return (abstract_pkg_t *) hash_table_get(&conf->pkg_hash, pkg_name);
-}
-
pkg_t *pkg_hash_fetch_best_installation_candidate(abstract_pkg_t * apkg,
int (*constraint_fcn) (pkg_t *
pkg,
void hash_insert_pkg(pkg_t * pkg, int set_status);
+static inline abstract_pkg_t *abstract_pkg_fetch_by_name(const char *pkg_name)
+{
+ return (abstract_pkg_t *) hash_table_get(&conf->pkg_hash, pkg_name);
+}
+
abstract_pkg_t *ensure_abstract_pkg_by_name(const char *pkg_name);
void pkg_hash_fetch_all_installed(pkg_vec_t * installed);
pkg_t *pkg_hash_fetch_by_name_version(const char *pkg_name,