Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
Ecore_Drm.h File Reference

Ecore functions for dealing with drm, virtual terminals. More...

Data Structures

struct  _Ecore_Drm_Fb
 
struct  _Ecore_Drm_Device
 
struct  _Ecore_Drm_Event_Activate
 

Typedefs

typedef enum _Ecore_Drm_Evdev_Capabilities Ecore_Drm_Evdev_Capabilities
 
typedef enum _Ecore_Drm_Evdev_Event_Type Ecore_Drm_Evdev_Event_Type
 
typedef enum _Ecore_Drm_Seat_Capabilities Ecore_Drm_Seat_Capabilities
 
typedef struct _Ecore_Drm_Fb Ecore_Drm_Fb
 
typedef struct _Ecore_Drm_Device Ecore_Drm_Device
 
typedef struct _Ecore_Drm_Output_Mode Ecore_Drm_Output_Mode
 
typedef struct _Ecore_Drm_Output Ecore_Drm_Output
 
typedef struct _Ecore_Drm_Input Ecore_Drm_Input
 
typedef struct _Ecore_Drm_Evdev Ecore_Drm_Evdev
 
typedef struct _Ecore_Drm_Seat Ecore_Drm_Seat
 
typedef struct _Ecore_Drm_Sprite Ecore_Drm_Sprite
 
typedef struct _Ecore_Drm_Event_Activate Ecore_Drm_Event_Activate
 

Enumerations

enum  _Ecore_Drm_Evdev_Capabilities {
  EVDEV_KEYBOARD = (1 << 0),
  EVDEV_BUTTON = (1 << 1),
  EVDEV_MOTION_ABS = (1 << 2),
  EVDEV_MOTION_REL = (1 << 3),
  EVDEV_TOUCH = (1 << 4)
}
 
enum  _Ecore_Drm_Evdev_Event_Type {
  EVDEV_NONE,
  EVDEV_ABSOLUTE_TOUCH_DOWN,
  EVDEV_ABSOLUTE_MOTION,
  EVDEV_ABSOLUTE_TOUCH_UP,
  EVDEV_ABSOLUTE_MT_DOWN,
  EVDEV_ABSOLUTE_MT_MOTION,
  EVDEV_ABSOLUTE_MT_UP,
  EVDEV_RELATIVE_MOTION
}
 
enum  _Ecore_Drm_Seat_Capabilities {
  EVDEV_SEAT_POINTER = (1 << 0),
  EVDEV_SEAT_KEYBOARD = (1 << 1),
  EVDEV_SEAT_TOUCH = (1 << 2)
}
 

Functions

EAPI int ecore_drm_init (void)
 Initialize the Ecore_Drm library. More...
 
EAPI int ecore_drm_shutdown (void)
 Shutdown the Ecore_Drm library. More...
 
EAPI Ecore_Drm_Deviceecore_drm_device_find (const char *name, const char *seat)
 Find a drm device in the system. More...
 
EAPI void ecore_drm_device_free (Ecore_Drm_Device *dev)
 Free an Ecore_Drm_Device. More...
 
EAPI Eina_Bool ecore_drm_device_open (Ecore_Drm_Device *dev)
 Open an Ecore_Drm_Device. More...
 
EAPI Eina_Bool ecore_drm_device_close (Ecore_Drm_Device *dev)
 Close an Ecore_Drm_Device. More...
 
EAPI Eina_Bool ecore_drm_device_master_get (Ecore_Drm_Device *dev)
 Get if a given Ecore_Drm_Device is master. More...
 
EAPI Eina_Bool ecore_drm_device_master_set (Ecore_Drm_Device *dev)
 Set a given Ecore_Drm_Device to master. More...
 
EAPI Eina_Bool ecore_drm_device_master_drop (Ecore_Drm_Device *dev)
 Tell a given Ecore_Drm_Device to stop being master. More...
 
EAPI int ecore_drm_device_fd_get (Ecore_Drm_Device *dev)
 Get the file descriptor of Ecore_Drm_Device. More...
 
EAPI void ecore_drm_device_window_set (Ecore_Drm_Device *dev, unsigned int window)
 Set the window of Ecore_Drm_Device. More...
 
EAPI const char * ecore_drm_device_name_get (Ecore_Drm_Device *dev)
 Get the name of the Ecore_Drm_Device. More...
 
