efl/src/lib/ecore_con
Felipe Magno de Almeida d688766d0f ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con 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-15 10:16:24 -03:00
..
Ecore_Con.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
Ecore_Con_Eet.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
Ecore_Con_Eet_Eo.h ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
Ecore_Con_Eet_Legacy.h ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
Efl_Net.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_alloc.c
ecore_con_api.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_base_eo.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_base_eo.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_base_eo.legacy.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_base_eo.legacy.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_client_obj_eo.c ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
ecore_con_eet_client_obj_eo.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_client_obj_eo.legacy.h ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
ecore_con_eet_server_obj_eo.c ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
ecore_con_eet_server_obj_eo.h ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_eet_server_obj_eo.legacy.h ecore-con: remove all legacy usage from eo files 2019-03-06 19:05:49 +01:00
ecore_con_legacy.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_local.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_local_win32.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_private.h systemd - make libsystemd use/supprot entirely runtime "dlopened" 2020-05-18 09:36:55 +01:00
ecore_con_proxy_helper.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
ecore_con_socks.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_url.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_url_curl.c ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_con_url_curl.h ecore_con_url: implement transfer speed limitation options 2018-03-26 16:01:53 -07:00
efl_net-connman.c
efl_net-connman.h Efl.Net.Control.Manager (from Efl.Net.Control) 2018-04-24 09:03:42 -07:00
efl_net_control-connman.c ecore_con: remove use of list<> from Efl.Net. 2020-01-30 17:06:17 +01:00
efl_net_control-none.c Efl.Net.Control.Manager (from Efl.Net.Control) 2018-04-24 09:03:42 -07:00
efl_net_control_access_point-connman.c ecore: remove data parameters of Efl.Loop_Consumer.promise_new to reduce the risk of inadvertently using the wrong data. 2019-01-16 14:33:26 -08:00
efl_net_control_access_point-none.c ecore_con: simplify code by using helper that create future directly. 2018-11-30 14:58:29 -08:00
efl_net_control_access_point.eo efl: change all occurences of @owned to @move 2019-09-06 17:01:05 +02:00
efl_net_control_manager.eo ecore_con: remove use of list<> from Efl.Net. 2020-01-30 17:06:17 +01:00
efl_net_control_technology-connman.c ecore: remove data parameters of Efl.Loop_Consumer.promise_new to reduce the risk of inadvertently using the wrong data. 2019-01-16 14:33:26 -08:00
efl_net_control_technology-none.c ecore_con: simplify code by using helper that create future directly. 2018-11-30 14:58:29 -08:00
efl_net_control_technology.eo efl: change all occurences of @owned to @move 2019-09-06 17:01:05 +02:00
efl_net_dialer.c
efl_net_dialer.eo efl: use new eolian error functionality instead of globals 2019-09-24 16:29:55 +02:00
efl_net_dialer_http.c ecore con - curl - fix error map to map right enum 2020-08-25 13:21:25 +01:00
efl_net_dialer_http.eo Evil : move mkstemp(s) and mkdtemp in eina_file directly 2020-10-08 11:58:11 +01:00
efl_net_dialer_simple.c efl_con: fixup copy'n paste error 2019-03-20 14:51:27 +01:00
efl_net_dialer_simple.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_dialer_ssl.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_dialer_ssl.eo docs: nicer formatting of the NULL keyword, everywhere 2019-09-10 16:05:44 +02:00
efl_net_dialer_tcp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_dialer_tcp.eo docs: nicer formatting of the NULL keyword, everywhere 2019-09-10 16:05:44 +02:00
efl_net_dialer_udp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_dialer_udp.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_dialer_unix.c efl-net: namespace events to avoid naming conflicts 2019-03-08 12:17:51 -08:00
efl_net_dialer_unix.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_dialer_websocket.c efl_con: add a default condition to switch statement 2020-02-19 15:20:31 +01:00
efl_net_dialer_websocket.eo Evil : move mkstemp(s) and mkdtemp in eina_file directly 2020-10-08 11:58:11 +01:00
efl_net_dialer_windows.c include evil_private.h in last files, and disable symbolic links on Windows in a couple of files 2019-05-22 07:59:05 -04:00
efl_net_dialer_windows.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_http_types.eot remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_net_ip_address.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_ip_address.eo docs: nicer formatting of the NULL keyword, everywhere 2019-09-10 16:05:44 +02:00
efl_net_server.c
efl_net_server.eo eolian: remove param @nonull 2019-05-26 17:25:15 +02:00
efl_net_server_fd.c systemd - make libsystemd use/supprot entirely runtime "dlopened" 2020-05-18 09:36:55 +01:00
efl_net_server_fd.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_ip.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_server_ip.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_simple.c efl_net: resolve cases where we passed something as event_info 2019-03-19 16:29:34 -04:00
efl_net_server_simple.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_ssl.c ecore_con: correct a typo wrongly calling super destructor instead of super invalidate. 2018-05-24 16:02:18 -07:00
efl_net_server_ssl.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_tcp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_server_tcp.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_udp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_server_udp.eo efl: change all occurences of @owned to @move 2019-09-06 17:01:05 +02:00
efl_net_server_udp_client.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_server_udp_client.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_unix.c fix buid on bsd 2020-04-12 19:20:13 +01:00
efl_net_server_unix.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_server_windows.c include evil_private.h in last files, and disable symbolic links on Windows in a couple of files 2019-05-22 07:59:05 -04:00
efl_net_server_windows.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_session-connman.c efl net - fix dbus field init to init all fields in a struct 2018-11-09 11:43:59 +00:00
efl_net_session-none.c eolian gen: enable constness generation on property getter impls 2018-04-17 20:31:55 +02:00
efl_net_session.eo docs: nicer formatting of the NULL keyword, everywhere 2019-09-10 16:05:44 +02:00
efl_net_socket.c
efl_net_socket.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_socket_fd.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_socket_fd.eo docs: Fix typos and wrap EO files to 120 chars 2019-09-02 16:24:26 +02:00
efl_net_socket_simple.c eolian gen: enable constness generation on property getter impls 2018-04-17 20:31:55 +02:00
efl_net_socket_simple.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_socket_ssl.c efl_io_*: apply new event calling convention 2019-03-19 16:32:02 -04:00
efl_net_socket_ssl.eo efl: use new eolian error functionality instead of globals 2019-09-24 16:29:55 +02:00
efl_net_socket_tcp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_socket_tcp.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_socket_udp.c bin/eet and ecore_con: remove Evil.h when not necessary and include evil_private.h when necessary 2019-05-17 13:51:50 -04:00
efl_net_socket_udp.eo efl: change all occurences of @owned to @move 2019-09-06 17:01:05 +02:00
efl_net_socket_unix.c
efl_net_socket_unix.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_socket_windows.c ecore_con: Fix unused argument warning 2020-05-19 13:58:54 +02:00
efl_net_socket_windows.eo docs: Remove obsolete @since tags from EO files 2019-03-20 20:16:05 +01:00
efl_net_ssl_conn-gnutls.c
efl_net_ssl_conn-none.c
efl_net_ssl_conn-openssl.c Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
efl_net_ssl_context.c eolian: drop class function overriding 2019-02-13 16:59:58 +01:00
efl_net_ssl_context.eo docs: nicer formatting of the NULL keyword, everywhere 2019-09-10 16:05:44 +02:00
efl_net_ssl_ctx-gnutls.c ecore_con: Fix potentional problems around ecore_con 2019-02-13 16:37:08 -08:00
efl_net_ssl_ctx-none.c
efl_net_ssl_ctx-openssl.c Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
efl_net_ssl_types.eot eo files: mark a bunch of types with @beta 2019-03-08 16:40:40 +01:00
efl_net_types.eot remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
meson.build ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00