6 #include <avahi-client/client.h>
7 #include <avahi-client/publish.h>
8 #include <avahi-client/lookup.h>
10 #include <avahi-common/alternative.h>
11 #include <avahi-common/simple-watch.h>
12 #include <avahi-common/thread-watch.h>
13 #include <avahi-common/malloc.h>
14 #include <avahi-common/error.h>
16 #include <libvirt/libvirt.h>
18 AvahiSimplePoll
*simple_poll
;
19 AvahiServiceBrowser
*offerServiceBrowser
;
23 void client_callback(AvahiClient
*c
, AvahiClientState state
, AVAHI_GCC_UNUSED
void * userdata
);
24 void entry_group_callback(AvahiEntryGroup
*g
, AvahiEntryGroupState state
, AVAHI_GCC_UNUSED
void *userdata
);
25 void parse_tender(AvahiServiceResolver
*r
, const char *name
, AvahiStringList
*txt
);
26 void create_services(AvahiClient
*c
);
27 int pull_tender(const char *name
);
28 void remove_everything();
30 int has_tender(const char *name
);
31 int migrate_domain(AvahiClient
*client
, AvahiThreadedPoll
*threaded_poll
, virDomainPtr dom
);
32 void migrate_everything();