e_pixmap: add e_pixmap_ref_resource_get
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 19 Nov 2018 02:23:41 +0000 (11:23 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 19 Nov 2018 11:51:27 +0000 (20:51 +0900)
Change-Id: I7d8971e77f42a5a9f1c25b19ed256940467fe4cd

src/bin/e_pixmap.c
src/bin/e_pixmap.h

index 065b5a3e69a1be0d60a68257aba38e1f25409533..2f992eeb2f6619f5b5cdc2a4c5a661eecf1d498e 100644 (file)
@@ -1113,3 +1113,11 @@ e_pixmap_buffer_clear(E_Pixmap *cp, Eina_Bool only_free)
      }
 
 }
+
+EINTERN void *
+e_pixmap_ref_resource_get(E_Pixmap *cp)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(cp, NULL);
+
+   return cp->buffer_ref.buffer;
+}
index 94c619d63da3398fec9961510233982564f8683b..d121def089253100dfacfd3546359cc51f7d1b07 100644 (file)
@@ -84,6 +84,8 @@ E_API Eina_Bool e_pixmap_init(void);
 E_API void e_pixmap_shutdown(void);
 E_API void e_pixmap_buffer_clear(E_Pixmap *cp, Eina_Bool only_free);
 
+EINTERN void *e_pixmap_ref_resource_get(E_Pixmap *cp);
+
 static inline Eina_Bool
 e_pixmap_is_x(const E_Pixmap *cp)
 {