MXS-1848 Change prototype of startMonitor
StartMonitor() now takes a MXS_MONITOR_INSTANCE and returns true, if the monitor could be started and false otherwise. So, the setup is such that in createInstance(), the instance data is created and then using startMonitor() and stopMonitor() the monitor is started/stopped. Finally in destroyInstance(), the actual instance data is deleted.
This commit is contained in:
@ -102,11 +102,10 @@ typedef struct mxs_monitor_api
|
||||
* @param monitor The monitor object
|
||||
* @param params Parameters for this monitor
|
||||
*
|
||||
* @return Pointer to the monitor specific data. Will be stored
|
||||
* in @c monitor->handle.
|
||||
* @return True, if the monitor could be started, false otherwise.
|
||||
*/
|
||||
MXS_MONITOR_INSTANCE *(*startMonitor)(MXS_MONITOR *monitor,
|
||||
const MXS_CONFIG_PARAMETER *params);
|
||||
bool (*startMonitor)(MXS_MONITOR_INSTANCE *monitor,
|
||||
const MXS_CONFIG_PARAMETER *params);
|
||||
|
||||
/**
|
||||
* @brief Stop the monitor
|
||||
|
Reference in New Issue
Block a user