MXS-2002 Remove GenericFunction typedef

It does not save much in characters compared to std::function<void ()>
and it's a bit misleading as not just any callable object will do, but
only one that takes no argument and returns void.
This commit is contained in:
Johan Wikman
2018-08-10 09:58:56 +03:00
parent 43b53fda7a
commit e2902b6513
3 changed files with 9 additions and 9 deletions

View File

@ -191,7 +191,7 @@ private:
MariaDBServer* get_server_info(MXS_MONITORED_SERVER* db);
MariaDBServer* get_server(int64_t id);
MariaDBServer* get_server(SERVER* server);
bool execute_manual_command(GenericFunction command, json_t** error_out);
bool execute_manual_command(std::function<void ()> command, json_t** error_out);
std::string diagnostics_to_string() const;
json_t* diagnostics_to_json() const;