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-02-28 23:18:52 +0200
commit9530fbfa044bedf5821ff5ffffb7d4f3994f603f (patch)
treea54a0dcc1eff93429c822fcb89dfaccb73ab6285 /src/apk_database.h
parentc054fbc11e9beca0d45285c3e1f448c81416c5ce (diff)
downloadapk-tools-v3.0-wip.tar.bz2
apk-tools-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 30684c3..688c00a 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];