mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	client: add wl_proxy_get_interface()
This is useful for the wayland bindings/scanner I'm working on for a dynamically typed language. Signed-off-by: Isaac Freund <mail@isaacfreund.com>
This commit is contained in:
		
							parent
							
								
									3214f858e2
								
							
						
					
					
						commit
						4497232102
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2513,6 +2513,20 @@ wl_proxy_get_class(struct wl_proxy *proxy)
 | 
			
		|||
	return proxy->object.interface->name;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** Get the interface of a proxy object
 | 
			
		||||
 *
 | 
			
		||||
 * \param proxy The proxy object
 | 
			
		||||
 * \return The interface of the object associated with the proxy
 | 
			
		||||
 *
 | 
			
		||||
 * \memberof wl_proxy
 | 
			
		||||
 * \since 1.24
 | 
			
		||||
 */
 | 
			
		||||
WL_EXPORT const struct wl_interface *
 | 
			
		||||
wl_proxy_get_interface(struct wl_proxy *proxy)
 | 
			
		||||
{
 | 
			
		||||
	return proxy->object.interface;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** Get the display of a proxy object
 | 
			
		||||
 *
 | 
			
		||||
 * \param proxy The proxy object
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue