Remove router_options

Relaced router_options with configuration parameters in the createInstance
router entry point. The same needs to be done for the filter API as barely
any filters use the feature.

Some routers (binlogrouter) still support router_options but using it is
deprecated. This had to be done as their use wasn't deprecated in 2.2.
This commit is contained in:
Markus Mäkelä
2018-07-10 05:42:01 +03:00
parent f11f8980b2
commit cbb8c68770
24 changed files with 49 additions and 216 deletions

View File

@ -90,11 +90,11 @@ typedef struct mxs_router_object
* other API functions.
*
* @param service The service where the instance is created
* @param options Router options
* @param params Parameters for the router
*
* @return New router instance on NULL on error
*/
MXS_ROUTER *(*createInstance)(SERVICE *service, char **options);
MXS_ROUTER *(*createInstance)(SERVICE* service, MXS_CONFIG_PARAMETER* params);
/**
* Called to create a new user session within the router
@ -240,7 +240,7 @@ typedef struct mxs_router_object
* must update these versions numbers in accordance with the rules in
* modinfo.h.
*/
#define MXS_ROUTER_VERSION { 3, 1, 0 }
#define MXS_ROUTER_VERSION { 4, 0, 0 }
/**
* Specifies capabilities specific for routers. Common capabilities