summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_surface.c
blob: 7f529455651398fb34b2e440486bc0be563e3f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "efl_canvas_surface.h"

#define MY_CLASS EFL_CANVAS_SURFACE_MIXIN

EOLIAN static Eo *
_efl_canvas_surface_eo_base_constructor(Eo *eo, Efl_Canvas_Surface_Data *pd)
{
   eo = eo_constructor(eo_super(eo, MY_CLASS));
   pd->surf.version = EVAS_NATIVE_SURFACE_VERSION;
   return eo;
}

EOLIAN static void *
_efl_canvas_surface_native_buffer_get(Eo *obj EINA_UNUSED, Efl_Canvas_Surface_Data *pd)
{
   return pd->buffer;
}

#include "efl_canvas_surface.eo.c"