main/recipes.h

Mon, 17 May 2021 20:44:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 17 May 2021 20:44:35 +0200
changeset 91
255a75322212
parent 4
6d1f512cd074
permissions
-rw-r--r--

Added 7 sgemnt fonts for the web client. Log messages in the components more compact. Added fonts mime-types to the webserver. Switched to stable esp-idf 4.2.1. Upgraded the SD-mmc card API.

/**
 * @file recipes.h
 * @brief Recipes management. If new beerxml recipes are detected in
 *        the /recipe directory on the SD card they will be imported 
 *        when you enter the recipes menu. After successfull import the
 *        xml file extensions will be changed to xok to prevent that
 *        the recipe is imported again. After the import the recipe
 *        editor is shown.
 */

#ifndef	_RECIPES_H
#define	_RECIPES_H


/**
 * @brief Parse a Beerxml file and add the recipe.
 * @param fn The recipe filename.
 * @param code The recipe code serial.
 * @return Zero if no errors were found.
 */
int ParseRecipe(char *fn, char *code);

/**
 * @brief Recipes init fases.
 */
void Recipes_Init(void);

/**
 * @brief Revipes loop screens. Bob-blocking.
 */
void Recipes_Loop(void);

#endif

mercurial