diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-13 14:09:45 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-13 14:09:45 +0200 |
commit | 3755e1cde35828aad4af0578d4271af6b7d57b61 (patch) | |
tree | 474c3fc5f5cd064b3b301cabe5e5d2bf09825461 /src/apk_applet.h | |
parent | 0a7910c144568d8c22a99e359d9c3caf087bc368 (diff) | |
download | apk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.tar.gz apk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.tar.bz2 apk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.tar.xz apk-tools-3755e1cde35828aad4af0578d4271af6b7d57b61.zip |
apk: per applet options
Diffstat (limited to 'src/apk_applet.h')
-rw-r--r-- | src/apk_applet.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/apk_applet.h b/src/apk_applet.h index e4c2e1d..4fdce0d 100644 --- a/src/apk_applet.h +++ b/src/apk_applet.h @@ -12,13 +12,21 @@ #ifndef APK_APPLET_H #define APK_APPLET_H +#include <getopt.h> + extern const char *apk_root; extern const char *apk_repository; struct apk_applet { const char *name; - const char *usage; - int (*main)(int argc, char **argv); + const char *usage; + + int context_size; + int num_options; + struct option *options; + + int (*parse)(void *ctx, int optch, int optindex, const char *optarg); + int (*main)(void *ctx, int argc, char **argv); }; extern struct apk_applet *__start_apkapplets, *__stop_apkapplets; |