MXS-2196: Use Listener in MXS_PROTOCOL::accept

This commit is contained in:
Markus Mäkelä
2018-11-30 18:08:55 +02:00
parent 45827dd433
commit e46104c32a
7 changed files with 27 additions and 21 deletions

View File

@ -18,10 +18,16 @@
* The protocol module interface definition.
*/
#include <maxscale/ccdefs.hh>
#include <maxbase/jansson.h>
#include <maxscale/cdefs.h>
#include <maxscale/buffer.h>
#include <memory>
class Listener;
using SListener = std::shared_ptr<Listener>;
MXS_BEGIN_DECLS
struct DCB;
@ -94,7 +100,7 @@ typedef struct mxs_protocol
*
* @note Currently the return value is ignored
*/
int32_t (* accept)(DCB* dcb);
int32_t (* accept)(const SListener& listener);
/**
* Connect to a server, only for backend side protocol modules