Allow to configure options
This commit is contained in:
@ -8,8 +8,6 @@
|
||||
static int option_handler_print(option_t *option, char *data);
|
||||
static int option_handler_set(option_t *option, char *data);
|
||||
|
||||
#define OPTION_VALUE_LIST_SEP ","
|
||||
|
||||
static void print_help(option_t *options)
|
||||
{
|
||||
for (int i = 0; options[i].name; i++) {
|
||||
|
@ -31,6 +31,8 @@ typedef struct options_s {
|
||||
__fn__; \
|
||||
})
|
||||
|
||||
#define OPTION_VALUE_LIST_SEP ","
|
||||
|
||||
#define OPTION_FORMAT_uint "%d"
|
||||
#define OPTION_FORMAT_hex "%08x"
|
||||
#define OPTION_FORMAT_bool "%d"
|
||||
|
Reference in New Issue
Block a user