]> git.meshlink.io Git - catta/blob - avahi-core/wide-area.h
84fa851c677ef7f996c21ff20e5291d9be224a08
[catta] / avahi-core / wide-area.h
1 #ifndef foowideareahfoo
2 #define foowideareahfoo
3
4 /* $Id$ */
5
6 /***
7   This file is part of avahi.
8
9   avahi is free software; you can redistribute it and/or modify it
10   under the terms of the GNU Lesser General Public License as
11   published by the Free Software Foundation; either version 2.1 of the
12   License, or (at your option) any later version.
13
14   avahi is distributed in the hope that it will be useful, but WITHOUT
15   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
17   Public License for more details.
18
19   You should have received a copy of the GNU Lesser General Public
20   License along with avahi; if not, write to the Free Software
21   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22   USA.
23 ***/
24
25 #include "lookup.h"
26 #include "browse.h"
27
28 typedef struct AvahiWideAreaLookupEngine AvahiWideAreaLookupEngine;
29 typedef struct AvahiWideAreaLookup AvahiWideAreaLookup;
30
31 typedef void (*AvahiWideAreaLookupCallback)(
32     AvahiWideAreaLookupEngine *e,
33     AvahiBrowserEvent event,
34     AvahiLookupResultFlags flags,
35     AvahiRecord *r,
36     void *userdata);
37
38 AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s);
39 void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e);
40
41 unsigned avahi_wide_area_scan_cache(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata);
42 void avahi_wide_area_cache_dump(AvahiWideAreaLookupEngine *e, AvahiDumpCallback callback, void* userdata);
43 void avahi_wide_area_set_servers(AvahiWideAreaLookupEngine *e, const AvahiAddress *a, unsigned n);
44 void avahi_wide_area_clear_cache(AvahiWideAreaLookupEngine *e);
45 void avahi_wide_area_cleanup(AvahiWideAreaLookupEngine *e);
46 int avahi_wide_area_has_servers(AvahiWideAreaLookupEngine *e);
47
48 AvahiWideAreaLookup *avahi_wide_area_lookup_new(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata);
49 void avahi_wide_area_lookup_free(AvahiWideAreaLookup *q);
50
51
52
53 #endif
54