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

Function add_services

test/test_binary/test_binary_server_impl.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94////////////////////////////////////////////////////////////////////////////////
95
96void add_services(erpc::SimpleServer *server)
97{
98 /* Define services to add using dynamic memory allocation
99 * Exapmle:ArithmeticService_service * svc = new ArithmeticService_service();
100 */
101 svc = new Binary_service(new Binary_server());
102
103 /* Add services
104 * Example: server->addService(svc);
105 */
106 server->addService(svc);
107}
108
109////////////////////////////////////////////////////////////////////////////////
110// Remove service from server code

Callers

nothing calls this directly

Calls 1

addServiceMethod · 0.45

Tested by

no test coverage detected