forked from enlightenment/efl
evas: follow all other engines convention and use ORD macro.
This commit is contained in:
parent
29cde0ee81
commit
e6b4878a9e
|
@ -233,12 +233,13 @@ module_open(Evas_Module *em)
|
||||||
func = pfunc;
|
func = pfunc;
|
||||||
|
|
||||||
/* override the methods we provide */
|
/* override the methods we provide */
|
||||||
EVAS_API_OVERRIDE(output_info_setup, &func, eng_);
|
#define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
|
||||||
EVAS_API_OVERRIDE(output_setup, &func, eng_);
|
ORD(output_info_setup);
|
||||||
EVAS_API_OVERRIDE(output_update, &func, eng_);
|
ORD(output_setup);
|
||||||
EVAS_API_OVERRIDE(output_free, &func, eng_);
|
ORD(output_update);
|
||||||
EVAS_API_OVERRIDE(image_plane_assign, &func, eng_);
|
ORD(output_free);
|
||||||
EVAS_API_OVERRIDE(image_plane_release, &func, eng_);
|
ORD(image_plane_assign);
|
||||||
|
ORD(image_plane_release);
|
||||||
|
|
||||||
/* advertise our engine functions */
|
/* advertise our engine functions */
|
||||||
em->functions = (void *)(&func);
|
em->functions = (void *)(&func);
|
||||||
|
|
|
@ -1111,13 +1111,14 @@ module_open(Evas_Module *em)
|
||||||
func = pfunc;
|
func = pfunc;
|
||||||
|
|
||||||
/* now to override methods */
|
/* now to override methods */
|
||||||
EVAS_API_OVERRIDE(output_info, &func, eng_);
|
#define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
|
||||||
EVAS_API_OVERRIDE(output_setup, &func, eng_);
|
ORD(output_info);
|
||||||
EVAS_API_OVERRIDE(output_update, &func, eng_);
|
ORD(output_setup);
|
||||||
EVAS_API_OVERRIDE(canvas_alpha_get, &func, eng_);
|
ORD(output_update);
|
||||||
EVAS_API_OVERRIDE(output_free, &func, eng_);
|
ORD(canvas_alpha_get);
|
||||||
EVAS_API_OVERRIDE(output_dump, &func, eng_);
|
ORD(output_free);
|
||||||
EVAS_API_OVERRIDE(image_native_set, &func, eng_);
|
ORD(output_dump);
|
||||||
|
ORD(image_native_set);
|
||||||
|
|
||||||
setenv("EGL_PLATFORM", "fbdev", 1);
|
setenv("EGL_PLATFORM", "fbdev", 1);
|
||||||
|
|
||||||
|
|
|
@ -1473,17 +1473,18 @@ module_open(Evas_Module *em)
|
||||||
func = pfunc;
|
func = pfunc;
|
||||||
|
|
||||||
/* now to override methods */
|
/* now to override methods */
|
||||||
EVAS_API_OVERRIDE(output_info_setup, &func, eng_);
|
#define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
|
||||||
EVAS_API_OVERRIDE(output_setup, &func, eng_);
|
ORD(output_info_setup);
|
||||||
EVAS_API_OVERRIDE(output_update, &func, eng_);
|
ORD(output_setup);
|
||||||
EVAS_API_OVERRIDE(canvas_alpha_get, &func, eng_);
|
ORD(output_update);
|
||||||
EVAS_API_OVERRIDE(output_free, &func, eng_);
|
ORD(canvas_alpha_get);
|
||||||
EVAS_API_OVERRIDE(output_dump, &func, eng_);
|
ORD(output_free);
|
||||||
EVAS_API_OVERRIDE(image_native_set, &func, eng_);
|
ORD(output_dump);
|
||||||
EVAS_API_OVERRIDE(image_native_init, &func, eng_);
|
ORD(image_native_set);
|
||||||
EVAS_API_OVERRIDE(image_native_shutdown, &func, eng_);
|
ORD(image_native_init);
|
||||||
EVAS_API_OVERRIDE(image_plane_assign, &func, eng_);
|
ORD(image_native_shutdown);
|
||||||
EVAS_API_OVERRIDE(image_plane_release, &func, eng_);
|
ORD(image_plane_assign);
|
||||||
|
ORD(image_plane_release);
|
||||||
|
|
||||||
/* Mesa's EGL driver loads wayland egl by default. (called by eglGetProcaddr() )
|
/* Mesa's EGL driver loads wayland egl by default. (called by eglGetProcaddr() )
|
||||||
* implicit env set (EGL_PLATFORM=drm) prevent that. */
|
* implicit env set (EGL_PLATFORM=drm) prevent that. */
|
||||||
|
|
Loading…
Reference in New Issue