summaryrefslogtreecommitdiff
path: root/src/apk_applet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_applet.h')
-rw-r--r--src/apk_applet.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/apk_applet.h b/src/apk_applet.h
index dba5589..2782a92 100644
--- a/src/apk_applet.h
+++ b/src/apk_applet.h
@@ -4,7 +4,7 @@
* Copyright (C) 2008 Timo Teräs <timo.teras@iki.fi>
* All rights reserved.
*
- * This program is free software; you can redistribute it and/or modify it
+ * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation. See http://www.gnu.org/ for details.
*/
@@ -24,13 +24,22 @@ struct apk_repository_url {
extern struct apk_repository_url apk_repository_list;
+struct apk_option {
+ int val;
+ const char *name;
+ const char *help;
+ int has_arg;
+ const char *arg_name;
+};
+
struct apk_applet {
const char *name;
- const char *usage;
+ const char *arguments;
+ const char *help;
int context_size;
int num_options;
- struct option *options;
+ struct apk_option *options;
int (*parse)(void *ctx, int optch, int optindex, const char *optarg);
int (*main)(void *ctx, int argc, char **argv);