summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index a45d8d1..373acb6 100644
--- a/src/database.c
+++ b/src/database.c
@@ -87,11 +87,16 @@ static const struct apk_hash_ops dir_hash_ops = {
.delete_item = (apk_hash_delete_f) free,
};
+struct apk_name *apk_db_query_name(struct apk_database *db, apk_blob_t name)
+{
+ return (struct apk_name *) apk_hash_get(&db->available.names, name);
+}
+
struct apk_name *apk_db_get_name(struct apk_database *db, apk_blob_t name)
{
struct apk_name *pn;
- pn = (struct apk_name *) apk_hash_get(&db->available.names, name);
+ pn = apk_db_query_name(db, name);
if (pn != NULL)
return pn;