summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-04-14 09:21:30 +0300
committerTimo Teras <timo.teras@iki.fi>2009-04-14 09:21:30 +0300
commitc11b70c7f0f622f7b6c346ed20ed80ba34f6d8ee (patch)
tree9f19dbe1c00e01865ab7cc92b101d42810012794 /src/apk_database.h
parentf4210298adf0950c5ee41d8cc7026db7ba8b1821 (diff)
downloadapk-tools-c11b70c7f0f622f7b6c346ed20ed80ba34f6d8ee.tar.gz
apk-tools-c11b70c7f0f622f7b6c346ed20ed80ba34f6d8ee.tar.bz2
apk-tools-c11b70c7f0f622f7b6c346ed20ed80ba34f6d8ee.tar.xz
apk-tools-c11b70c7f0f622f7b6c346ed20ed80ba34f6d8ee.zip
db: track reverse dependencies
This will be used later by the commit change calculator (for improved changeset calculation, ref #7). Will be also used by "apk info" to show reverse dependencies or "required by" information.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 0306997..59f1f8a 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -19,6 +19,9 @@
#define APK_MAX_REPOS 32
+struct apk_name;
+APK_ARRAY(apk_name_array, struct apk_name *);
+
struct apk_db_file {
struct hlist_node hash_node;
struct hlist_node diri_files_list;
@@ -55,6 +58,7 @@ struct apk_name {
apk_hash_node hash_node;
char *name;
struct apk_package_array *pkgs;
+ struct apk_name_array *rdepends;
};
struct apk_repository {