]> git.meshlink.io Git - catta/blob - announce.h
* add announcing/goodbye
[catta] / announce.h
1 #ifndef fooannouncehfoo
2 #define fooannouncehfoo
3
4 #include <glib.h>
5
6 typedef struct _flxAnnouncement flxAnnouncement;
7
8 #include "llist.h"
9 #include "iface.h"
10 #include "server.h"
11 #include "timeeventq.h"
12
13 struct _flxAnnouncement {
14     flxServer *server;
15     flxInterface *interface;
16     flxServerEntry *entry;
17     
18     flxTimeEvent *time_event;
19     guint n_announced;
20
21     FLX_LLIST_FIELDS(flxAnnouncement, by_interface);
22     FLX_LLIST_FIELDS(flxAnnouncement, by_entry);
23 };
24
25 void flx_announce_interface(flxServer *s, flxInterface *i);
26 void flx_announce_entry(flxServer *s, flxServerEntry *e);
27
28 void flx_goodbye_interface(flxServer *s, flxInterface *i, gboolean send);
29 void flx_goodbye_entry(flxServer *s, flxServerEntry *e, gboolean send);
30
31 void flx_goodbye_all(flxServer *s, gboolean send);
32
33 #endif