summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/efl_canvas_surface.c')
-rw-r--r--src/lib/evas/canvas/efl_canvas_surface.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_surface.c b/src/lib/evas/canvas/efl_canvas_surface.c
new file mode 100644
index 0000000000..7f52945565
--- /dev/null
+++ b/src/lib/evas/canvas/efl_canvas_surface.c
@@ -0,0 +1,19 @@
1#include "efl_canvas_surface.h"
2
3#define MY_CLASS EFL_CANVAS_SURFACE_MIXIN
4
5EOLIAN static Eo *
6_efl_canvas_surface_eo_base_constructor(Eo *eo, Efl_Canvas_Surface_Data *pd)
7{
8 eo = eo_constructor(eo_super(eo, MY_CLASS));
9 pd->surf.version = EVAS_NATIVE_SURFACE_VERSION;
10 return eo;
11}
12
13EOLIAN static void *
14_efl_canvas_surface_native_buffer_get(Eo *obj EINA_UNUSED, Efl_Canvas_Surface_Data *pd)
15{
16 return pd->buffer;
17}
18
19#include "efl_canvas_surface.eo.c"