summaryrefslogtreecommitdiffstats
path: root/announce.h
blob: 0e65eae6b1668f0b4ffe79b39c704040802c7262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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