#ifndef _ECORE_DRM2_PRIVATE_H # define _ECORE_DRM2_PRIVATE_H # ifdef HAVE_CONFIG_H # include "config.h" # endif /* include system headers */ # include # include # include # include # include # include # include /* include drm headers */ # include # include # include # include # include /* include needed EFL headers */ # include "Ecore.h" # include "ecore_private.h" # include "Eeze.h" # include "Elput.h" # include /* define necessary vars/macros for ecore_drm2 log domain */ extern int _ecore_drm2_log_dom; /* define externval variable for atomic */ extern Eina_Bool _ecore_drm2_atomic_use; # ifdef ECORE_DRM2_DEFAULT_LOG_COLOR # undef ECORE_DRM2_DEFAULT_LOG_COLOR # endif # define ECORE_DRM2_DEFAULT_LOG_COLOR EINA_COLOR_BLUE # ifdef ERR # undef ERR # endif # define ERR(...) EINA_LOG_DOM_ERR(_ecore_drm2_log_dom, __VA_ARGS__) # ifdef DBG # undef DBG # endif # define DBG(...) EINA_LOG_DOM_DBG(_ecore_drm2_log_dom, __VA_ARGS__) # ifdef INF # undef INF # endif # define INF(...) EINA_LOG_DOM_INFO(_ecore_drm2_log_dom, __VA_ARGS__) # ifdef WRN # undef WRN # endif # define WRN(...) EINA_LOG_DOM_WARN(_ecore_drm2_log_dom, __VA_ARGS__) # ifdef CRIT # undef CRIT # endif # define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_drm2_log_dom, __VA_ARGS__) /* internal structures */ struct _Ecore_Drm2_Device { Elput_Manager *em; int fd; }; /* external drm function prototypes (for dlopen) */ extern void *(*sym_drmModeGetResources)(int fd); extern void (*sym_drmModeFreeResources)(drmModeResPtr ptr); extern int (*sym_drmSetClientCap)(int fd, uint64_t capability, uint64_t value); #endif