aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-01-10 07:26:58 +0000
committerChris Michael <cp.michael@samsung.com>2014-01-29 15:27:23 +0000
commita7376722f73b12aac32db296437515aa3674424c (patch)
treecc4001cbf9887227fb0830a034d7ef3c0b2bfdc2
parentAdd code to create an EGL Context for an output. (diff)
downloadefl-a7376722f73b12aac32db296437515aa3674424c.tar.gz
Add API functions for returning the gbm device
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/ecore_drm.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index 5f67d5b7bf..ac181e379e 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -393,3 +393,22 @@ ecore_drm_shutdown(void)
/* return init count */
return _ecore_drm_init_count;
}
+
+EAPI void *
+ecore_drm_gbm_get(Ecore_Drm_Device *dev)
+{
+ if (!dev) return NULL;
+
+#ifdef HAVE_GBM
+ return dev->gbm;
+#endif
+
+ return NULL;
+}
+
+EAPI unsigned int
+ecore_drm_gbm_format_get(Ecore_Drm_Device *dev)
+{
+ if (!dev) return 0;
+ return dev->format;
+}