summaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-13 14:09:45 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-13 14:09:45 +0200
commit3755e1cde35828aad4af0578d4271af6b7d57b61 (patch)
tree474c3fc5f5cd064b3b301cabe5e5d2bf09825461 /src/database.c
parent0a7910c144568d8c22a99e359d9c3caf087bc368 (diff)
downloadapk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.tar.bz2
apk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.tar.xz
apk: per applet options
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;