Changed the node code so it also works on systems that have multiple
[handlervirt.git] / node / node.h
blobea04bc400e56ebcc5180fa79243fe28f361f80e5
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
4 #include <errno.h>
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/malloc.h>
13 #include <avahi-common/error.h>
15 AvahiSimplePoll *simple_poll;
17 #define POLL 5
19 void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata);
20 void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata);
21 void parse_tender(AvahiServiceResolver *r, const char *name, AvahiStringList *txt);
22 void create_services(AvahiClient *c);
23 int pull_tender(const char *name);
24 void remove_everything();
25 void pull_all();
26 int has_tender(const char *name);