MXS-1220: Add deletion of listeners

The listeners can now be deleted via the REST API. Documented the added
endpoint in the REST API documentation.
This commit is contained in:
Markus Mäkelä
2017-07-03 20:18:45 +03:00
parent 7e40c93cc4
commit 35745ee925
5 changed files with 85 additions and 0 deletions

View File

@ -258,6 +258,16 @@ bool serviceHasListener(SERVICE *service, const char *protocol,
*/
bool service_port_is_used(unsigned short port);
/**
* @brief Check if the service has a listener with a matching name
*
* @param service Service to check
* @param name Name to compare to
*
* @return True if the service has a listener with a matching name
*/
bool service_has_named_listener(SERVICE *service, const char *name);
int serviceGetUser(SERVICE *service, char **user, char **auth);
int serviceSetUser(SERVICE *service, const char *user, const char *auth);
bool serviceSetFilters(SERVICE *service, char *filters);