]> git.meshlink.io Git - catta/blob - announce.h
add known answer suppresion server part
[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     guint sec_delay;
21
22     FLX_LLIST_FIELDS(flxAnnouncement, by_interface);
23     FLX_LLIST_FIELDS(flxAnnouncement, by_entry);
24 };
25
26 void flx_announce_interface(flxServer *s, flxInterface *i);
27 void flx_announce_entry(flxServer *s, flxServerEntry *e);
28
29 void flx_goodbye_interface(flxServer *s, flxInterface *i, gboolean send);
30 void flx_goodbye_entry(flxServer *s, flxServerEntry *e, gboolean send);
31
32 void flx_goodbye_all(flxServer *s, gboolean send);
33
34 #endif