mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Add back get/set user data wrappers for wl_display
This commit is contained in:
		
							parent
							
								
									25fddf65a8
								
							
						
					
					
						commit
						468c9bd9e7
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -47,6 +47,18 @@ void *wl_proxy_get_user_data(struct wl_proxy *proxy);
 | 
				
			||||||
void *wl_display_bind(struct wl_display *display,
 | 
					void *wl_display_bind(struct wl_display *display,
 | 
				
			||||||
		      uint32_t name, const struct wl_interface *interface);
 | 
							      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);
 | 
					struct wl_callback *wl_display_sync(struct wl_display *display);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wayland-client-protocol.h"
 | 
					#include "wayland-client-protocol.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue