1 #ifndef foowideareahfoo
2 #define foowideareahfoo
7 This file is part of avahi.
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.
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.
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
28 typedef struct AvahiWideAreaLookupEngine AvahiWideAreaLookupEngine;
29 typedef struct AvahiWideAreaLookup AvahiWideAreaLookup;
31 typedef void (*AvahiWideAreaLookupCallback)(
32 AvahiWideAreaLookupEngine *e,
33 AvahiBrowserEvent event,
34 AvahiLookupResultFlags flags,
38 AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s);
39 void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e);
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);
48 AvahiWideAreaLookup *avahi_wide_area_lookup_new(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata);
49 void avahi_wide_area_lookup_free(AvahiWideAreaLookup *q);