efl/src/lib
Felipe Magno de Almeida 1984a1a2fb ecore_ipc: Rename EAPI macro to ECORE_IPC_API in Ecore IPC 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-10-26 13:31:38 -03:00
..
ecore ecore: Rename EAPI macro to ECORE_API in Ecore library 2020-09-20 10:23:26 -03:00
ecore_audio ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library 2020-09-09 15:10:58 -03:00
ecore_avahi ecore_avahi: Rename EAPI macro to ECORE_AVAHI_API in Ecore Avahi library 2020-10-16 16:46:40 -03:00
ecore_buffer refactor build 2020-05-27 11:06:46 +02:00
ecore_cocoa Get rid of trailing whitespaces (4 / 14) 2020-06-23 10:29:14 +02:00
ecore_con ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_drm ecore_drm: Rename EAPI macro to ECORE_DRM_API in Ecore DRM library 2020-10-15 15:48:08 -03:00
ecore_drm2 ecore_drm2: Rename EAPI macro to ECORE_DRM2_API in Ecore DRM2 library 2020-10-17 09:08:18 -03:00
ecore_evas ecore evas - use correct enums for legacy funcstions to remove warns 2020-08-25 13:21:25 +01:00
ecore_fb Get rid of trailing whitespaces (4 / 14) 2020-06-23 10:29:14 +02:00
ecore_file Ecore_file: on Windows, fix errno value when dst exists. 2020-10-06 15:09:31 +01:00
ecore_imf Fix typos - (Part #2) 2020-07-06 10:52:49 +02:00
ecore_imf_evas refactor build 2020-05-27 11:06:46 +02:00
ecore_input ecore input - make an unsupported joystick a warn not an err... 2020-08-11 13:49:30 +01:00
ecore_input_evas Get rid of trailing whitespaces (4 / 14) 2020-06-23 10:29:14 +02:00
ecore_ipc ecore_ipc: Rename EAPI macro to ECORE_IPC_API in Ecore IPC library 2020-10-26 13:31:38 -03:00
ecore_sdl Get rid of trailing whitespaces (4 / 14) 2020-06-23 10:29:14 +02:00
ecore_wayland Get rid of trailing whitespaces (4 / 14) 2020-06-23 10:29:14 +02:00
ecore_win32 ecore_win32: Rename EAPI macro to ECORE_WIN32_API in Ecore Win32 library 2020-10-24 09:01:36 -03:00
ecore_wl2 ecore_wl2_display: move wl_display_dispatch_pending before condition check. 2020-08-22 08:25:06 -04:00
ecore_x ecore_x: Rename EAPI macro to ECORE_X_API in Ecore X library 2020-10-14 16:34:09 -03:00
ector ector: Rename EAPI macro to ECTOR_API in Ector library 2020-09-17 10:18:19 -03:00
edje edje_cxx: Remove useless EAPI definition 2020-10-14 17:22:00 -03:00
eet eet: Rename EAPI macro to EET_API in Eet library 2020-10-25 10:55:40 -03:00
eeze eeze_api: Rename EAPI macro to EEZE_API in Eeze library 2020-10-22 09:14:33 -03:00
efl efl: Rename EAPI macro to EFL_API in Efl sub-library 2020-09-20 10:25:30 -03:00
efl_canvas_wl efl_canvas: fix a potentional error of null deref 2020-08-05 10:47:15 +02:00
efl_mono efl_mono: Rename EAPI macro to EFL_MONO_API in efl mono binding 2020-10-03 15:45:29 -03:00
efreet efreet: Rename EAPI macro to EFREET_API in Efreet library 2020-10-24 09:16:10 -03:00
eina eina: Rename EAPI macro to EINA_API in Eina library 2020-08-15 15:26:00 -03:00
eio eio: Rename EAPI macro to EIO_API in Eio library 2020-09-07 23:01:06 -03:00
eldbus eldbus: Rename EAPI macro to ELDBUS_API in Eldbus library 2020-09-20 10:22:27 -03:00
elementary elementary: Rename EAPI macro to ELM_API in Elementary library 2020-10-11 13:00:04 -03:00
elput elput: Rename EAPI macro to ELPUT_API in Elput library 2020-10-21 09:12:12 -03:00
elua elua: Rename EAPI macro to ELUA_API in Elua library 2020-10-20 09:11:25 -03:00
embryo embryo: Rename EAPI macro to EMBRYO_API in Embryo library 2020-10-19 09:10:51 -03:00
emile emile: Rename EAPI macro to EMILE_API in Emile library 2020-10-23 09:14:59 -03:00
emotion emotion: emotion EAPI macro to EMOTION_API in Emotion library 2020-09-20 10:19:07 -03:00
eo eo: Rename EAPI macro to EO_API in Eo library 2020-09-05 10:27:43 -03:00
eolian eolian: Rename EAPI macro to EOLIAN_API in Eolian library 2020-08-19 17:32:20 -03:00
eolian_cxx cxx: Fix uses of intrinsic eolian binbuf type 2020-06-09 10:29:32 +02:00
ephysics refactor build 2020-05-27 11:06:46 +02:00
ethumb ethumb: Rename EAPI macro to ETHUMB_API in Ethumb library 2020-10-18 09:10:00 -03:00
ethumb_client Get rid of trailing whitespaces (11 / 14) 2020-06-23 10:31:05 +02:00
evas evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evil Evil : move mkstemp(s) and mkdtemp in eina_file directly 2020-10-08 11:58:11 +01:00
.gitignore