MXS-1929: Remove string parsing from Service

As the filters are only passed as a pipe separated list when the
configuration is being processed, there's no need to have the interface
conform to that. Passing a list of filter names makes it more flexible and
will make it's use in the runtime configuration easier.
This commit is contained in:
Markus Mäkelä
2018-08-06 02:30:42 +03:00
parent 3a185902b7
commit 56ede5bbf4
3 changed files with 6 additions and 25 deletions

View File

@ -71,7 +71,7 @@ public:
*
* @return True if filters were all found and were valid
*/
bool set_filters(const std::string& filters);
bool set_filters(const std::vector<std::string>& filters);
/**
* Get the list of filters this service uses
@ -311,9 +311,6 @@ void service_replace_parameter(Service *service, const char* key, const char* va
// Internal search function
Service* service_internal_find(const char *name);
// Assign filters to service
bool service_set_filters(Service *service, const char* filters);
/**
* @brief Check if a service uses a server
* @param service Service to check