summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-06-09 14:20:05 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-09 14:20:05 -0400
commitbbd18510d690cfc02c20e36850a0aea75fd4e4a0 (patch)
tree78b703385c87acc9d2c61e726fd806090f0443e0 /src/lib/ecore_drm2/ecore_drm2.c
parentde12621c900177b99fd05684f2e101cea9e628f3 (diff)
ecore-drm2: Remove #ifdef HAVE_ATOMIC_DRM
As we now use static_libs/libdrm for compiling ecore-drm2, we can remove the atomic #ifdefs as we can run-time check this now. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2.c b/src/lib/ecore_drm2/ecore_drm2.c
index 48d2d2f..a43b113 100644
--- a/src/lib/ecore_drm2/ecore_drm2.c
+++ b/src/lib/ecore_drm2/ecore_drm2.c
@@ -17,14 +17,12 @@ int (*sym_drmIoctl)(int fd, unsigned long request, void *arg) = NULL;
17void *(*sym_drmModeObjectGetProperties)(int fd, uint32_t object_id, uint32_t object_type) = NULL; 17void *(*sym_drmModeObjectGetProperties)(int fd, uint32_t object_id, uint32_t object_type) = NULL;
18void (*sym_drmModeFreeObjectProperties)(drmModeObjectPropertiesPtr ptr) = NULL; 18void (*sym_drmModeFreeObjectProperties)(drmModeObjectPropertiesPtr ptr) = NULL;
19int (*sym_drmModeCreatePropertyBlob)(int fd, const void *data, size_t size, uint32_t *id) = NULL; 19int (*sym_drmModeCreatePropertyBlob)(int fd, const void *data, size_t size, uint32_t *id) = NULL;
20# ifdef HAVE_ATOMIC_DRM
21void *(*sym_drmModeAtomicAlloc)(void) = NULL; 20void *(*sym_drmModeAtomicAlloc)(void) = NULL;
22void (*sym_drmModeAtomicFree)(drmModeAtomicReqPtr req) = NULL; 21void (*sym_drmModeAtomicFree)(drmModeAtomicReqPtr req) = NULL;
23int (*sym_drmModeAtomicAddProperty)(drmModeAtomicReqPtr req, uint32_t object_id, uint32_t property_id, uint64_t value) = NULL; 22int (*sym_drmModeAtomicAddProperty)(drmModeAtomicReqPtr req, uint32_t object_id, uint32_t property_id, uint64_t value) = NULL;
24int (*sym_drmModeAtomicCommit)(int fd, drmModeAtomicReqPtr req, uint32_t flags, void *user_data) = NULL; 23int (*sym_drmModeAtomicCommit)(int fd, drmModeAtomicReqPtr req, uint32_t flags, void *user_data) = NULL;
25void (*sym_drmModeAtomicSetCursor)(drmModeAtomicReqPtr req, int cursor) = NULL; 24void (*sym_drmModeAtomicSetCursor)(drmModeAtomicReqPtr req, int cursor) = NULL;
26int (*sym_drmModeAtomicMerge)(drmModeAtomicReqPtr base, drmModeAtomicReqPtr augment); 25int (*sym_drmModeAtomicMerge)(drmModeAtomicReqPtr base, drmModeAtomicReqPtr augment);
27# endif
28void *(*sym_drmModeGetEncoder)(int fd, uint32_t encoder_id) = NULL; 26void *(*sym_drmModeGetEncoder)(int fd, uint32_t encoder_id) = NULL;
29void (*sym_drmModeFreeEncoder)(drmModeEncoderPtr ptr) = NULL; 27void (*sym_drmModeFreeEncoder)(drmModeEncoderPtr ptr) = NULL;
30void *(*sym_drmModeGetCrtc)(int fd, uint32_t crtcId) = NULL; 28void *(*sym_drmModeGetCrtc)(int fd, uint32_t crtcId) = NULL;
@@ -96,14 +94,12 @@ _ecore_drm2_link(void)
96 SYM(drm_lib, drmModeObjectGetProperties); 94 SYM(drm_lib, drmModeObjectGetProperties);
97 SYM(drm_lib, drmModeFreeObjectProperties); 95 SYM(drm_lib, drmModeFreeObjectProperties);
98 SYM(drm_lib, drmModeCreatePropertyBlob); 96 SYM(drm_lib, drmModeCreatePropertyBlob);
99#ifdef HAVE_ATOMIC_DRM
100 SYM(drm_lib, drmModeAtomicAlloc); 97 SYM(drm_lib, drmModeAtomicAlloc);
101 SYM(drm_lib, drmModeAtomicFree); 98 SYM(drm_lib, drmModeAtomicFree);
102 SYM(drm_lib, drmModeAtomicAddProperty); 99 SYM(drm_lib, drmModeAtomicAddProperty);
103 SYM(drm_lib, drmModeAtomicCommit); 100 SYM(drm_lib, drmModeAtomicCommit);
104 SYM(drm_lib, drmModeAtomicSetCursor); 101 SYM(drm_lib, drmModeAtomicSetCursor);
105 SYM(drm_lib, drmModeAtomicMerge); 102 SYM(drm_lib, drmModeAtomicMerge);
106#endif
107 SYM(drm_lib, drmModeGetEncoder); 103 SYM(drm_lib, drmModeGetEncoder);
108 SYM(drm_lib, drmModeFreeEncoder); 104 SYM(drm_lib, drmModeFreeEncoder);
109 SYM(drm_lib, drmModeGetCrtc); 105 SYM(drm_lib, drmModeGetCrtc);