diff -r 39a688b8d069 -r ef3f0274a1ea bmsd/mysql.h --- a/bmsd/mysql.h Wed Jun 05 20:24:16 2019 +0200 +++ b/bmsd/mysql.h Mon Jun 10 20:04:12 2019 +0200 @@ -18,6 +18,13 @@ void bms_mysql_end(void); /** + * @brief Send query to the MySQL server with one reconnect attempt. + * @param query The SQL query to send. + * @return Return 0 if no error, else the error code. + */ +int bms_mysql_query(const char *query); + +/** * @brief Ping MySQL connection and try to reconnect if the connection is broken. */ void bms_mysql_ping(void);