MXS-1220: Add back the old diagnostic entry point

This makes 2.2 maxadmin backwards compatible with 2.1.
This commit is contained in:
Markus Mäkelä
2017-04-21 12:13:08 +03:00
committed by Markus Mäkelä
parent bab7957952
commit dd68069471
15 changed files with 181 additions and 59 deletions

View File

@ -78,6 +78,7 @@ typedef struct mxs_monitor_object
* @param monitor The monitor object
*/
void (*stopMonitor)(MXS_MONITOR *monitor);
void (*diagnostics)(DCB *, const MXS_MONITOR *);
/**
* @brief Return diagnostic information about the monitor
@ -86,7 +87,7 @@ typedef struct mxs_monitor_object
*
* @see jansson.h
*/
json_t* (*diagnostics)(const MXS_MONITOR *monitor);
json_t* (*diagnostics_json)(const MXS_MONITOR *monitor);
} MXS_MONITOR_OBJECT;
/**