IOR
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | option_help |
struct | option_module |
struct | options_all |
Macros | |
#define | LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Enumerations | |
enum | option_value_type { OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT } |
Functions | |
int64_t | string_to_bytes (char *size_str) |
void | option_print_current (option_help *args) |
int | option_parse (int argc, char **argv, options_all *args) |
#define LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Definition at line 36 of file option.h.
Referenced by mdtest_run(), and ParseCommandLine().
enum option_value_type |
int option_parse | ( | int | argc, |
char ** | argv, | ||
options_all * | args | ||
) |
Definition at line 223 of file option.c.
References options_all::module_count, options_all::modules, NULL, o, OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, option_print_help(), OPTION_REQUIRED_ARGUMENT, option_module::options, option_module::prefix, and string_to_bytes().
Referenced by airoi_parse_options().
void option_print_current | ( | option_help * | args | ) |
Definition at line 217 of file option.c.
References OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT, and print_current_option_section().
int64_t string_to_bytes | ( | char * | size_str | ) |
Definition at line 13 of file option.c.
Referenced by DecodeDirective(), NodeMemoryStringToBytes(), and option_parse().