summaryrefslogtreecommitdiffstats
path: root/lassi-avahi.h
blob: 34484db1a9b01342641076e0023d2da5a59c2aeb (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
#ifndef foolassiavahihfoo
#define foolassiavahihfoo

#include <avahi-client/client.h>
#include <avahi-client/publish.h>
#include <avahi-client/lookup.h>
#include <avahi-glib/glib-watch.h>

typedef struct LassiAvahiInfo LassiAvahiInfo;
struct LassiServer;

struct LassiAvahiInfo {
    struct LassiServer *server;

    AvahiGLibPoll *poll;
    AvahiClient *client;

    AvahiEntryGroup *group;
    char *service_name;

    AvahiServiceBrowser *browser;
};

#include "lassi-server.h"

int lassi_avahi_init(LassiAvahiInfo *i, LassiServer *server);
void lassi_avahi_done(LassiAvahiInfo *i);

#endif