1 #ifndef foosubscribehfoo
2 #define foosubscribehfoo
4 typedef struct _flxSubscription flxSubscription;
11 FLX_SUBSCRIPTION_REMOVE,
12 FLX_SUBSCRIPTION_CHANGE
13 } flxSubscriptionEvent;
15 typedef void (*flxSubscriptionCallback)(flxSubscription *s, flxRecord *record, gint interface, guchar protocol, flxSubscriptionEvent event, gpointer userdata);
17 struct _flxSubscription {
25 flxTimeEvent *time_event;
27 flxSubscriptionCallback callback;
30 FLX_LLIST_FIELDS(flxSubscription, subscriptions);
31 FLX_LLIST_FIELDS(flxSubscription, by_key);
34 flxSubscription *flx_subscription_new(flxServer *s, flxKey *key, gint interface, guchar protocol, flxSubscriptionCallback callback, gpointer userdata);
35 void flx_subscription_free(flxSubscription *s);
37 void flx_subscription_notify(flxServer *s, flxInterface *i, flxRecord *record, flxSubscriptionEvent event);
39 gboolean flx_is_subscribed(flxServer *s, flxKey *k);