Cleanup server.hh

Simplify type definitions.
This commit is contained in:
Esa Korhonen
2018-12-04 16:53:37 +02:00
parent 7ca421fe5f
commit f2fcf79fb2
10 changed files with 37 additions and 43 deletions

View File

@ -26,7 +26,7 @@
MXS_BEGIN_DECLS
struct DCB;
struct server;
struct SERVER;
struct MXS_SESSION;
/**
@ -106,7 +106,7 @@ typedef struct mxs_protocol
*
* @return The opened file descriptor or DCBFD_CLOSED on error
*/
int32_t (* connect)(DCB* dcb, struct server* server, MXS_SESSION* session);
int32_t (* connect)(DCB* dcb, struct SERVER* server, MXS_SESSION* session);
/**
* Free protocol data allocated in the connect handler
@ -131,7 +131,7 @@ typedef struct mxs_protocol
*
* @note Currently the return value is ignored
*/
int32_t (* auth)(DCB* dcb, struct server* server, MXS_SESSION* session, GWBUF* buffer);
int32_t (* auth)(DCB* dcb, struct SERVER* server, MXS_SESSION* session, GWBUF* buffer);
/**
* Returns the name of the default authenticator module for this protocol