EAPI Eina_Bool ecore_drm_tty_open (Ecore_Drm_Device *dev, const char *name)
 Open a tty for use. More...
 
EAPI Eina_Bool ecore_drm_tty_close (Ecore_Drm_Device *dev)
 Close an already opened tty. More...
 
EAPI Eina_Bool ecore_drm_tty_release (Ecore_Drm_Device *dev)
 Release a virtual terminal. More...
 
EAPI Eina_Bool ecore_drm_tty_acquire (Ecore_Drm_Device *dev)
 Acquire a virtual terminal. More...
 
EAPI int ecore_drm_tty_get (Ecore_Drm_Device *dev)
 Get the opened virtual terminal file descriptor. More...
 
EAPI Eina_Bool ecore_drm_outputs_create (Ecore_Drm_Device *dev)
 Create outputs for a drm device. More...
 
EAPI void ecore_drm_output_free (Ecore_Drm_Output *output)
 Free an Ecore_Drm_Output. More...
 
EAPI void ecore_drm_output_cursor_size_set (Ecore_Drm_Output *output, int handle, int w, int h)
 Set the cursor size for Ecore_Drm_Output. More...
 
EAPI Eina_Bool ecore_drm_output_enable (Ecore_Drm_Output *output)
 
EAPI void ecore_drm_output_fb_release (Ecore_Drm_Output *output, Ecore_Drm_Fb *fb)
 
EAPI void ecore_drm_output_repaint (Ecore_Drm_Output *output)
 
EAPI void ecore_drm_output_size_get (Ecore_Drm_Device *dev, int output, int *w, int *h)
 Get the output size of Ecore_Drm_Device. More...
 
EAPI void ecore_drm_outputs_geometry_get (Ecore_Drm_Device *dev, int *x, int *y, int *w, int *h)
 
EAPI Eina_Bool ecore_drm_inputs_create (Ecore_Drm_Device *dev)
 
EAPI void ecore_drm_inputs_destroy (Ecore_Drm_Device *dev)
 
EAPI Eina_Bool ecore_drm_inputs_enable (Ecore_Drm_Input *input)
 
EAPI void ecore_drm_inputs_disable (Ecore_Drm_Input *input)
 
EAPI void ecore_drm_inputs_device_axis_size_set (Ecore_Drm_Evdev *dev, int w, int h)
 Set the axis size of the given device. More...
 
EAPI Eina_Bool ecore_drm_sprites_create (Ecore_Drm_Device *dev)
 
EAPI void ecore_drm_sprites_destroy (Ecore_Drm_Device *dev)
 
EAPI void ecore_drm_sprites_fb_set (Ecore_Drm_Sprite *sprite, int fb_id, int flags)
 
EAPI Eina_Bool ecore_drm_sprites_crtc_supported (Ecore_Drm_Output *output, unsigned int supported)
 
EAPI Ecore_Drm_Fbecore_drm_fb_create (Ecore_Drm_Device *dev, int width, int height)
 
EAPI void ecore_drm_fb_destroy (Ecore_Drm_Fb *fb)
 
EAPI Eina_Bool ecore_drm_launcher_connect (Ecore_Drm_Device *dev)
 
EAPI void ecore_drm_launcher_disconnect (Ecore_Drm_Device *dev)
 

Variables

EAPI int ECORE_DRM_EVENT_ACTIVATE
 

Detailed Description

Ecore functions for dealing with drm, virtual terminals.

Function Documentation

EAPI void ecore_drm_outputs_geometry_get ( Ecore_Drm_Device dev,
int *  x,
int *  y,
int *  w,
int *  h 
)
Since
1.12

References EINA_LIST_FOREACH.

EAPI void ecore_drm_inputs_device_axis_size_set ( Ecore_Drm_Evdev *  edev,
int  w,
int  h 
)

Set the axis size of the given device.

Parameters
devThe device to set the axis size to.
wThe width of the axis.
hThe height of the axis.

This function sets set the width w and height h of the axis of device dev. If dev is a relative input device, a width and height must set for it. If its absolute set the ioctl correctly, if not, unsupported device.

References eeze_udev_find_by_subsystem_sysname(), eeze_udev_syspath_get_property(), eina_list_count(), EINA_LIST_FREE, eina_stringshare_del(), and ERR.