mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_touch: Declare wlr_touch_impl usage as const
This brings it in line with wlr_keyboard and wlr_pointer
This commit is contained in:
		
							parent
							
								
									692a16cef7
								
							
						
					
					
						commit
						2d4bc66f11
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -16,7 +16,7 @@ struct wlr_touch_impl {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_touch_init(struct wlr_touch *touch,
 | 
					void wlr_touch_init(struct wlr_touch *touch,
 | 
				
			||||||
		struct wlr_touch_impl *impl);
 | 
							const struct wlr_touch_impl *impl);
 | 
				
			||||||
void wlr_touch_destroy(struct wlr_touch *touch);
 | 
					void wlr_touch_destroy(struct wlr_touch *touch);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,7 @@
 | 
				
			||||||
struct wlr_touch_impl;
 | 
					struct wlr_touch_impl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_touch {
 | 
					struct wlr_touch {
 | 
				
			||||||
	struct wlr_touch_impl *impl;
 | 
						const struct wlr_touch_impl *impl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct {
 | 
						struct {
 | 
				
			||||||
		struct wl_signal down;
 | 
							struct wl_signal down;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,7 +5,7 @@
 | 
				
			||||||
#include <wlr/types/wlr_touch.h>
 | 
					#include <wlr/types/wlr_touch.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_touch_init(struct wlr_touch *touch,
 | 
					void wlr_touch_init(struct wlr_touch *touch,
 | 
				
			||||||
		struct wlr_touch_impl *impl) {
 | 
							const struct wlr_touch_impl *impl) {
 | 
				
			||||||
	touch->impl = impl;
 | 
						touch->impl = impl;
 | 
				
			||||||
	wl_signal_init(&touch->events.down);
 | 
						wl_signal_init(&touch->events.down);
 | 
				
			||||||
	wl_signal_init(&touch->events.up);
 | 
						wl_signal_init(&touch->events.up);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue