Add user_options_extra_t

This commit is contained in:
jsteube
2016-09-21 11:09:12 +02:00
parent a70590b0dc
commit cb1375bcd7
4 changed files with 262 additions and 235 deletions

View File

@@ -852,6 +852,14 @@ typedef struct
} user_options_t;
typedef struct
{
u32 attack_kern;
int optind;
} user_options_extra_t;
typedef struct
{
bool quiet;

View File

@@ -254,6 +254,8 @@ void user_options_destroy (user_options_t *user_options);
int user_options_parse (user_options_t *user_options, int myargc, char **myargv);
int user_options_sanity (user_options_t *user_options, int myargc, char **myargv, const u32 attack_kern);
int user_options_sanity (user_options_t *user_options, int myargc, char **myargv, user_options_extra_t *user_options_extra);
int user_options_extra_init (user_options_t *user_options, int myargc, char **myargv, user_options_extra_t *user_options_extra);
#endif // _USER_OPTIONS_H