diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-03-25 21:52:55 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-03-25 21:52:55 +0000 |
commit | ad1f9d3725a300f10eca071c6fe2f2c583f51436 (patch) | |
tree | 2ee998675cf21060c657f6611aace02eb9c3e339 /announce.h | |
parent | c8dd2dc8f91a322178c43281cbc5c8fc16da5219 (diff) |
* add announcing/goodbye
* add cache maintaince
* fix a bug in prioq.c
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@16 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'announce.h')
-rw-r--r-- | announce.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/announce.h b/announce.h new file mode 100644 index 0000000..0e65eae --- /dev/null +++ b/announce.h @@ -0,0 +1,33 @@ +#ifndef fooannouncehfoo +#define fooannouncehfoo + +#include <glib.h> + +typedef struct _flxAnnouncement flxAnnouncement; + +#include "llist.h" +#include "iface.h" +#include "server.h" +#include "timeeventq.h" + +struct _flxAnnouncement { + flxServer *server; + flxInterface *interface; + flxServerEntry *entry; + + flxTimeEvent *time_event; + guint n_announced; + + FLX_LLIST_FIELDS(flxAnnouncement, by_interface); + FLX_LLIST_FIELDS(flxAnnouncement, by_entry); +}; + +void flx_announce_interface(flxServer *s, flxInterface *i); +void flx_announce_entry(flxServer *s, flxServerEntry *e); + +void flx_goodbye_interface(flxServer *s, flxInterface *i, gboolean send); +void flx_goodbye_entry(flxServer *s, flxServerEntry *e, gboolean send); + +void flx_goodbye_all(flxServer *s, gboolean send); + +#endif |