MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / remove_services

Function remove_services

test/test_struct/test_struct_server_impl.cpp:331–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329////////////////////////////////////////////////////////////////////////////////
330
331void remove_services(erpc::SimpleServer *server)
332{
333 /* Remove services
334 * Example: server->removeService (svc);
335 */
336 server->removeService(svc1);
337 server->removeService(svc2);
338 /* Delete unused service
339 */
340 delete svc1->getHandler();
341 delete svc2->getHandler();
342 delete svc1;
343 delete svc2;
344}
345
346#ifdef __cplusplus
347extern "C" {

Callers

nothing calls this directly

Calls 2

removeServiceMethod · 0.80
getHandlerMethod · 0.45

Tested by

no test coverage detected