• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/avahi-0.6.25/avahi-core/

Lines Matching defs:*

0 #ifndef foohashmaphfoo
2 #define foohashmaphfoo
4 /* $Id$ */
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
22 USA.
25 #include <avahi-common/cdecl.h>
27 AVAHI_C_DECL_BEGIN
29 typedef struct AvahiHashmap AvahiHashmap;
31 typedef unsigned (*AvahiHashFunc)(const void *data);
32 typedef int (*AvahiEqualFunc)(const void *a, const void *b);
33 typedef void (*AvahiFreeFunc)(void *p);
35 AvahiHashmap* avahi_hashmap_new(AvahiHashFunc hash_func, AvahiEqualFunc equal_func, AvahiFreeFunc key_free_func, AvahiFreeFunc value_free_func);
37 void avahi_hashmap_free(AvahiHashmap *m);
38 void* avahi_hashmap_lookup(AvahiHashmap *m, const void *key);
39 int avahi_hashmap_insert(AvahiHashmap *m, void *key, void *value);
40 int avahi_hashmap_replace(AvahiHashmap *m, void *key, void *value);
41 void avahi_hashmap_remove(AvahiHashmap *m, const void *key);
43 typedef void (*AvahiHashmapForeachCallback)(void *key, void *value, void *userdata);
45 void avahi_hashmap_foreach(AvahiHashmap *m, AvahiHashmapForeachCallback callback, void *userdata);
47 unsigned avahi_string_hash(const void *data);
48 int avahi_string_equal(const void *a, const void *b);
50 unsigned avahi_int_hash(const void *data);
51 int avahi_int_equal(const void *a, const void *b);
53 AVAHI_C_DECL_END
55 #endif