MXS-2220 Move more server functions inside class

This commit is contained in:
Esa Korhonen
2019-01-07 13:33:31 +02:00
parent 8b53e30678
commit d5c78eb31f
13 changed files with 119 additions and 142 deletions

View File

@ -22,6 +22,7 @@
#include "internal/filter.hh"
#include "internal/modules.hh"
#include "internal/monitor.hh"
#include "internal/server.hh"
/** Size of the error buffer */
#define MODULECMD_ERRBUF_SIZE 512
@ -292,7 +293,7 @@ static bool process_argument(const MODULECMD* cmd,
break;
case MODULECMD_ARG_SERVER:
if ((arg->value.server = server_find_by_unique_name((char*)value)))
if ((arg->value.server = Server::find_by_unique_name((char*)value)))
{
if (MODULECMD_ALLOW_NAME_MISMATCH(type)
|| (arg->value.server->protocol() == cmd->domain))