Move RWBackend into a separate file

Moved the RWBackend class implementation into its own file. Made some of
the command type functions a part of the <maxscale/protocol/mysql.h>
header to make it reusable.
This commit is contained in:
Markus Mäkelä
2018-03-29 04:58:01 +03:00
parent 8206e1f46d
commit 6ef9e1fd9a
13 changed files with 309 additions and 278 deletions

View File

@ -567,6 +567,15 @@ bool mxs_mysql_is_result_set(GWBUF *buffer);
*/
bool mxs_mysql_is_prep_stmt_ok(GWBUF *buffer);
/**
* Is this a binary protocol command
*
* @param cmd Command to check
*
* @return True if the command is a binary protocol command
*/
bool mxs_mysql_is_ps_command(uint8_t cmd);
/**
* @brief Check if the OK packet is followed by another result
*