]> git.meshlink.io Git - catta/blob - subscribe.h
Rename flx_* to avahi_*
[catta] / subscribe.h
1 #ifndef foosubscribehfoo
2 #define foosubscribehfoo
3
4 #include "llist.h"
5 #include "Avahi.h"
6 #include "subscribe.h"
7 #include "timeeventq.h"
8 #include "server.h"
9
10 struct _AvahiSubscription {
11     AvahiServer *server;
12     AvahiKey *key;
13     gint interface;
14     guchar protocol;
15     gint n_query;
16     guint sec_delay;
17
18     AvahiTimeEvent *time_event;
19
20     AvahiSubscriptionCallback callback;
21     gpointer userdata;
22
23     AVAHI_LLIST_FIELDS(AvahiSubscription, subscriptions);
24     AVAHI_LLIST_FIELDS(AvahiSubscription, by_key);
25 };
26
27 void avahi_subscription_notify(AvahiServer *s, AvahiInterface *i, AvahiRecord *record, AvahiSubscriptionEvent event);
28
29 gboolean avahi_is_subscribed(AvahiServer *s, AvahiKey *k);
30
31 #endif