test/run_avahi: refactor to RunZeroconf (both avahi and bonjour)
This commit is contained in:
parent
5f34508aae
commit
9d6bf7e720
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "event/Loop.hxx"
|
||||
#include "ShutdownHandler.hxx"
|
||||
#include "zeroconf/avahi/Helper.hxx"
|
||||
#include "zeroconf/Helper.hxx"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -29,7 +29,7 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
|
|||
EventLoop event_loop;
|
||||
const ShutdownHandler shutdown_handler(event_loop);
|
||||
|
||||
const auto helper = AvahiInit(event_loop, "test", 1234);
|
||||
const ZeroconfHelper helper(event_loop, "test", 1234);
|
||||
|
||||
event_loop.Run();
|
||||
|
|
@ -105,10 +105,10 @@ test('TestIcu', executable(
|
|||
],
|
||||
))
|
||||
|
||||
if avahi_dep.found()
|
||||
if zeroconf_dep.found()
|
||||
executable(
|
||||
'run_avahi',
|
||||
'run_avahi.cxx',
|
||||
'RunZeroconf',
|
||||
'RunZeroconf.cxx',
|
||||
'ShutdownHandler.cxx',
|
||||
include_directories: inc,
|
||||
dependencies: [
|
||||
|
|
Loading…
Reference in New Issue