aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-01-10 07:02:53 +0000
committerChris Michael <cp.michael@samsung.com>2014-01-29 15:27:23 +0000
commit43bdee148929a0af4d5eba90640ac5ad675f0fb3 (patch)
treeecdb905de75c9380ab5926d922b6a47dba943048
parentExpose the Ecore_Drm_Fb structure. (diff)
downloadefl-43bdee148929a0af4d5eba90640ac5ad675f0fb3.tar.gz
Expose ecore_drm_fb functions as API functions
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/ecore_drm_fb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c
index 5ac4b04205..7395274e25 100644
--- a/src/lib/ecore_drm/ecore_drm_fb.c
+++ b/src/lib/ecore_drm/ecore_drm_fb.c
@@ -11,8 +11,8 @@
/* TODO: DOXY !! */
-Ecore_Drm_Fb *
-_ecore_drm_fb_create(Ecore_Drm_Device *dev, int width, int height)
+EAPI Ecore_Drm_Fb *
+ecore_drm_fb_create(Ecore_Drm_Device *dev, int width, int height)
{
Ecore_Drm_Fb *fb;
struct drm_mode_create_dumb carg;
@@ -61,6 +61,8 @@ _ecore_drm_fb_create(Ecore_Drm_Device *dev, int width, int height)
goto map_err;
}
+ memset(fb->mmap, 0, fb->size);
+
return fb;
map_err:
@@ -74,8 +76,8 @@ create_err:
return NULL;
}
-void
-_ecore_drm_fb_destroy(Ecore_Drm_Fb *fb)
+EAPI void
+ecore_drm_fb_destroy(Ecore_Drm_Fb *fb)
{
struct drm_mode_destroy_dumb darg;