#ifndef _ECORE_DRM2_H # define _ECORE_DRM2_H # ifdef EAPI # undef EAPI # endif # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else // if __GNUC__ >= 4 # define EAPI # endif // if __GNUC__ >= 4 # else // ifdef __GNUC__ # define EAPI # endif // ifdef __GNUC__ # ifdef EFL_BETA_API_SUPPORT /* public enum for rotation */ typedef enum _Ecore_Drm2_Rotation { ECORE_DRM2_ROTATION_NORMAL = 1, ECORE_DRM2_ROTATION_90 = 2, ECORE_DRM2_ROTATION_180 = 4, ECORE_DRM2_ROTATION_270 = 8, ECORE_DRM2_ROTATION_REFLECT_X = 16, ECORE_DRM2_ROTATION_REFLECT_Y = 32 } Ecore_Drm2_Rotation; /* 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); EAPI Ecore_Drm2_Device *ecore_drm2_device_open(const char *seat, unsigned int tty); EAPI void ecore_drm2_device_close(Ecore_Drm2_Device *dev); EAPI void ecore_drm2_device_cursor_size_get(Ecore_Drm2_Device *dev, int *width, int *height); EAPI void ecore_drm2_device_preferred_depth_get(Ecore_Drm2_Device *dev, int *depth, int *bpp); # endif #endif