summaryrefslogtreecommitdiffstats
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-13 15:22:14 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-13 15:22:14 +0200
commitb7f9f9bdb21ffeb50f5814fdcce2f315215fdb1e (patch)
treea77d7e52c7d61b6601ea6f0021bd529da3e85dbe /src/apk_database.h
parentc831ead63c5fdb4d1e75c264084576cfefe581e6 (diff)
downloadapk-tools-b7f9f9bdb21ffeb50f5814fdcce2f315215fdb1e.tar.bz2
apk-tools-b7f9f9bdb21ffeb50f5814fdcce2f315215fdb1e.tar.xz
info: implement who owns packages query (apk_info -W)
In quiet mode e.g. "apk info -q -W <file list>" a list of dependencies suitable for .PKGINFO is output in one line.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index c6134d7..e5d4957 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -102,6 +102,7 @@ void apk_db_close(struct apk_database *db);
struct apk_package *apk_db_pkg_add_file(struct apk_database *db, const char *file);
struct apk_package *apk_db_get_pkg(struct apk_database *db, csum_t sum);
+struct apk_package *apk_db_get_file_owner(struct apk_database *db, apk_blob_t filename);
void apk_db_index_write(struct apk_database *db, struct apk_ostream *os);