ecore-drm2: Add start of Ecore_Drm2_Output structure

This commit is contained in:
Christopher Michael 2022-08-21 08:58:18 -04:00
parent b69bf1a6ac
commit 226d306454
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,9 @@
/* opaque structure to represent a drm device */
typedef struct _Ecore_Drm2_Device Ecore_Drm2_Device;
/* opaque structure to represent a drm output */
typedef struct _Ecore_Drm2_Output Ecore_Drm2_Output;
/* API functions */
EAPI int ecore_drm2_init(void);
EAPI int ecore_drm2_shutdown(void);

View File

@ -72,6 +72,11 @@ struct _Ecore_Drm2_Device
int fd;
};
struct _Ecore_Drm2_Output
{
Eina_Stringshare *name, *make, *model, *serial;
};
/* external drm function prototypes (for dlopen) */
extern void *(*sym_drmModeGetResources)(int fd);
extern void (*sym_drmModeFreeResources)(drmModeResPtr ptr);