From 91f1b4bc6fb8385ac143887ffe88268b9acea9b0 Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Tue, 16 Jul 2013 19:43:39 +0200 Subject: [PATCH] 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) --- include/router.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/router.h b/include/router.h index 38e0e5aef..fdeb6a27e 100644 --- a/include/router.h +++ b/include/router.h @@ -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 @@ -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