summaryrefslogtreecommitdiffstats
path: root/connection.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-02-26 11:42:59 -0500
committerKristian Høgsberg <krh@bitplanet.net>2010-02-26 11:42:59 -0500
commitf52e03ff473a504a9a12a98b68b9b923de664fe2 (patch)
tree0fced1a3bd65ce47d1766fac1f928d34c3e8f0d4 /connection.c
parenta5db589efaedebf2b01a61baa2efc917a7e45d68 (diff)
downloadwayland-f52e03ff473a504a9a12a98b68b9b923de664fe2.tar.gz
wayland-f52e03ff473a504a9a12a98b68b9b923de664fe2.tar.xz
wayland-f52e03ff473a504a9a12a98b68b9b923de664fe2.zip
Import Eric Anholts hash table implementation
Adapted from git://people.freedesktop.org/~anholt/hash_table.
Diffstat (limited to 'connection.c')
-rw-r--r--connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/connection.c b/connection.c
index b37e940..264c6ab 100644
--- a/connection.c
+++ b/connection.c
@@ -280,7 +280,7 @@ wl_connection_vmarshal(struct wl_connection *connection,
void
wl_connection_demarshal(struct wl_connection *connection,
uint32_t size,
- struct wl_hash *objects,
+ struct wl_hash_table *objects,
void (*func)(void),
void *data, struct wl_object *target,
const struct wl_message *message)
@@ -342,7 +342,7 @@ wl_connection_demarshal(struct wl_connection *connection,
break;
case 'o':
types[i] = &ffi_type_pointer;
- object = wl_hash_lookup(objects, *p);
+ object = wl_hash_table_lookup(objects, *p);
if (object == NULL && *p != 0)
printf("unknown object (%d)\n", *p);
values[i].object = object;
@@ -351,7 +351,7 @@ wl_connection_demarshal(struct wl_connection *connection,
case 'n':
types[i] = &ffi_type_uint32;
values[i].new_id = *p;
- object = wl_hash_lookup(objects, *p);
+ object = wl_hash_table_lookup(objects, *p);
if (object != NULL)
printf("object already exists (%d)\n", *p);
p++;