mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Refactor udev and drm initialization
This commit is contained in:
		
							parent
							
								
									62d612a01e
								
							
						
					
					
						commit
						40b85d992a
					
				
					 8 changed files with 69 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -4,8 +4,9 @@
 | 
			
		|||
#include <wayland-server.h>
 | 
			
		||||
#include <wlr/session.h>
 | 
			
		||||
#include <wlr/backend.h>
 | 
			
		||||
#include <wlr/backend/udev.h>
 | 
			
		||||
 | 
			
		||||
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
 | 
			
		||||
	struct wlr_session *session);
 | 
			
		||||
		struct wlr_session *session, struct wlr_udev *udev, int gpu_fd);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								include/wlr/backend/udev.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								include/wlr/backend/udev.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
#ifndef _WLR_BACKEND_UDEV_H
 | 
			
		||||
#define _WLR_BACKEND_UDEV_H
 | 
			
		||||
 | 
			
		||||
struct wlr_udev;
 | 
			
		||||
 | 
			
		||||
struct wlr_udev *wlr_udev_create(struct wl_display *display);
 | 
			
		||||
void wlr_udev_destroy(struct wlr_udev *udev);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue