diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-27 11:31:07 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-27 11:31:07 -0400 |
commit | 35fc72eb8b967499332aaf1e3cf20232b7a7efac (patch) | |
tree | fad6ec28493210ad1f5aa8741d66f31dd9f7a007 | |
parent | ac73a74f43bada3e6ed8e7e49e9f5e02b22f7d46 (diff) |
Add wl_proxy_get_id()
-rw-r--r-- | src/wayland-client.c | 6 | ||||
-rw-r--r-- | src/wayland-client.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index fb69ed8..1a24abf 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -583,3 +583,9 @@ wl_proxy_get_user_data(struct wl_proxy *proxy) { return proxy->user_data; } + +WL_EXPORT uint32_t +wl_proxy_get_id(struct wl_proxy *proxy) +{ + return proxy->object.id; +} diff --git a/src/wayland-client.h b/src/wayland-client.h index 5746e85..5c7fd2f 100644 --- a/src/wayland-client.h +++ b/src/wayland-client.h @@ -45,6 +45,7 @@ int wl_proxy_add_listener(struct wl_proxy *proxy, void (**implementation)(void), void *data); void wl_proxy_set_user_data(struct wl_proxy *proxy, void *user_data); void *wl_proxy_get_user_data(struct wl_proxy *proxy); +uint32_t wl_proxy_get_id(struct wl_proxy *proxy); void *wl_display_bind(struct wl_display *display, uint32_t name, const struct wl_interface *interface); |