mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Assert mandatory impl fields in wlr_output_init
This commit is contained in:
		
							parent
							
								
									6b6895168b
								
							
						
					
					
						commit
						d2581eadbc
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -191,6 +191,8 @@ void wlr_output_set_position(struct wlr_output *output, int32_t lx,
 | 
			
		|||
 | 
			
		||||
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
 | 
			
		||||
		const struct wlr_output_impl *impl) {
 | 
			
		||||
	assert(impl->enable && impl->make_current && impl->swap_buffers &&
 | 
			
		||||
		impl->transform);
 | 
			
		||||
	output->backend = backend;
 | 
			
		||||
	output->impl = impl;
 | 
			
		||||
	wl_list_init(&output->modes);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue