diff options
| author | Karel Klic <kklic@redhat.com> | 2011-05-05 13:51:03 +0200 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2011-05-05 13:51:03 +0200 |
| commit | cb09f7742092950787283e6cbb4ac7af9e8d00fd (patch) | |
| tree | 6199412f207fbb6a262b77e33b61de70aa550d20 /src/lib/parse_options.h | |
| parent | d01e3b4c482bd243a0265b6292f1f919f3750fef (diff) | |
| parent | 13e0fc50583209894d699def95ecd2e23feac558 (diff) | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/lib/parse_options.h')
| -rw-r--r-- | src/lib/parse_options.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/parse_options.h b/src/lib/parse_options.h index 8c784b96..d86662e2 100644 --- a/src/lib/parse_options.h +++ b/src/lib/parse_options.h @@ -23,6 +23,13 @@ extern "C" { #endif +const char *abrt_init(char **argv); +#define export_abrt_envvars abrt_export_abrt_envvars +void export_abrt_envvars(int pfx); +#define g_progname abrt_g_progname +extern const char *g_progname; + + enum parse_opt_type { OPTION_BOOL, OPTION_GROUP, @@ -50,12 +57,12 @@ struct options { * h - help */ #define OPT_END() { OPTION_END } -#define OPT_BOOL(s, l, v, h) { OPTION_BOOL, (s), (l), (v), NULL, (h) } #define OPT_GROUP(h) { OPTION_GROUP, 0, NULL, NULL, NULL, (h) } -#define OPT_INTEGER(s, l, v, h) { OPTION_INTEGER, (s), (l), (v), "NUM", (h) } -#define OPT_STRING(s, l, v, a, h) { OPTION_STRING, (s), (l), (v), (a), (h) } -#define OPT_OPTSTRING(s, l, v, a, h) { OPTION_OPTSTRING, (s), (l), (v), (a), (h) } -#define OPT_LIST(s, l, v, a, h) { OPTION_LIST, (s), (l), (v), (a), (h) } +#define OPT_BOOL( s, l, v, h) { OPTION_BOOL , (s), (l), (v), NULL , (h) } +#define OPT_INTEGER( s, l, v, h) { OPTION_INTEGER , (s), (l), (v), "NUM", (h) } +#define OPT_STRING( s, l, v, a, h) { OPTION_STRING , (s), (l), (v), (a) , (h) } +#define OPT_OPTSTRING(s, l, v, a, h) { OPTION_OPTSTRING, (s), (l), (v), (a) , (h) } +#define OPT_LIST( s, l, v, a, h) { OPTION_LIST , (s), (l), (v), (a) , (h) } #define OPT__VERBOSE(v) OPT_BOOL('v', "verbose", (v), _("Be verbose")) |
