summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-09-04 09:51:24 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-09-04 09:51:44 -0400
commit468c9bd9e741b720fbbfa10d1fd3fce9278bdf1b (patch)
tree9958de6681ce63840f8467c3c2ac3319be5d919c
parent25fddf65a8df409195616b308051d7e426cfa97a (diff)
Add back get/set user data wrappers for wl_display
-rw-r--r--src/wayland-client.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wayland-client.h b/src/wayland-client.h
index 3a66c42..691912a 100644
--- a/src/wayland-client.h
+++ b/src/wayland-client.h
@@ -47,6 +47,18 @@ void *wl_proxy_get_user_data(struct wl_proxy *proxy);
void *wl_display_bind(struct wl_display *display,
uint32_t name, const struct wl_interface *interface);
+static inline void
+wl_display_set_user_data(struct wl_display *display, void *user_data)
+{
+ wl_proxy_set_user_data((struct wl_proxy *) display, user_data);
+}
+
+static inline void *
+wl_display_get_user_data(struct wl_display *display)
+{
+ return wl_proxy_get_user_data((struct wl_proxy *) display);
+}
+
struct wl_callback *wl_display_sync(struct wl_display *display);
#include "wayland-client-protocol.h"