--- a/bmsd/mysql.h Fri Oct 18 13:20:35 2019 +0200 +++ b/bmsd/mysql.h Fri May 01 16:37:31 2020 +0200 @@ -41,5 +41,16 @@ void co2meter_mysql_update(sys_co2meter_list *co2meter); void co2meter_mysql_death(char *node, char *alias); +void ispindel_mysql_insert(sys_ispindel_list *ispindel); +void ispindel_mysql_update(sys_ispindel_list *ispindel); +void ispindel_mysql_death(char *alias); + +/** + * @brief Check state changes in the database for all iSpindels and + * update the internal memory array. Called every 5 seconds from + * the main server thread. + */ +void ispindel_mysql_check(void); + #endif