aboutsummaryrefslogtreecommitdiffstats
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-12-13 15:22:33 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-04-01 15:58:49 +0300
commite79226010a0641f701b6e12392e176cc2cf58d72 (patch)
treedec5311a1fc0cfb837b4af4038cab7bdedc2bb4c /src/apk_database.h
parentd6c54f932054c58aee8f7a6d2bd49b115d804da1 (diff)
downloadaports-v3.0-wip.tar.bz2
aports-v3.0-wip.tar.xz
adb: introduce apk-tools database format, and few appletsv3.0-wip
This is a flat buffers inspired format that allows fast mmaped access to the data with low overhead, signature support and relatively good forward support.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 30684c3330..688c00ab13 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -21,6 +21,8 @@
#include "apk_provider_data.h"
#include "apk_solver_data.h"
+#include "adb.h"
+
struct apk_name;
APK_ARRAY(apk_name_array, struct apk_name *);
@@ -131,6 +133,7 @@ struct apk_db_options {
const char *cache_dir;
const char *repositories_file;
struct list_head repository_list;
+ struct apk_string_array *private_keys;
};
#define APK_REPOSITORY_CACHED 0
@@ -162,6 +165,8 @@ struct apk_database {
int compat_newfeatures : 1;
int compat_notinstallable : 1;
+ struct adb_trust trust;
+
struct apk_dependency_array *world;
struct apk_protected_path_array *protected_paths;
struct apk_repository repos[APK_MAX_REPOS];