MXS-936: destroyInstance interface change

MXS-936: destroyInstance interface change
This commit is contained in:
MassimilianoPinto
2016-11-08 14:07:48 +01:00
parent de18f25cb8
commit 61f0603e39
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ typedef struct router_object
error_action_t action, error_action_t action,
bool* succp); bool* succp);
uint64_t (*getCapabilities)(void); uint64_t (*getCapabilities)(void);
void (*destroyInstance)(SERVICE *service); void (*destroyInstance)(ROUTER *instance);
} ROUTER_OBJECT; } ROUTER_OBJECT;
/** /**

View File

@ -1831,7 +1831,7 @@ void service_shutdown()
/* Call destroyInstance hook for routers */ /* Call destroyInstance hook for routers */
if (svc->router->destroyInstance) if (svc->router->destroyInstance)
{ {
svc->router->destroyInstance(svc); svc->router->destroyInstance(svc->router_instance);
} }
svc = svc->next; svc = svc->next;
} }