client: Invoke new_id closure arguments as pointers instead of integers
authorJonas Ådahl <jadahl@gmail.com>
Fri, 8 Mar 2013 17:44:16 +0000 (18:44 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Mar 2013 16:29:03 +0000 (12:29 -0400)
commitca53745fb7f23ade648eeb292089a765151687e3
treeb5378e84337fb1be2bd18a20372e4666e34aeb02
parentdaa4e43b30c09d5a3fbcd7eed6b2c98c84a1d37f
client: Invoke new_id closure arguments as pointers instead of integers

This commit adds a flags parameter to wl_closure_invoke(). The so far
added flags are ment to specify if the invokation is client side or
server side. When on the server side, closure arguments of type 'new_id'
should be invoked as a integer id while on the client side they should
be invoked as a pointer to a proxy object.

This fixes a bug happening when the address of a client side 'new_id'
proxy object did not fit in a 32 bit integer.

krh: Squashed test suite compile fix from Jason Ekstrand.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/connection.c
src/wayland-client.c
src/wayland-private.h
src/wayland-server.c
tests/connection-test.c
tests/os-wrappers-test.c