mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Renaming.
This commit is contained in:
		
							parent
							
								
									9ac46ec5ed
								
							
						
					
					
						commit
						41a82fd2fc
					
				
					 13 changed files with 395 additions and 350 deletions
				
			
		
							
								
								
									
										37
									
								
								include/backend/drm/backend.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								include/backend/drm/backend.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,37 @@
 | 
			
		|||
#ifndef DRM_BACKEND_H
 | 
			
		||||
#define DRM_BACKEND_H
 | 
			
		||||
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
#include <EGL/egl.h>
 | 
			
		||||
#include <gbm.h>
 | 
			
		||||
#include <libudev.h>
 | 
			
		||||
 | 
			
		||||
#include "session.h"
 | 
			
		||||
#include "udev.h"
 | 
			
		||||
#include "event.h"
 | 
			
		||||
#include "drm.h"
 | 
			
		||||
 | 
			
		||||
struct wlr_drm_backend {
 | 
			
		||||
	int fd;
 | 
			
		||||
	bool paused;
 | 
			
		||||
 | 
			
		||||
	// Priority Queue (Max-heap)
 | 
			
		||||
	size_t event_cap;
 | 
			
		||||
	size_t event_len;
 | 
			
		||||
	struct wlr_drm_event *events;
 | 
			
		||||
 | 
			
		||||
	size_t display_len;
 | 
			
		||||
	struct wlr_drm_display *displays;
 | 
			
		||||
 | 
			
		||||
	uint32_t taken_crtcs;
 | 
			
		||||
 | 
			
		||||
	struct wlr_drm_renderer renderer;
 | 
			
		||||
	struct wlr_session session;
 | 
			
		||||
	struct wlr_udev udev;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct wlr_drm_backend *wlr_drm_backend_init(void);
 | 
			
		||||
void wlr_drm_backend_free(struct wlr_drm_backend *backend);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue