#include "parse.h"Go to the source code of this file.
Data Structures | |
| struct | token_string_data |
| struct | token_string |
| struct | token_string_pgm |
Defines | |
| #define | STR_TOKEN_SIZE 32 |
| #define | TOKEN_STRING_INITIALIZER(structure, field, string) |
Typedefs | |
| typedef char | fixed_string_t [STR_TOKEN_SIZE] |
| typedef struct token_string | parse_token_string_t |
| typedef struct token_string_pgm | parse_pgm_token_string_t |
Functions | |
| int8_t | parse_string (parse_pgm_token_hdr_t *tk, const char *srcbuf, void *res) |
| int8_t | complete_get_nb_string (parse_pgm_token_hdr_t *tk) |
| int8_t | complete_get_elt_string (parse_pgm_token_hdr_t *tk, int8_t idx, char *dstbuf, uint8_t size) |
| int8_t | get_help_string (parse_pgm_token_hdr_t *tk, char *dstbuf, uint8_t size) |
Variables | |
| struct token_string_pgm | PROGMEM |
| struct token_ops | token_string_ops |
| #define STR_TOKEN_SIZE 32 |
| #define TOKEN_STRING_INITIALIZER | ( | structure, | |||
| field, | |||||
| string | ) |
Value:
{ \
.hdr = { \
.ops = &token_string_ops, \
.offset = offsetof(structure, field), \
}, \
.string_data = { \
.str = string, \
}, \
}
Definition at line 34 of file parse_string.h.
| typedef char fixed_string_t[STR_TOKEN_SIZE] |
Definition at line 9 of file parse_string.h.
| typedef struct token_string_pgm parse_pgm_token_string_t |
Definition at line 24 of file parse_string.h.
| typedef struct token_string parse_token_string_t |
Definition at line 19 of file parse_string.h.
| int8_t complete_get_elt_string | ( | parse_pgm_token_hdr_t * | tk, | |
| int8_t | idx, | |||
| char * | dstbuf, | |||
| uint8_t | size | |||
| ) |
| int8_t complete_get_nb_string | ( | parse_pgm_token_hdr_t * | tk | ) |
| int8_t get_help_string | ( | parse_pgm_token_hdr_t * | tk, | |
| char * | dstbuf, | |||
| uint8_t | size | |||
| ) |
Definition at line 146 of file parse_string.c.
References ANYSTRING_HELP, FIXEDSTRING_HELP, MULTISTRING_HELP, and token_string_data::str.
| int8_t parse_string | ( | parse_pgm_token_hdr_t * | tk, | |
| const char * | srcbuf, | |||
| void * | res | |||
| ) |
Definition at line 45 of file parse_string.c.
References isendoftoken(), token_string_data::str, and STR_TOKEN_SIZE.
| struct token_string_pgm PROGMEM |
| struct token_ops token_string_ops |
Definition at line 9 of file parse_string.c.
1.5.6