Mon, 12 Nov 2018 16:34:43 +0100
Missing Water agent costs from Brouwhulp import are now added from the imported miscs database. The printed recipe report now calculates the beer color from the ingredients. Also set during recipes import. This will later allow to set the color method for each recipe individually.
0 | 1 | /** |
2 | * @file mysql.h | |
3 | */ | |
4 | #ifndef _MYSQL_H | |
5 | #define _MYSQL_H | |
6 | ||
7 | ||
8 | /** | |
9 | * @brief Connect to the MySQL server and select the database. All parameters must be | |
10 | * set in the $HOME/.bms/bms.conf file. | |
11 | * @return 0 if success, any other value if the connection failed. | |
12 | */ | |
13 | int bms_mysql_init(void); | |
14 | ||
15 | /** | |
16 | * @brief Close MySQL connection and free resources. | |
17 | */ | |
18 | void bms_mysql_end(void); | |
19 | ||
20 | /** | |
21 | * @brief Ping MySQL connection and try to reconnect if the connection is broken. | |
22 | */ | |
23 | void bms_mysql_ping(void); | |
24 | ||
25 | void node_mysql_insert(sys_node_list *node); | |
26 | void node_mysql_update(sys_node_list *node); | |
27 | void node_mysql_death(char *node); | |
28 | ||
29 | void fermenter_mysql_insert(sys_fermenter_list *fermenter); | |
30 | void fermenter_mysql_update(sys_fermenter_list *fermenter); | |
31 | void fermenter_mysql_death(char *node, char *alias); | |
32 | ||
33 | void fermentation_mysql_log(fermentation_log *log); | |
34 | ||
35 | #endif |