efl/src/lib/evas/common
Felipe Magno de Almeida 2fa81c36b5 evas: Rename EAPI macro to EVAS_API in Evas library
evil: Rename EAPI macro to EVIL_API in Evil library

Patch from a series of patches to rename EAPI symbols to specific
library DSOs.

EAPI was designed to be able to pass
```__attribute__ ((visibility ("default")))``` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.

MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.

For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.

With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).

Example 1:
dll1:
```
EAPI void foo(void);

EAPI void bar()
{
  foo();
}
```
dll2:
```
EAPI void foo()
{
  printf ("foo\n");
}
```

This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
```__atttribute__((visibility("default")))```.

However, the following:
Example 2:

dll1:

```
EAPI extern int foo;
EAPI void foobar(void);

EAPI void bar()
{
  foo = 5;
  foobar();
}
```

dll2:

```
EAPI int foo = 0;
EAPI void foobar()
{
  printf ("foo %d\n", foo);
}
```

This will work on mingw but will not work for MSVC. And that's why
EAPI is the only solution that worked for MSVC.

Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
2020-09-13 10:14:31 -03:00
..
evas_op_add
evas_op_blend evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_op_copy Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_op_mask Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_op_mul
evas_op_sub
language evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_blend.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_blend_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_blend_private.h
evas_blit_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_common_generic_cache.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_color.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_color.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_colorspace.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_colorspace.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_gry_1.c
evas_convert_gry_1.h
evas_convert_gry_8.c evas_common: rgba32 to Y8 (Enhance Conversion) 2020-03-13 09:58:04 +01:00
evas_convert_gry_8.h
evas_convert_grypal_6.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_convert_grypal_6.h
evas_convert_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_main.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_convert_rgb_8.c
evas_convert_rgb_8.h
evas_convert_rgb_16.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_convert_rgb_16.h
evas_convert_rgb_24.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_convert_rgb_24.h Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_convert_rgb_32.c evas - fix crash/junk pixel content but with tiled rotate at 270 + neon 2019-04-12 12:56:40 +01:00
evas_convert_rgb_32.h
evas_convert_yuv.c evas common: small optimization. 2019-04-18 18:51:16 +09:00
evas_convert_yuv.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_cpu.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_draw.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_draw_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_compress.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_compress_draw.c
evas_font_default_walk.x
evas_font_draw.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_draw.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_load.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_ot.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_ot.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_private.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_font_query.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_image.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_image_data.c
evas_image_load.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_image_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_image_private.h
evas_image_save.c Evas: add avif evas loader and saver 2020-07-15 18:51:27 +01:00
evas_image_scalecache.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_line.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_line_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_map_image.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_map_image.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_map_image_core.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_map_image_internal.c evas map: remove redundant code. 2019-04-08 14:56:42 +09:00
evas_map_image_internal_high.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_map_image_loop.c evas map: remove redundant code. 2019-04-08 14:56:42 +09:00
evas_op_add_main_.c
evas_op_blend_main_.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
evas_op_copy_main_.c
evas_op_mask_main_.c
evas_op_mul_main_.c
evas_op_sub_main_.c
evas_pipe.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_pipe.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_polygon.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_polygon_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_rectangle.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_rectangle_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_main.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_main.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_sample.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_smooth.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_smooth.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_smooth_scaler.c
evas_scale_smooth_scaler_down.c
evas_scale_smooth_scaler_downx.c
evas_scale_smooth_scaler_downx_downy.c Fix typos - (Part #3) 2020-07-06 10:52:51 +02:00
evas_scale_smooth_scaler_downy.c
evas_scale_smooth_scaler_noscale.c
evas_scale_smooth_scaler_up.c
evas_scale_span.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_scale_span.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_text_utils.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_text_utils.h evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_thread_render.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evas_tiler.c evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
meson.build
region.c Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00
region.h Get rid of trailing whitespaces (12 / 14) 2020-06-23 10:31:22 +02:00