struct monitor_reg_list xbee_monitor_list = LIST_HEAD_INITIALIZER();
static int8_t
-parse_monitor(parse_pgm_token_hdr_t *tk, const char *buf, void *res)
+parse_monitor(PGM_P tk, const char *buf, void *res)
{
struct monitor_reg *m;
uint8_t token_len = 0;
char bufcopy[32];
+ (void)tk;
while (!isendoftoken(buf[token_len]) &&
token_len < (sizeof(bufcopy)-1)) {
bufcopy[token_len] = buf[token_len];
}
static int8_t
-complete_get_nb_monitor(parse_pgm_token_hdr_t *tk)
+complete_get_nb_monitor(PGM_P tk)
{
struct monitor_reg *m;
int8_t i = 0;
+ (void)tk;
LIST_FOREACH(m, &xbee_monitor_list, next) {
i++;
}
}
static int8_t
-complete_get_elt_monitor(parse_pgm_token_hdr_t *tk, int8_t idx,
+complete_get_elt_monitor(PGM_P tk, int8_t idx,
char *dstbuf, uint8_t size)
{
struct monitor_reg *m;
int8_t i = 0, len;
+ (void)tk;
LIST_FOREACH(m, &xbee_monitor_list, next) {
if (i == idx)
break;
static int8_t
-help_monitor(parse_pgm_token_hdr_t *tk, char *dstbuf,
+help_monitor(PGM_P tk, char *dstbuf,
uint8_t size)
{
+ (void)tk;
snprintf_P(dstbuf, size, PSTR("Monitor-register"));
return 0;
}