| 381 | } |
| 382 | |
| 383 | void client_callback(avahi::Client *c, avahi::ClientState state, void *) { |
| 384 | switch (state) { |
| 385 | case avahi::CLIENT_S_RUNNING: |
| 386 | create_services(c); |
| 387 | break; |
| 388 | case avahi::CLIENT_FAILURE: |
| 389 | BOOST_LOG(error) << "Client failure: "sv << avahi::strerror(avahi::client_errno(c)); |
| 390 | avahi::simple_poll_quit(poll.get()); |
| 391 | break; |
| 392 | case avahi::CLIENT_S_COLLISION: |
| 393 | case avahi::CLIENT_S_REGISTERING: |
| 394 | if (group) { |
| 395 | avahi::entry_group_reset(group); |
| 396 | } |
| 397 | break; |
| 398 | case avahi::CLIENT_CONNECTING:; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | class deinit_t: public ::platf::deinit_t { |
| 403 | public: |
nothing calls this directly
no test coverage detected