MXS-2196: Remove listeners from services

All access to the listeners of a service are done via the listener
functions.
This commit is contained in:
Markus Mäkelä
2018-11-29 16:02:33 +02:00
parent 1c7d5f07c3
commit bb295b5cbe
10 changed files with 67 additions and 169 deletions

View File

@ -74,14 +74,14 @@ static int test1()
mxb_assert_message(0 != service_isvalid(service), "Service must be valid after creation");
mxb_assert_message(0 == strcmp("MyService", service->name), "Service must have given name");
fprintf(stderr, "\t..done\nAdding protocol testprotocol.");
mxb_assert_message(serviceCreateListener(service,
"TestProtocol",
"mariadbclient",
"localhost",
9876,
"MySQLAuth",
NULL,
NULL),
mxb_assert_message(listener_alloc(service,
"TestProtocol",
"mariadbclient",
"localhost",
9876,
"MySQLAuth",
NULL,
NULL),
"Add Protocol should succeed");
mxb_assert_message(0 != serviceHasListener(service, "TestProtocol", "mariadbclient", "localhost", 9876),
"Service should have new protocol as requested");