#include <stdio.h>
#include <stdint.h>
#include <string.h>
+#include <stdarg.h>
#include <netinet/in.h>
#include <cmdline_parse.h>
/****** CONTEXT (list of instruction) */
/* in progmem */
-cmdline_parse_ctx_t main_ctx[] = {
- (cmdline_parse_inst_t *)&cmd_float,
- (cmdline_parse_inst_t *)&cmd_trigo,
- (cmdline_parse_inst_t *)&cmd_help,
- NULL,
+cmdline_parse_ctx_t main_ctx = {
+ .name = "main",
+ .insts = {
+ &cmd_float,
+ &cmd_trigo,
+ &cmd_help,
+ NULL,
+ },
};