From ecdacd15032578148489f868fd928fb502032c60 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 6 Aug 2009 14:25:03 +0300 Subject: all: implement database open options so user can override trusted keys directory and repositories file. --- src/apk_applet.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/apk_applet.h') diff --git a/src/apk_applet.h b/src/apk_applet.h index 2782a92..6f59f04 100644 --- a/src/apk_applet.h +++ b/src/apk_applet.h @@ -14,15 +14,7 @@ #include #include "apk_defines.h" - -extern const char *apk_root; - -struct apk_repository_url { - struct list_head list; - const char *url; -}; - -extern struct apk_repository_url apk_repository_list; +#include "apk_database.h" struct apk_option { int val; @@ -37,12 +29,14 @@ struct apk_applet { const char *arguments; const char *help; + unsigned int open_flags, forced_flags; int context_size; int num_options; struct apk_option *options; - int (*parse)(void *ctx, int optch, int optindex, const char *optarg); - int (*main)(void *ctx, int argc, char **argv); + int (*parse)(void *ctx, struct apk_db_options *dbopts, + int optch, int optindex, const char *optarg); + int (*main)(void *ctx, struct apk_database *db, int argc, char **argv); }; extern struct apk_applet *__start_apkapplets, *__stop_apkapplets; -- cgit v1.2.3-60-g2f50