diff --git a/server/core/maxscale/monitor.h b/server/core/maxscale/monitor.h index 7b91c58a5..e42fcf4be 100644 --- a/server/core/maxscale/monitor.h +++ b/server/core/maxscale/monitor.h @@ -92,4 +92,16 @@ bool monitor_serialize(const MXS_MONITOR *monitor); */ MXS_MONITOR* monitor_server_in_use(const SERVER *server); +/** + * Launch a script + * + * @param mon Owning monitor + * @param ptr The server which has changed state + * @param script Script to execute + * @param timeout Timeout in seconds for the script + * + * @return Return value of the executed script or -1 on error + */ +int monitor_launch_script(MXS_MONITOR* mon, MXS_MONITORED_SERVER* ptr, const char* script, uint32_t timeout); + MXS_END_DECLS diff --git a/server/core/monitor.cc b/server/core/monitor.cc index 9e79fb9a3..99c296e3f 100644 --- a/server/core/monitor.cc +++ b/server/core/monitor.cc @@ -1235,16 +1235,6 @@ static std::string child_nodes(MXS_MONITORED_SERVER* servers, return ss.str(); } -/** - * Launch a script - * - * @param mon Owning monitor - * @param ptr The server which has changed state - * @param script Script to execute - * @param timeout Timeout in seconds for the script - * - * @return Return value of the executed script or -1 on error - */ int monitor_launch_script(MXS_MONITOR* mon, MXS_MONITORED_SERVER* ptr, const char* script, uint32_t timeout) { char arg[strlen(script) + 1];