#ifndef __COOKIE_H #define __COOKIE_H #include "stm32f4xx_hal.h" #include "main.h" //char *str_cookie_options[4] = {"login", "password", "nonce", "time"}; typedef struct { uint16_t start; uint16_t end; uint16_t size; }cookie_token_typDef; typedef struct { char *data; uint16_t len; cookie_token_typDef *tokens; uint16_t tokenCount; }cookie_token_data_typDef; struct cookie_write_control { char *buffer; unsigned int buflen; int stackpos; }; void cookie_write_open(char *buffer, unsigned int buflen); void cookie_set(char *key, char* value); void cookie_close(void); void cookie_parse_tokens(cookie_token_data_typDef *cookie); void cookie_get_option(cookie_token_data_typDef *cookie, char *option, char *value); #endif /* __COOKIE_H */