Use common function for setting up MySQL connection.

Earlier the same (or almost the same) code was duplicated in
several places.

A conflicting declaration was also removed. There was no
implementation for that declaration.
This commit is contained in:
Johan Wikman
2016-01-29 12:28:54 +02:00
parent 0902297fe5
commit 475dfb7288
2 changed files with 46 additions and 64 deletions

View File

@ -324,7 +324,6 @@ typedef struct {
MySQLProtocol* mysql_protocol_init(DCB* dcb, int fd);
void mysql_protocol_done (DCB* dcb);
MySQLProtocol *gw_mysql_init(MySQLProtocol *data);
int gw_receive_backend_auth(MySQLProtocol *protocol);
int gw_decode_mysql_server_handshake(MySQLProtocol *protocol, uint8_t *payload);
int gw_read_backend_handshake(MySQLProtocol *protocol);