mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend: move get_drm_fd to public interface
The get_drm_fd was made available in an internal header with a53ab146f. Move it
now to the public header so consumers opting in to the unstable interfaces can
make use of it.
			
			
This commit is contained in:
		
							parent
							
								
									b29ac8fbac
								
							
						
					
					
						commit
						b36af22c94
					
				
					 5 changed files with 10 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,6 @@
 | 
			
		|||
#include <wlr/backend/interface.h>
 | 
			
		||||
#include <wlr/backend/session.h>
 | 
			
		||||
#include <wlr/util/log.h>
 | 
			
		||||
#include "backend/backend.h"
 | 
			
		||||
#include "backend/multi.h"
 | 
			
		||||
#include "util/signal.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -103,7 +102,7 @@ static int multi_backend_get_drm_fd(struct wlr_backend *backend) {
 | 
			
		|||
	struct subbackend_state *sub;
 | 
			
		||||
	wl_list_for_each(sub, &multi->backends, link) {
 | 
			
		||||
		if (sub->backend->impl->get_drm_fd) {
 | 
			
		||||
			return backend_get_drm_fd(sub->backend);
 | 
			
		||||
			return wlr_backend_get_drm_fd(sub->backend);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue