Added router command values: they will be used:

- as command types in protocol modules (standard routing or session change routing)
- to write back the data from backend (discard multiple backends ouput)
This commit is contained in:
Massimiliano Pinto
2013-07-16 19:43:39 +02:00
parent 17e33d2ef9
commit 91f1b4bc6f

View File

@ -28,6 +28,7 @@
* 26/06/2013 Mark Riddoch Addition of router options
* and the diagnostic entry point
* 15/07/2013 Massimiliano Pinto Added clientReply entry point
* 16/07/2013 Massimiliano Pinto Added router commands values
*
*/
#include <service.h>
@ -69,4 +70,9 @@ typedef struct router_object {
void (*diagnostics)(ROUTER *instance, DCB *dcb);
void (*clientReply)(ROUTER* instance, void* router_session, GWBUF* queue, DCB *backend_dcb);
} ROUTER_OBJECT;
/* Router commands */
#define ROUTER_DEFAULT 0 /**< Standard routing */
#define ROUTER_CHANGE_SESSION 1 /**< Route a change session */
#endif