Rework message send/receive functions to be able to set an fd easier.

Add drm clock monotonic define if it does not exist.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-12-30 07:58:36 +00:00
parent d1da3d85f7
commit 45c5605840
1 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,6 @@
# include <sys/socket.h>
# include <sys/stat.h>
# include <sys/ioctl.h>
/* # include <sys/un.h> */
# include <linux/major.h>
# include <linux/vt.h>
@ -38,6 +37,10 @@
# define DRM_MAJOR 226
# endif
# ifndef DRM_CAP_TIMESTAMP_MONOTONIC
# define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
# endif
# ifdef ECORE_DRM_DEFAULT_LOG_COLOR
# undef ECORE_DRM_DEFAULT_LOG_COLOR
# endif
@ -102,6 +105,7 @@ struct _Ecore_Drm_Device
int id, fd;
const char *devname;
const char *devpath;
clockid_t drm_clock;
struct
{
@ -111,7 +115,7 @@ struct _Ecore_Drm_Device
} tty;
};
void _ecore_drm_message_send(int opcode, void *data, size_t bytes);
Eina_Bool _ecore_drm_message_receive(int opcode, void **data, size_t bytes);
void _ecore_drm_message_send(int opcode, int fd, void *data, size_t bytes);
Eina_Bool _ecore_drm_message_receive(int opcode, int *fd, void **data, size_t bytes);
#endif