summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-12-28 13:45:46 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-12-28 13:58:06 -0300
commit86493e160a095e38ea564ffb260edae0b1e766ae (patch)
treeb23615328e57b9ab3117f45e8178e77d34cd1051 /src/lib
parentb1c9b8cec0ea03cc4f95d5a6096b2a3fbe5019e6 (diff)
ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library
Summary: 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> Reviewers: vtorri, woohyun, jptiz, lucas Reviewed By: vtorri Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12225
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_con/Ecore_Con.h261
-rw-r--r--src/lib/ecore_con/Ecore_Con_Eet.h71
-rw-r--r--src/lib/ecore_con/Efl_Net.h139
-rw-r--r--src/lib/ecore_con/ecore_con.c6
-rw-r--r--src/lib/ecore_con/ecore_con_api.h32
-rw-r--r--src/lib/ecore_con/ecore_con_eet.c42
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.c18
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.h20
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_client_obj_eo.h2
-rw-r--r--src/lib/ecore_con/ecore_con_eet_server_obj_eo.h2
-rw-r--r--src/lib/ecore_con/ecore_con_legacy.c108
-rw-r--r--src/lib/ecore_con/ecore_con_local.c2
-rw-r--r--src/lib/ecore_con/ecore_con_local_win32.c2
-rw-r--r--src/lib/ecore_con/ecore_con_socks.c28
-rw-r--r--src/lib/ecore_con/ecore_con_url.c82
-rw-r--r--src/lib/ecore_con/ecore_con_url_curl.c102
-rw-r--r--src/lib/ecore_con/meson.build7
19 files changed, 441 insertions, 487 deletions
diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h
index 6155796200..2945b06a8f 100644
--- a/src/lib/ecore_con/Ecore_Con.h
+++ b/src/lib/ecore_con/Ecore_Con.h
@@ -15,31 +15,7 @@
15#include "Efl_Net.h" 15#include "Efl_Net.h"
16#endif 16#endif
17 17
18#ifdef EAPI 18#include <ecore_con_api.h>
19# undef EAPI
20#endif
21
22#ifdef _WIN32
23# ifdef EFL_BUILD
24# ifdef DLL_EXPORT
25# define EAPI __declspec(dllexport)
26# else
27# define EAPI
28# endif
29# else
30# define EAPI __declspec(dllimport)
31# endif
32#else
33# ifdef __GNUC__
34# if __GNUC__ >= 4
35# define EAPI __attribute__ ((visibility("default")))
36# else
37# define EAPI
38# endif
39# else
40# define EAPI
41# endif
42#endif
43 19
44/** 20/**
45 * @defgroup Ecore_Con_Group Ecore_Con - Connection functions 21 * @defgroup Ecore_Con_Group Ecore_Con - Connection functions
@@ -633,51 +609,51 @@ struct _Ecore_Con_Event_Url_Progress
633}; 609};
634 610
635/** A client has connected to the server. */ 611/** A client has connected to the server. */
636EAPI extern int ECORE_CON_EVENT_CLIENT_ADD; 612ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_ADD;
637/** A client has disconnected from the server. */ 613/** A client has disconnected from the server. */
638EAPI extern int ECORE_CON_EVENT_CLIENT_DEL; 614ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_DEL;
639/** A client experienced an error. 615/** A client experienced an error.
640 * @since 1.1 616 * @since 1.1
641 */ 617 */
642EAPI extern int ECORE_CON_EVENT_CLIENT_ERROR; 618ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_ERROR;
643/** A client connection has been upgraded to SSL. 619/** A client connection has been upgraded to SSL.
644 * @since 1.1 620 * @since 1.1
645 */ 621 */
646EAPI extern int ECORE_CON_EVENT_CLIENT_UPGRADE; 622ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_UPGRADE;
647/** A server was created. */ 623/** A server was created. */
648EAPI extern int ECORE_CON_EVENT_SERVER_ADD; 624ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_ADD;
649/** A server connection was lost. */ 625/** A server connection was lost. */
650EAPI extern int ECORE_CON_EVENT_SERVER_DEL; 626ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_DEL;
651/** A server experienced an error. 627/** A server experienced an error.
652 * @since 1.1 628 * @since 1.1
653 */ 629 */
654EAPI extern int ECORE_CON_EVENT_SERVER_ERROR; 630ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_ERROR;
655/** A server connection has been upgraded to SSL. 631/** A server connection has been upgraded to SSL.
656 * @since 1.1 632 * @since 1.1
657 */ 633 */
658EAPI extern int ECORE_CON_EVENT_SERVER_UPGRADE; 634ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_UPGRADE;
659/** A server connection has sent data to its client. 635/** A server connection has sent data to its client.
660 * @since 1.1 636 * @since 1.1
661 */ 637 */
662EAPI extern int ECORE_CON_EVENT_CLIENT_WRITE; 638ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_WRITE;
663/** A server connection object has sent data. 639/** A server connection object has sent data.
664 * @since 1.1 640 * @since 1.1
665 */ 641 */
666EAPI extern int ECORE_CON_EVENT_SERVER_WRITE; 642ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_WRITE;
667/** A client connected to the server has sent data. */ 643/** A client connected to the server has sent data. */
668EAPI extern int ECORE_CON_EVENT_CLIENT_DATA; 644ECORE_CON_API extern int ECORE_CON_EVENT_CLIENT_DATA;
669/** A server connection object has data.*/ 645/** A server connection object has data.*/
670EAPI extern int ECORE_CON_EVENT_SERVER_DATA; 646ECORE_CON_API extern int ECORE_CON_EVENT_SERVER_DATA;
671/** A server connection has successfully negotiated an ip:port binding. 647/** A server connection has successfully negotiated an ip:port binding.
672 * @since 1.2 648 * @since 1.2
673 */ 649 */
674EAPI extern int ECORE_CON_EVENT_PROXY_BIND; 650ECORE_CON_API extern int ECORE_CON_EVENT_PROXY_BIND;
675/** A URL object has data. */ 651/** A URL object has data. */
676EAPI extern int ECORE_CON_EVENT_URL_DATA; 652ECORE_CON_API extern int ECORE_CON_EVENT_URL_DATA;
677/** A URL object has completed its transfer to and from the server and can be reused. */ 653/** A URL object has completed its transfer to and from the server and can be reused. */
678EAPI extern int ECORE_CON_EVENT_URL_COMPLETE; 654ECORE_CON_API extern int ECORE_CON_EVENT_URL_COMPLETE;
679/** A URL object has made progress in its transfer. */ 655/** A URL object has made progress in its transfer. */
680EAPI extern int ECORE_CON_EVENT_URL_PROGRESS; 656ECORE_CON_API extern int ECORE_CON_EVENT_URL_PROGRESS;
681 657
682/** 658/**
683 * @} 659 * @}
@@ -698,7 +674,7 @@ EAPI extern int ECORE_CON_EVENT_URL_PROGRESS;
698 * @note This function already calls ecore_init() internally, so you don't need 674 * @note This function already calls ecore_init() internally, so you don't need
699 * to call it explicitly. 675 * to call it explicitly.
700 */ 676 */
701EAPI int ecore_con_init(void); 677ECORE_CON_API int ecore_con_init(void);
702 678
703/** 679/**
704 * @brief Shuts down the Ecore_Con library. 680 * @brief Shuts down the Ecore_Con library.
@@ -707,7 +683,7 @@ EAPI int ecore_con_init(void);
707 * @note This function already calls ecore_shutdown() internally, so you don't 683 * @note This function already calls ecore_shutdown() internally, so you don't
708 * need to call it explicitly unless you called ecore_init() explicitly too. 684 * need to call it explicitly unless you called ecore_init() explicitly too.
709 */ 685 */
710EAPI int ecore_con_shutdown(void); 686ECORE_CON_API int ecore_con_shutdown(void);
711 687
712/** 688/**
713 * @brief Do an asynchronous DNS lookup. 689 * @brief Do an asynchronous DNS lookup.
@@ -727,7 +703,7 @@ EAPI int ecore_con_shutdown(void);
727 * @return @c true if the request did not fail to be set up, @c false 703 * @return @c true if the request did not fail to be set up, @c false
728 * otherwise. 704 * otherwise.
729 */ 705 */
730EAPI Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) EINA_ARG_NONNULL(1); 706ECORE_CON_API Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) EINA_ARG_NONNULL(1);
731 707
732/** 708/**
733 * @} 709 * @}
@@ -748,7 +724,7 @@ EAPI Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, cons
748 * @c 2 if SSL is available and provided by openssl, 724 * @c 2 if SSL is available and provided by openssl,
749 * @c 0 if it is not available. 725 * @c 0 if it is not available.
750 */ 726 */
751EAPI int ecore_con_ssl_available_get(void); 727ECORE_CON_API int ecore_con_ssl_available_get(void);
752 728
753/** 729/**
754 * @brief Adds an SSL certificate for use in ecore_con functions. 730 * @brief Adds an SSL certificate for use in ecore_con functions.
@@ -760,7 +736,7 @@ EAPI int ecore_con_ssl_available_get(void);
760 * @param cert The path to the certificate. 736 * @param cert The path to the certificate.
761 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 737 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
762 */ 738 */
763EAPI Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert); 739ECORE_CON_API Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert);
764 740
765/** 741/**
766 * @brief Adds an SSL private key for use in ecore_con functions. 742 * @brief Adds an SSL private key for use in ecore_con functions.
@@ -772,7 +748,7 @@ EAPI Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, cons
772 * @param key_file The path to the key file. 748 * @param key_file The path to the key file.
773 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 749 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
774 */ 750 */
775EAPI Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *key_file); 751ECORE_CON_API Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *key_file);
776 752
777/** 753/**
778 * @brief Adds an SSL CRL for use in ecore_con functions. 754 * @brief Adds an SSL CRL for use in ecore_con functions.
@@ -784,7 +760,7 @@ EAPI Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, c
784 * @param crl_file The path to the CRL file. 760 * @param crl_file The path to the CRL file.
785 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 761 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
786 */ 762 */
787EAPI Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl_file); 763ECORE_CON_API Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl_file);
788 764
789/** 765/**
790 * @brief Adds an SSL CA file for use in ecore_con functions. 766 * @brief Adds an SSL CA file for use in ecore_con functions.
@@ -797,7 +773,7 @@ EAPI Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const
797 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE. 773 * @return @c EINA_FALSE if the file cannot be loaded, otherwise @c EINA_TRUE.
798 * @note since 1.2, this function can load directories. 774 * @note since 1.2, this function can load directories.
799 */ 775 */
800EAPI Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *ca_file); 776ECORE_CON_API Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *ca_file);
801 777
802/** 778/**
803 * @brief Enables certificate verification on a server object. 779 * @brief Enables certificate verification on a server object.
@@ -806,7 +782,7 @@ EAPI Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, co
806 * to enable verification of certificates against loaded certificates. 782 * to enable verification of certificates against loaded certificates.
807 * @param svr The server object 783 * @param svr The server object
808 */ 784 */
809EAPI void ecore_con_ssl_server_verify(Ecore_Con_Server *svr); 785ECORE_CON_API void ecore_con_ssl_server_verify(Ecore_Con_Server *svr);
810 786
811/** 787/**
812 * @brief Enables hostname-based certificate verification on a server object. 788 * @brief Enables hostname-based certificate verification on a server object.
@@ -818,7 +794,7 @@ EAPI void ecore_con_ssl_server_verify(Ecore_Con_Server *svr);
818 * ecore_con_server_add. 794 * ecore_con_server_add.
819 * @since 1.1 795 * @since 1.1
820 */ 796 */
821EAPI void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr); 797ECORE_CON_API void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr);
822 798
823/** 799/**
824 * @brief Sets the hostname to verify against in certificate verification. 800 * @brief Sets the hostname to verify against in certificate verification.
@@ -833,7 +809,7 @@ EAPI void ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr);
833 * @param name The hostname to verify against 809 * @param name The hostname to verify against
834 * @since 1.2 810 * @since 1.2
835 */ 811 */
836EAPI void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name); 812ECORE_CON_API void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name);
837 813
838/** 814/**
839 * @brief Gets the hostname to verify against in certificate verification. 815 * @brief Gets the hostname to verify against in certificate verification.
@@ -845,7 +821,7 @@ EAPI void ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *sv
845 * @return The hostname which will be used 821 * @return The hostname which will be used
846 * @since 1.2 822 * @since 1.2
847 */ 823 */
848EAPI const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr); 824ECORE_CON_API const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr);
849 825
850/** 826/**
851 * @brief Upgrades a connection to a specified level of encryption. 827 * @brief Upgrades a connection to a specified level of encryption.
@@ -860,7 +836,7 @@ EAPI const char *ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *sv
860 * @warning Setting a wrong value for @p ssl_type WILL mess up your program. 836 * @warning Setting a wrong value for @p ssl_type WILL mess up your program.
861 * @since 1.1 837 * @since 1.1
862 */ 838 */
863EAPI Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type ssl_type); 839ECORE_CON_API Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type ssl_type);
864 840
865/** 841/**
866 * @brief Upgrades a connection to a specified level of encryption. 842 * @brief Upgrades a connection to a specified level of encryption.
@@ -874,7 +850,7 @@ EAPI Eina_Bool ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore
874 * @warning Setting a wrong value for @p ssl_type WILL mess up your program. 850 * @warning Setting a wrong value for @p ssl_type WILL mess up your program.
875 * @since 1.1 851 * @since 1.1
876 */ 852 */
877EAPI Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type ssl_type); 853ECORE_CON_API Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type ssl_type);
878 854
879/** 855/**
880 * @} 856 * @}
@@ -898,7 +874,7 @@ EAPI Eina_Bool ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_
898 * @note This object NEVER needs to be explicitly freed. 874 * @note This object NEVER needs to be explicitly freed.
899 * @since 1.2 875 * @since 1.2
900 */ 876 */
901EAPI Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, const char *username); 877ECORE_CON_API Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, const char *username);
902 878
903/** 879/**
904 * @brief Finds a SOCKS v4 proxy in the proxy list. 880 * @brief Finds a SOCKS v4 proxy in the proxy list.
@@ -913,7 +889,7 @@ EAPI Ecore_Con_Socks *ecore_con_socks4_remote_add(const char *ip, int port, cons
913 * ecore_con_socks4_remote_add() should be used to return the actual object. 889 * ecore_con_socks4_remote_add() should be used to return the actual object.
914 * @since 1.2 890 * @since 1.2
915 */ 891 */
916EAPI Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, const char *username); 892ECORE_CON_API Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, const char *username);
917 893
918/** 894/**
919 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it. 895 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it.
@@ -927,7 +903,7 @@ EAPI Eina_Bool ecore_con_socks4_remote_exists(const char *ip, int port, c
927 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 903 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
928 * @since 1.2 904 * @since 1.2
929 */ 905 */
930EAPI void ecore_con_socks4_remote_del(const char *ip, int port, const char *username); 906ECORE_CON_API void ecore_con_socks4_remote_del(const char *ip, int port, const char *username);
931 907
932/** 908/**
933 * @brief Adds a SOCKS v5 proxy to the proxy list. 909 * @brief Adds a SOCKS v5 proxy to the proxy list.
@@ -942,7 +918,7 @@ EAPI void ecore_con_socks4_remote_del(const char *ip, int port, cons
942 * @note This object NEVER needs to be explicitly freed. 918 * @note This object NEVER needs to be explicitly freed.
943 * @since 1.2 919 * @since 1.2
944 */ 920 */
945EAPI Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password); 921ECORE_CON_API Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password);
946 922
947/** 923/**
948 * @brief Finds a SOCKS v5 proxy in the proxy list. 924 * @brief Finds a SOCKS v5 proxy in the proxy list.
@@ -958,7 +934,7 @@ EAPI Ecore_Con_Socks *ecore_con_socks5_remote_add(const char *ip, int port, cons
958 * ecore_con_socks5_remote_add() should be used to return the actual object. 934 * ecore_con_socks5_remote_add() should be used to return the actual object.
959 * @since 1.2 935 * @since 1.2
960 */ 936 */
961EAPI Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password); 937ECORE_CON_API Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password);
962 938
963/** 939/**
964 * @brief Removes a SOCKS v5 proxy from the proxy list and delete it. 940 * @brief Removes a SOCKS v5 proxy from the proxy list and delete it.
@@ -973,7 +949,7 @@ EAPI Eina_Bool ecore_con_socks5_remote_exists(const char *ip, int port, c
973 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 949 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
974 * @since 1.2 950 * @since 1.2
975 */ 951 */
976EAPI void ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password); 952ECORE_CON_API void ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password);
977 953
978/** 954/**
979 * @brief Sets DNS lookup mode on an existing SOCKS proxy. 955 * @brief Sets DNS lookup mode on an existing SOCKS proxy.
@@ -988,7 +964,7 @@ EAPI void ecore_con_socks5_remote_del(const char *ip, int port, cons
988 * @note By default, this setting is DISABLED. 964 * @note By default, this setting is DISABLED.
989 * @since 1.2 965 * @since 1.2
990 */ 966 */
991EAPI void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable); 967ECORE_CON_API void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable);
992 968
993/** 969/**
994 * @brief Gets DNS lookup mode on an existing SOCKS proxy. 970 * @brief Gets DNS lookup mode on an existing SOCKS proxy.
@@ -1002,7 +978,7 @@ EAPI void ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool
1002 * @note By default, this setting is DISABLED. 978 * @note By default, this setting is DISABLED.
1003 * @since 1.2 979 * @since 1.2
1004 */ 980 */
1005EAPI Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs); 981ECORE_CON_API Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs);
1006 982
1007/** 983/**
1008 * @brief Enables bind mode on a SOCKS proxy. 984 * @brief Enables bind mode on a SOCKS proxy.
@@ -1014,7 +990,7 @@ EAPI Eina_Bool ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs);
1014 * @warning Be aware that changing the operation mode of an active proxy may result in undefined behavior 990 * @warning Be aware that changing the operation mode of an active proxy may result in undefined behavior
1015 * @since 1.2 991 * @since 1.2
1016 */ 992 */
1017EAPI void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind); 993ECORE_CON_API void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind);
1018 994
1019/** 995/**
1020 * @brief Returns bind mode of a SOCKS proxy. 996 * @brief Returns bind mode of a SOCKS proxy.
@@ -1025,7 +1001,7 @@ EAPI void ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool i
1025 * @return If true, the connection established will be a port binding. 1001 * @return If true, the connection established will be a port binding.
1026 * @since 1.2 1002 * @since 1.2
1027 */ 1003 */
1028EAPI Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs); 1004ECORE_CON_API Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs);
1029 1005
1030/** 1006/**
1031 * @brief Returns SOCKS version of a SOCKS proxy. 1007 * @brief Returns SOCKS version of a SOCKS proxy.
@@ -1035,7 +1011,7 @@ EAPI Eina_Bool ecore_con_socks_bind_get(Ecore_Con_Socks *ecs);
1035 * @return @c 0 on error, else @c 4/5 1011 * @return @c 0 on error, else @c 4/5
1036 * @since 1.2 1012 * @since 1.2
1037 */ 1013 */
1038EAPI unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs); 1014ECORE_CON_API unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs);
1039 1015
1040/** 1016/**
1041 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it. 1017 * @brief Removes a SOCKS v4 proxy from the proxy list and delete it.
@@ -1045,7 +1021,7 @@ EAPI unsigned int ecore_con_socks_version_get(Ecore_Con_Socks *ecs);
1045 * @warning Be aware that deleting a proxy which is being used WILL ruin your life. 1021 * @warning Be aware that deleting a proxy which is being used WILL ruin your life.
1046 * @since 1.2 1022 * @since 1.2
1047 */ 1023 */
1048EAPI void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs); 1024ECORE_CON_API void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs);
1049 1025
1050/** 1026/**
1051 * @brief Sets a proxy object to be used with the next server created with ecore_con_server_connect(). 1027 * @brief Sets a proxy object to be used with the next server created with ecore_con_server_connect().
@@ -1056,7 +1032,7 @@ EAPI void ecore_con_socks_remote_del(Ecore_Con_Socks *ecs);
1056 * @see ecore_con_socks_apply_always() 1032 * @see ecore_con_socks_apply_always()
1057 * @since 1.2 1033 * @since 1.2
1058 */ 1034 */
1059EAPI void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs); 1035ECORE_CON_API void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs);
1060 1036
1061/** 1037/**
1062 * @brief Sets a proxy object to be used with all servers created with ecore_con_server_connect(). 1038 * @brief Sets a proxy object to be used with all servers created with ecore_con_server_connect().
@@ -1073,7 +1049,7 @@ EAPI void ecore_con_socks_apply_once(Ecore_Con_Socks *ecs);
1073 * port is the port to connect to on the proxy server. 1049 * port is the port to connect to on the proxy server.
1074 * lookup is 1 if the proxy should perform all DNS lookups, otherwise 0 or omitted. 1050 * lookup is 1 if the proxy should perform all DNS lookups, otherwise 0 or omitted.
1075 */ 1051 */
1076EAPI void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs); 1052ECORE_CON_API void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs);
1077 1053
1078/** 1054/**
1079 * @} 1055 * @}
@@ -1178,7 +1154,7 @@ EAPI void ecore_con_socks_apply_always(Ecore_Con_Socks *ecs);
1178 * 1154 *
1179 * @since 1.19 1155 * @since 1.19
1180 */ 1156 */
1181EAPI char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_ARG_NONNULL(2); 1157ECORE_CON_API char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_ARG_NONNULL(2);
1182 1158
1183/** 1159/**
1184 * @brief Creates a server to listen for connections. 1160 * @brief Creates a server to listen for connections.
@@ -1222,7 +1198,7 @@ EAPI char *ecore_con_local_path_new(Eina_Bool is_system, const char *name, int p
1222 * #EFL_NET_SERVER_SIMPLE_CLASS. 1198 * #EFL_NET_SERVER_SIMPLE_CLASS.
1223 * See @li @ref efl_net_server_simple_example.c 1199 * See @li @ref efl_net_server_simple_example.c
1224 */ 1200 */
1225EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type, 1201ECORE_CON_API Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type,
1226 const char *name, int port, 1202 const char *name, int port,
1227 const void *data); 1203 const void *data);
1228 1204
@@ -1278,7 +1254,7 @@ EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type,
1278 * #EFL_NET_DIALER_SIMPLE_CLASS. 1254 * #EFL_NET_DIALER_SIMPLE_CLASS.
1279 * See @li @ref efl_net_dialer_simple_example.c 1255 * See @li @ref efl_net_dialer_simple_example.c
1280 */ 1256 */
1281EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type, 1257ECORE_CON_API Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type,
1282 const char *name, int port, 1258 const char *name, int port,
1283 const void *data); 1259 const void *data);
1284/** 1260/**
@@ -1291,7 +1267,7 @@ EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type,
1291 * 1267 *
1292 * @see ecore_con_server_add, ecore_con_server_connect 1268 * @see ecore_con_server_add, ecore_con_server_connect
1293 */ 1269 */
1294EAPI void * ecore_con_server_del(Ecore_Con_Server *svr); 1270ECORE_CON_API void * ecore_con_server_del(Ecore_Con_Server *svr);
1295 1271
1296/** 1272/**
1297 * @brief Retrieves the name of server. 1273 * @brief Retrieves the name of server.
@@ -1303,7 +1279,7 @@ EAPI void * ecore_con_server_del(Ecore_Con_Server *svr);
1303 * 1279 *
1304 * @ingroup Efl_Network_Server 1280 * @ingroup Efl_Network_Server
1305 */ 1281 */
1306EAPI const char *ecore_con_server_name_get(const Ecore_Con_Server *svr); 1282ECORE_CON_API const char *ecore_con_server_name_get(const Ecore_Con_Server *svr);
1307 1283
1308/** 1284/**
1309 * @brief Retrieves the data associated with the given server. 1285 * @brief Retrieves the data associated with the given server.
@@ -1313,7 +1289,7 @@ EAPI const char *ecore_con_server_name_get(const Ecore_Con_Server *svr);
1313 * 1289 *
1314 * @see ecore_con_server_data_set() 1290 * @see ecore_con_server_data_set()
1315 */ 1291 */
1316EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr); 1292ECORE_CON_API void * ecore_con_server_data_get(Ecore_Con_Server *svr);
1317/** 1293/**
1318 * @brief Sets the data associated with the given server. 1294 * @brief Sets the data associated with the given server.
1319 * 1295 *
@@ -1323,7 +1299,7 @@ EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr);
1323 * 1299 *
1324 * @see ecore_con_server_data_get() 1300 * @see ecore_con_server_data_get()
1325 */ 1301 */
1326EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr, 1302ECORE_CON_API void * ecore_con_server_data_set(Ecore_Con_Server *svr,
1327 void *data); 1303 void *data);
1328/** 1304/**
1329 * @brief Retrieves whether the given server is currently connected. 1305 * @brief Retrieves whether the given server is currently connected.
@@ -1331,7 +1307,7 @@ EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr,
1331 * @param svr The given server. 1307 * @param svr The given server.
1332 * @return @c EINA_TRUE if the server is connected, @c EINA_FALSE otherwise. 1308 * @return @c EINA_TRUE if the server is connected, @c EINA_FALSE otherwise.
1333 */ 1309 */
1334EAPI Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *svr); 1310ECORE_CON_API Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *svr);
1335 1311
1336/** 1312/**
1337 * @brief Retrieves the server port in use. 1313 * @brief Retrieves the server port in use.
@@ -1341,7 +1317,7 @@ EAPI Eina_Bool ecore_con_server_connected_get(const Ecore_Con_Server *sv
1341 * 1317 *
1342 * The port where the server is listening for connections. 1318 * The port where the server is listening for connections.
1343 */ 1319 */
1344EAPI int ecore_con_server_port_get(const Ecore_Con_Server *svr); 1320ECORE_CON_API int ecore_con_server_port_get(const Ecore_Con_Server *svr);
1345/** 1321/**
1346 * @brief Checks how long a server has been connected. 1322 * @brief Checks how long a server has been connected.
1347 * 1323 *
@@ -1352,7 +1328,7 @@ EAPI int ecore_con_server_port_get(const Ecore_Con_Server *svr);
1352 * This function is used to find out the time that has been elapsed since 1328 * This function is used to find out the time that has been elapsed since
1353 * ecore_con_server_add() succeeded. 1329 * ecore_con_server_add() succeeded.
1354 */ 1330 */
1355EAPI double ecore_con_server_uptime_get(const Ecore_Con_Server *svr); 1331ECORE_CON_API double ecore_con_server_uptime_get(const Ecore_Con_Server *svr);
1356/** 1332/**
1357 * @brief Sends the given data to the given server. 1333 * @brief Sends the given data to the given server.
1358 * 1334 *
@@ -1370,7 +1346,7 @@ EAPI double ecore_con_server_uptime_get(const Ecore_Con_Server *svr);
1370 * @see ecore_con_client_send() 1346 * @see ecore_con_client_send()
1371 * @see ecore_con_server_flush() 1347 * @see ecore_con_server_flush()
1372 */ 1348 */
1373EAPI int ecore_con_server_send(Ecore_Con_Server *svr, 1349ECORE_CON_API int ecore_con_server_send(Ecore_Con_Server *svr,
1374 const void *data, 1350 const void *data,
1375 int size); 1351 int size);
1376/** 1352/**
@@ -1396,7 +1372,7 @@ EAPI int ecore_con_server_send(Ecore_Con_Server *svr,
1396 * clients have already connected and will not be affected by this call. 1372 * clients have already connected and will not be affected by this call.
1397 * Only clients subsequently trying to connect will be affected. 1373 * Only clients subsequently trying to connect will be affected.
1398 */ 1374 */
1399EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr, 1375ECORE_CON_API void ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
1400 int client_limit, 1376 int client_limit,
1401 char reject_excess_clients); 1377 char reject_excess_clients);
1402 1378
@@ -1412,7 +1388,7 @@ EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
1412 * @return The list of clients on this server. 1388 * @return The list of clients on this server.
1413 * 1389 *
1414 */ 1390 */
1415EAPI const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr); 1391ECORE_CON_API const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr);
1416 1392
1417/** 1393/**
1418 * @brief Gets the IP address of a server that has been connected to. 1394 * @brief Gets the IP address of a server that has been connected to.
@@ -1424,7 +1400,7 @@ EAPI const Eina_List *ecore_con_server_clients_get(const Ecore_Con_Server *svr);
1424 * deletion for the @p svr object. If no IP is known @c NULL is 1400 * deletion for the @p svr object. If no IP is known @c NULL is
1425 * returned. 1401 * returned.
1426 */ 1402 */
1427EAPI const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr); 1403ECORE_CON_API const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr);
1428/** 1404/**
1429 * @brief Flushes all pending data to the given server. 1405 * @brief Flushes all pending data to the given server.
1430 * 1406 *
@@ -1435,7 +1411,7 @@ EAPI const char * ecore_con_server_ip_get(const Ecore_Con_Server *svr);
1435 * @see ecore_con_server_send() 1411 * @see ecore_con_server_send()
1436 * @see ecore_con_client_flush() 1412 * @see ecore_con_client_flush()
1437 */ 1413 */
1438EAPI void ecore_con_server_flush(Ecore_Con_Server *svr); 1414ECORE_CON_API void ecore_con_server_flush(Ecore_Con_Server *svr);
1439/** 1415/**
1440 * @brief Sets the default time after which an inactive client will be disconnected. 1416 * @brief Sets the default time after which an inactive client will be disconnected.
1441 * 1417 *
@@ -1454,7 +1430,7 @@ EAPI void ecore_con_server_flush(Ecore_Con_Server *svr);
1454 * @see ecore_con_server_timeout_get() 1430 * @see ecore_con_server_timeout_get()
1455 * @see ecore_con_client_timeout_set() 1431 * @see ecore_con_client_timeout_set()
1456 */ 1432 */
1457EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout); 1433ECORE_CON_API void ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout);
1458/** 1434/**
1459 * @brief Gets the default time after which an inactive client will be disconnected. 1435 * @brief Gets the default time after which an inactive client will be disconnected.
1460 * 1436 *
@@ -1467,7 +1443,7 @@ EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, doubl
1467 * @see ecore_con_server_timeout_set() 1443 * @see ecore_con_server_timeout_set()
1468 * @see ecore_con_client_timeout_get() 1444 * @see ecore_con_client_timeout_get()
1469 */ 1445 */
1470EAPI double ecore_con_server_timeout_get(const Ecore_Con_Server *svr); 1446ECORE_CON_API double ecore_con_server_timeout_get(const Ecore_Con_Server *svr);
1471 1447
1472/** 1448/**
1473 * @brief Gets the fd that the server is connected to. 1449 * @brief Gets the fd that the server is connected to.
@@ -1481,7 +1457,7 @@ EAPI double ecore_con_server_timeout_get(const Ecore_Con_Server *svr)
1481 * @warning Seriously. Don't use this unless you know what you are doing. 1457 * @warning Seriously. Don't use this unless you know what you are doing.
1482 * @since 1.1 1458 * @since 1.1
1483 */ 1459 */
1484EAPI int ecore_con_server_fd_get(const Ecore_Con_Server *svr); 1460ECORE_CON_API int ecore_con_server_fd_get(const Ecore_Con_Server *svr);
1485 1461
1486/** 1462/**
1487 * @brief Gets the fd that the client is connected to. 1463 * @brief Gets the fd that the client is connected to.
@@ -1493,7 +1469,7 @@ EAPI int ecore_con_server_fd_get(const Ecore_Con_Server *svr);
1493 * It should not be tampered with unless you REALLY know what you are doing. 1469 * It should not be tampered with unless you REALLY know what you are doing.
1494 * @since 1.1 1470 * @since 1.1
1495 */ 1471 */
1496EAPI int ecore_con_client_fd_get(const Ecore_Con_Client *cl); 1472ECORE_CON_API int ecore_con_client_fd_get(const Ecore_Con_Client *cl);
1497/** 1473/**
1498 * @} 1474 * @}
1499 */ 1475 */
@@ -1535,7 +1511,7 @@ EAPI int ecore_con_client_fd_get(const Ecore_Con_Client *cl);
1535 * @see ecore_con_server_send() 1511 * @see ecore_con_server_send()
1536 * @see ecore_con_client_flush() 1512 * @see ecore_con_client_flush()
1537 */ 1513 */
1538EAPI int ecore_con_client_send(Ecore_Con_Client *cl, 1514ECORE_CON_API int ecore_con_client_send(Ecore_Con_Client *cl,
1539 const void *data, 1515 const void *data,
1540 int size); 1516 int size);
1541/** 1517/**
@@ -1544,14 +1520,14 @@ EAPI int ecore_con_client_send(Ecore_Con_Client *cl,
1544 * @param cl The given client. 1520 * @param cl The given client.
1545 * @return Data associated with the client. 1521 * @return Data associated with the client.
1546 */ 1522 */
1547EAPI void * ecore_con_client_del(Ecore_Con_Client *cl); 1523ECORE_CON_API void * ecore_con_client_del(Ecore_Con_Client *cl);
1548/** 1524/**
1549 * @brief Sets the data associated with the given client to @p data. 1525 * @brief Sets the data associated with the given client to @p data.
1550 * 1526 *
1551 * @param cl The given client. 1527 * @param cl The given client.
1552 * @param data What to set the data to. 1528 * @param data What to set the data to.
1553 */ 1529 */
1554EAPI void ecore_con_client_data_set(Ecore_Con_Client *cl, 1530ECORE_CON_API void ecore_con_client_data_set(Ecore_Con_Client *cl,
1555 const void *data); 1531 const void *data);
1556/** 1532/**
1557 * @brief Retrieves the data associated with the given client. 1533 * @brief Retrieves the data associated with the given client.
@@ -1559,7 +1535,7 @@ EAPI void ecore_con_client_data_set(Ecore_Con_Client *cl,
1559 * @param cl The given client. 1535 * @param cl The given client.
1560 * @return The data associated with @p cl. 1536 * @return The data associated with @p cl.
1561 */ 1537 */
1562EAPI void * ecore_con_client_data_get(Ecore_Con_Client *cl); 1538ECORE_CON_API void * ecore_con_client_data_get(Ecore_Con_Client *cl);
1563 1539
1564/** 1540/**
1565 * @brief Gets the IP address of a client that has connected. 1541 * @brief Gets the IP address of a client that has connected.
@@ -1571,7 +1547,7 @@ EAPI void * ecore_con_client_data_get(Ecore_Con_Client *cl);
1571 * The returned string should not be modified, freed or trusted to stay valid 1547 * The returned string should not be modified, freed or trusted to stay valid
1572 * after deletion for the @p cl object. If no IP is known @c NULL is returned. 1548 * after deletion for the @p cl object. If no IP is known @c NULL is returned.
1573 */ 1549 */
1574EAPI const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl); 1550ECORE_CON_API const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl);
1575/** 1551/**
1576 * @brief Flushes all pending data to the given client. 1552 * @brief Flushes all pending data to the given client.
1577 * 1553 *
@@ -1582,7 +1558,7 @@ EAPI const char * ecore_con_client_ip_get(const Ecore_Con_Client *cl);
1582 * @see ecore_con_client_send() 1558 * @see ecore_con_client_send()
1583 * @see ecore_con_server_flush() 1559 * @see ecore_con_server_flush()
1584 */ 1560 */
1585EAPI void ecore_con_client_flush(Ecore_Con_Client *cl); 1561ECORE_CON_API void ecore_con_client_flush(Ecore_Con_Client *cl);
1586/** 1562/**
1587 * @brief Checks how long a client has been connected. 1563 * @brief Checks how long a client has been connected.
1588 * 1564 *
@@ -1592,7 +1568,7 @@ EAPI void ecore_con_client_flush(Ecore_Con_Client *cl);
1592 * 1568 *
1593 * This function is used to find out how long a client has been connected for. 1569 * This function is used to find out how long a client has been connected for.
1594 */ 1570 */
1595EAPI double ecore_con_client_uptime_get(const Ecore_Con_Client *cl); 1571ECORE_CON_API double ecore_con_client_uptime_get(const Ecore_Con_Client *cl);
1596/** 1572/**
1597 * @brief Gets the default time after which the client will be disconnected when 1573 * @brief Gets the default time after which the client will be disconnected when
1598 * inactive. 1574 * inactive.
@@ -1605,7 +1581,7 @@ EAPI double ecore_con_client_uptime_get(const Ecore_Con_Client *cl);
1605 * 1581 *
1606 * @see ecore_con_client_timeout_set() 1582 * @see ecore_con_client_timeout_set()
1607 */ 1583 */
1608EAPI double ecore_con_client_timeout_get(const Ecore_Con_Client *cl); 1584ECORE_CON_API double ecore_con_client_timeout_get(const Ecore_Con_Client *cl);
1609/** 1585/**
1610 * @brief Sets the time after which the client will be disconnected when inactive. 1586 * @brief Sets the time after which the client will be disconnected when inactive.
1611 * 1587 *
@@ -1625,14 +1601,14 @@ EAPI double ecore_con_client_timeout_get(const Ecore_Con_Client *cl);
1625 * @see ecore_con_client_timeout_get() 1601 * @see ecore_con_client_timeout_get()
1626 * @see ecore_con_server_timeout_set() 1602 * @see ecore_con_server_timeout_set()
1627 */ 1603 */
1628EAPI void ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout); 1604ECORE_CON_API void ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout);
1629/** 1605/**
1630 * @brief Returns whether the client is still connected. 1606 * @brief Returns whether the client is still connected.
1631 * 1607 *
1632 * @param cl The given client. 1608 * @param cl The given client.
1633 * @return @c EINA_TRUE if connected, @c EINA_FALSE otherwise. 1609 * @return @c EINA_TRUE if connected, @c EINA_FALSE otherwise.
1634 */ 1610 */
1635EAPI Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl); 1611ECORE_CON_API Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl);
1636/** 1612/**
1637 * @brief Returns the port that the client has connected to. 1613 * @brief Returns the port that the client has connected to.
1638 * 1614 *
@@ -1640,7 +1616,7 @@ EAPI Eina_Bool ecore_con_client_connected_get(const Ecore_Con_Client *cl
1640 * @return The port that @p cl has connected to, or @c -1 on error 1616 * @return The port that @p cl has connected to, or @c -1 on error
1641 * Use this function to return the port on which a given client has connected. 1617 * Use this function to return the port on which a given client has connected.
1642 */ 1618 */
1643EAPI int ecore_con_client_port_get(const Ecore_Con_Client *cl); 1619ECORE_CON_API int ecore_con_client_port_get(const Ecore_Con_Client *cl);
1644 1620
1645/** 1621/**
1646 * @brief The server the client is connected to. 1622 * @brief The server the client is connected to.
@@ -1648,7 +1624,7 @@ EAPI int ecore_con_client_port_get(const Ecore_Con_Client *cl);
1648 * @param cl The client 1624 * @param cl The client
1649 * @return The server the client is connected to. 1625 * @return The server the client is connected to.
1650 */ 1626 */
1651EAPI Ecore_Con_Server *ecore_con_client_server_get(const Ecore_Con_Client *cl); 1627ECORE_CON_API Ecore_Con_Server *ecore_con_client_server_get(const Ecore_Con_Client *cl);
1652 1628
1653/** 1629/**
1654 * @} 1630 * @}
@@ -1773,7 +1749,7 @@ typedef enum _Ecore_Con_Url_Http_Version
1773 * @since 1.2 1749 * @since 1.2
1774 * @see ecore_con_url_pipeline_get() 1750 * @see ecore_con_url_pipeline_get()
1775 */ 1751 */
1776EAPI Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version); 1752ECORE_CON_API Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version);
1777 1753
1778/** 1754/**
1779 * @brief Initializes the Ecore_Con_Url library. 1755 * @brief Initializes the Ecore_Con_Url library.
@@ -1783,7 +1759,7 @@ EAPI Eina_Bool ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ec
1783 * @note This function doesn't call ecore_con_init(). You still need to call it 1759 * @note This function doesn't call ecore_con_init(). You still need to call it
1784 * explicitly before calling this one. 1760 * explicitly before calling this one.
1785 */ 1761 */
1786EAPI int ecore_con_url_init(void); 1762ECORE_CON_API int ecore_con_url_init(void);
1787 1763
1788/** 1764/**
1789 * @brief Shuts down the Ecore_Con_Url library. 1765 * @brief Shuts down the Ecore_Con_Url library.
@@ -1792,7 +1768,7 @@ EAPI int ecore_con_url_init(void);
1792 * @note This function doesn't call ecore_con_shutdown(). You still need to call 1768 * @note This function doesn't call ecore_con_shutdown(). You still need to call
1793 * it explicitly after calling this one. 1769 * it explicitly after calling this one.
1794 */ 1770 */
1795EAPI int ecore_con_url_shutdown(void); 1771ECORE_CON_API int ecore_con_url_shutdown(void);
1796 1772
1797/** 1773/**
1798 * @brief Enables or disable HTTP 1.1 pipelining. 1774 * @brief Enables or disable HTTP 1.1 pipelining.
@@ -1809,14 +1785,14 @@ EAPI int ecore_con_url_shutdown(void);
1809 * 1785 *
1810 * @see ecore_con_url_pipeline_get() 1786 * @see ecore_con_url_pipeline_get()
1811 */ 1787 */
1812EAPI void ecore_con_url_pipeline_set(Eina_Bool enable); 1788ECORE_CON_API void ecore_con_url_pipeline_set(Eina_Bool enable);
1813/** 1789/**
1814 * @brief Is HTTP 1.1 pipelining enable ? 1790 * @brief Is HTTP 1.1 pipelining enable ?
1815 * @return @c EINA_TRUE if it is enable. 1791 * @return @c EINA_TRUE if it is enable.
1816 * 1792 *
1817 * @see ecore_con_url_pipeline_set() 1793 * @see ecore_con_url_pipeline_set()
1818 */ 1794 */
1819EAPI Eina_Bool ecore_con_url_pipeline_get(void); 1795ECORE_CON_API Eina_Bool ecore_con_url_pipeline_get(void);
1820 1796
1821/** 1797/**
1822 * @brief Creates and initializes a new Ecore_Con_Url connection object. 1798 * @brief Creates and initializes a new Ecore_Con_Url connection object.
@@ -1832,7 +1808,7 @@ EAPI Eina_Bool ecore_con_url_pipeline_get(void);
1832 * @see ecore_con_url_custom_new() 1808 * @see ecore_con_url_custom_new()
1833 * @see ecore_con_url_url_set() 1809 * @see ecore_con_url_url_set()
1834 */ 1810 */
1835EAPI Ecore_Con_Url * ecore_con_url_new(const char *url); 1811ECORE_CON_API Ecore_Con_Url * ecore_con_url_new(const char *url);
1836 1812
1837 1813
1838/** 1814/**
@@ -1842,7 +1818,7 @@ EAPI Ecore_Con_Url * ecore_con_url_new(const char *url);
1842 * @param url the new URL. 1818 * @param url the new URL.
1843 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors. 1819 * @return @c EINA_TRUE on success, @c EINA_FALSE on errors.
1844 */ 1820 */
1845EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con, 1821ECORE_CON_API Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con,
1846 const char *url); 1822 const char *url);
1847 1823
1848/** 1824/**
@@ -1851,7 +1827,7 @@ EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con,
1851 * @param url_con the Connection object to retrieve URL. 1827 * @param url_con the Connection object to retrieve URL.
1852 * @return @c NULL on error, read-only URL string on success. 1828 * @return @c NULL on error, read-only URL string on success.
1853 */ 1829 */
1854EAPI const char *ecore_con_url_url_get(Ecore_Con_Url *url_con); 1830ECORE_CON_API const char *ecore_con_url_url_get(Ecore_Con_Url *url_con);
1855 1831
1856/** 1832/**
1857 * @brief Creates a custom connection object. 1833 * @brief Creates a custom connection object.
@@ -1868,7 +1844,7 @@ EAPI const char *ecore_con_url_url_get(Ecore_Con_Url *url_con);
1868 * @see ecore_con_url_new() 1844 * @see ecore_con_url_new()
1869 * @see ecore_con_url_url_set() 1845 * @see ecore_con_url_url_set()
1870 */ 1846 */
1871EAPI Ecore_Con_Url * ecore_con_url_custom_new(const char *url, 1847ECORE_CON_API Ecore_Con_Url * ecore_con_url_custom_new(const char *url,
1872 const char *custom_request); 1848 const char *custom_request);
1873/** 1849/**
1874 * @brief Destroys an Ecore_Con_Url connection object. 1850 * @brief Destroys an Ecore_Con_Url connection object.
@@ -1877,7 +1853,7 @@ EAPI Ecore_Con_Url * ecore_con_url_custom_new(const char *url,
1877 * 1853 *
1878 * @see ecore_con_url_new() 1854 * @see ecore_con_url_new()
1879 */ 1855 */
1880EAPI void ecore_con_url_free(Ecore_Con_Url *url_con); 1856ECORE_CON_API void ecore_con_url_free(Ecore_Con_Url *url_con);
1881 1857
1882/** 1858/**
1883 * @brief Associates data with a connection object. 1859 * @brief Associates data with a connection object.
@@ -1890,7 +1866,7 @@ EAPI void ecore_con_url_free(Ecore_Con_Url *url_con);
1890 * 1866 *
1891 * @see ecore_con_url_data_get() 1867 * @see ecore_con_url_data_get()
1892 */ 1868 */
1893EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con, 1869ECORE_CON_API void ecore_con_url_data_set(Ecore_Con_Url *url_con,
1894 void *data); 1870 void *data);
1895/** 1871/**
1896 * @brief Retrieves data associated with a Ecore_Con_Url connection object. 1872 * @brief Retrieves data associated with a Ecore_Con_Url connection object.
@@ -1904,7 +1880,7 @@ EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con,
1904 * 1880 *
1905 * @see ecore_con_url_data_set() 1881 * @see ecore_con_url_data_set()
1906 */ 1882 */
1907EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con); 1883ECORE_CON_API void * ecore_con_url_data_get(Ecore_Con_Url *url_con);
1908/** 1884/**
1909 * @brief Adds an additional header to the request connection object. 1885 * @brief Adds an additional header to the request connection object.
1910 * 1886 *
@@ -1922,7 +1898,7 @@ EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con);
1922 * @see ecore_con_url_post() 1898 * @see ecore_con_url_post()
1923 * @see ecore_con_url_additional_headers_clear() 1899 * @see ecore_con_url_additional_headers_clear()
1924 */ 1900 */
1925EAPI void ecore_con_url_additional_header_add(Ecore_Con_Url *url_con, 1901ECORE_CON_API void ecore_con_url_additional_header_add(Ecore_Con_Url *url_con,
1926 const char *key, 1902 const char *key,
1927 const char *value); 1903 const char *value);
1928/** 1904/**
@@ -1937,7 +1913,7 @@ EAPI void ecore_con_url_additional_header_add(Ecore_Con_Url *url_co
1937 * @see ecore_con_url_get() 1913 * @see ecore_con_url_get()
1938 * @see ecore_con_url_post() 1914 * @see ecore_con_url_post()
1939 */ 1915 */
1940EAPI void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con); 1916ECORE_CON_API void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con);
1941/** 1917/**
1942 * @brief Retrieves headers from last request sent. 1918 * @brief Retrieves headers from last request sent.
1943 * 1919 *
@@ -1949,7 +1925,7 @@ EAPI void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url
1949 * 1925 *
1950 * @return List of response headers. This list must not be modified by the user. 1926 * @return List of response headers. This list must not be modified by the user.
1951 */ 1927 */
1952EAPI const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con); 1928ECORE_CON_API const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con);
1953/** 1929/**
1954 * @brief Sets up a file for receiving response data. 1930 * @brief Sets up a file for receiving response data.
1955 * 1931 *
@@ -1964,7 +1940,7 @@ EAPI const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con
1964 * This call can be used to easily setup a file where the downloaded data will 1940 * This call can be used to easily setup a file where the downloaded data will
1965 * be saved. 1941 * be saved.
1966 */ 1942 */
1967EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd); 1943ECORE_CON_API void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd);
1968/** 1944/**
1969 * @brief Retrieves the number of bytes received. 1945 * @brief Retrieves the number of bytes received.
1970 * 1946 *
@@ -1978,7 +1954,7 @@ EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd);
1978 * @see ecore_con_url_get() 1954 * @see ecore_con_url_get()
1979 * @see ecore_con_url_post() 1955 * @see ecore_con_url_post()
1980 */ 1956 */
1981EAPI int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con); 1957ECORE_CON_API int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con);
1982/** 1958/**
1983 * @brief Sets url_con to use http auth, with given username and password, "safely" or not. 1959 * @brief Sets url_con to use http auth, with given username and password, "safely" or not.
1984 * 1960 *
@@ -1993,7 +1969,7 @@ EAPI int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con);
1993 * @attention Require libcurl >= 7.19.1 to work, otherwise will always return 1969 * @attention Require libcurl >= 7.19.1 to work, otherwise will always return
1994 * @c 0. 1970 * @c 0.
1995 */ 1971 */
1996EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, 1972ECORE_CON_API Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
1997 const char *username, 1973 const char *username,
1998 const char *password, 1974 const char *password,
1999 Eina_Bool safe); 1975 Eina_Bool safe);
@@ -2017,7 +1993,7 @@ EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
2017 * @see ecore_con_url_time() 1993 * @see ecore_con_url_time()
2018 * @see ecore_con_url_post() 1994 * @see ecore_con_url_post()
2019 */ 1995 */
2020EAPI Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con); 1996ECORE_CON_API Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con);
2021/** 1997/**
2022 * @brief Sends a HEAD request. 1998 * @brief Sends a HEAD request.
2023 * 1999 *
@@ -2037,7 +2013,7 @@ EAPI Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con);
2037 * @see ecore_con_url_post() 2013 * @see ecore_con_url_post()
2038 * @since 1.14 2014 * @since 1.14
2039 */ 2015 */
2040EAPI Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con); 2016ECORE_CON_API Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con);
2041/** 2017/**
2042 * @brief Sends a post request. 2018 * @brief Sends a post request.
2043 * 2019 *
@@ -2066,7 +2042,7 @@ EAPI Eina_Bool ecore_con_url_head(Ecore_Con_Url *url_con);
2066 * @see ecore_con_url_time() 2042 * @see ecore_con_url_time()
2067 * @see ecore_con_url_get() 2043 * @see ecore_con_url_get()
2068 */ 2044 */
2069EAPI Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con, 2045ECORE_CON_API Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con,
2070 const void *data, long length, 2046 const void *data, long length,
2071 const char *content_type); 2047 const char *content_type);
2072/** 2048/**
@@ -2084,7 +2060,7 @@ EAPI Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con,
2084 * @sa ecore_con_url_get() 2060 * @sa ecore_con_url_get()
2085 * @sa ecore_con_url_post() 2061 * @sa ecore_con_url_post()
2086 */ 2062 */
2087EAPI void ecore_con_url_time(Ecore_Con_Url *url_con, 2063ECORE_CON_API void ecore_con_url_time(Ecore_Con_Url *url_con,
2088 Ecore_Con_Url_Time time_condition, 2064 Ecore_Con_Url_Time time_condition,
2089 double timestamp); 2065 double timestamp);
2090 2066
@@ -2101,7 +2077,7 @@ EAPI void ecore_con_url_time(Ecore_Con_Url *url_con,
2101 * Upload @p filename to an ftp server set in @p url_con using @p user 2077 * Upload @p filename to an ftp server set in @p url_con using @p user
2102 * and @p pass to directory @p upload_dir 2078 * and @p pass to directory @p upload_dir
2103 */ 2079 */
2104EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, 2080ECORE_CON_API Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
2105 const char *filename, 2081 const char *filename,
2106 const char *user, 2082 const char *user,
2107 const char *pass, 2083 const char *pass,
@@ -2116,14 +2092,14 @@ EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
2116 * information about its operations, which is useful for 2092 * information about its operations, which is useful for
2117 * debugging. The verbose information will be sent to stderr. 2093 * debugging. The verbose information will be sent to stderr.
2118 */ 2094 */
2119EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con, 2095ECORE_CON_API void ecore_con_url_verbose_set(Ecore_Con_Url *url_con,
2120 Eina_Bool verbose); 2096 Eina_Bool verbose);
2121/** 2097/**
2122 * @brief Enables or disables EPSV extension. 2098 * @brief Enables or disables EPSV extension.
2123 * @param url_con The Ecore_Con_Url instance which will be acted upon. 2099 * @param url_con The Ecore_Con_Url instance which will be acted upon.
2124 * @param use_epsv Boolean to enable/disable the EPSV extension. 2100 * @param use_epsv Boolean to enable/disable the EPSV extension.
2125 */ 2101 */
2126EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, 2102ECORE_CON_API void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
2127 Eina_Bool use_epsv); 2103 Eina_Bool use_epsv);
2128 2104
2129/** 2105/**
@@ -2138,7 +2114,7 @@ EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
2138 * @note Even though this function is called @c ecore_con_url_cookies_init(), 2114 * @note Even though this function is called @c ecore_con_url_cookies_init(),
2139 * there is no symmetrical shutdown operation. 2115 * there is no symmetrical shutdown operation.
2140 */ 2116 */
2141EAPI void ecore_con_url_cookies_init(Ecore_Con_Url *url_con); 2117ECORE_CON_API void ecore_con_url_cookies_init(Ecore_Con_Url *url_con);
2142/** 2118/**
2143 * @brief Controls whether session cookies from previous sessions shall be loaded. 2119 * @brief Controls whether session cookies from previous sessions shall be loaded.
2144 * 2120 *
@@ -2159,7 +2135,7 @@ EAPI void ecore_con_url_cookies_init(Ecore_Con_Url *url_con);
2159 * 2135 *
2160 * @see ecore_con_url_cookies_file_add() 2136 * @see ecore_con_url_cookies_file_add()
2161 */ 2137 */
2162EAPI void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con, 2138ECORE_CON_API void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con,
2163 Eina_Bool ignore); 2139 Eina_Bool ignore);
2164/** 2140/**
2165 * @brief Clears currently loaded cookies. 2141 * @brief Clears currently loaded cookies.
@@ -2183,7 +2159,7 @@ EAPI void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Ur
2183 * @see ecore_con_url_cookies_session_clear() 2159 * @see ecore_con_url_cookies_session_clear()
2184 * @see ecore_con_url_cookies_ignore_old_session_set() 2160 * @see ecore_con_url_cookies_ignore_old_session_set()
2185 */ 2161 */
2186EAPI void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con); 2162ECORE_CON_API void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con);
2187/** 2163/**
2188 * @brief Clears currently loaded session cookies. 2164 * @brief Clears currently loaded session cookies.
2189 * 2165 *
@@ -2212,7 +2188,7 @@ EAPI void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con);
2212 * @see ecore_con_url_cookies_clear() 2188 * @see ecore_con_url_cookies_clear()
2213 * @see ecore_con_url_cookies_ignore_old_session_set() 2189 * @see ecore_con_url_cookies_ignore_old_session_set()
2214 */ 2190 */
2215EAPI void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con); 2191ECORE_CON_API void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con);
2216/** 2192/**
2217 * @brief Adds a file to the list of files from which to load cookies. 2193 * @brief Adds a file to the list of files from which to load cookies.
2218 * 2194 *
@@ -2239,7 +2215,7 @@ EAPI void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_co
2239 * @see ecore_con_url_cookies_ignore_old_session_set() 2215 * @see ecore_con_url_cookies_ignore_old_session_set()
2240 * @see ecore_con_url_cookies_jar_file_set() 2216 * @see ecore_con_url_cookies_jar_file_set()
2241 */ 2217 */
2242EAPI void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con, 2218ECORE_CON_API void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
2243 const char * const file_name); 2219 const char * const file_name);
2244/** 2220/**
2245 * @brief Sets the name of the file to which all current cookies will be written when 2221 * @brief Sets the name of the file to which all current cookies will be written when
@@ -2262,7 +2238,7 @@ EAPI void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
2262 * 2238 *
2263 * @see ecore_con_url_cookies_jar_write() 2239 * @see ecore_con_url_cookies_jar_write()
2264 */ 2240 */
2265EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con, 2241ECORE_CON_API Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con,
2266 const char * const cookiejar_file); 2242 const char * const cookiejar_file);
2267/** 2243/**
2268 * @brief Writes all current cookies to the cookie jar immediately. 2244 * @brief Writes all current cookies to the cookie jar immediately.
@@ -2277,7 +2253,7 @@ EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con
2277 * 2253 *
2278 * @see ecore_con_url_cookies_jar_file_set() 2254 * @see ecore_con_url_cookies_jar_file_set()
2279 */ 2255 */
2280EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con); 2256ECORE_CON_API void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con);
2281 2257
2282/** 2258/**
2283 * Toggle libcurl's verify peer's certificate option. 2259 * Toggle libcurl's verify peer's certificate option.
@@ -2291,7 +2267,7 @@ EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con);
2291 * @param verify Whether or not libcurl will check peer's certificate. 2267 * @param verify Whether or not libcurl will check peer's certificate.
2292 * @since 1.1.0 2268 * @since 1.1.0
2293 */ 2269 */
2294EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, 2270ECORE_CON_API void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
2295 Eina_Bool verify); 2271 Eina_Bool verify);
2296/** 2272/**
2297 * Set a custom CA to trust for SSL/TLS connections. 2273 * Set a custom CA to trust for SSL/TLS connections.
@@ -2311,7 +2287,7 @@ EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
2311 * @return @c 0 on success. When cURL is used, non-zero return values 2287 * @return @c 0 on success. When cURL is used, non-zero return values
2312 * are equal to cURL error codes. 2288 * are equal to cURL error codes.
2313 */ 2289 */
2314EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con, 2290ECORE_CON_API int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
2315 const char *ca_path); 2291 const char *ca_path);
2316 2292
2317/** 2293/**
@@ -2331,7 +2307,7 @@ EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
2331 * @return @c EINA_TRUE on success, @c EINA_FALSE on error. 2307 * @return @c EINA_TRUE on success, @c EINA_FALSE on error.
2332 * @since 1.2 2308 * @since 1.2
2333 */ 2309 */
2334EAPI Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy); 2310ECORE_CON_API Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy);
2335 2311
2336/** 2312/**
2337 * @brief Sets zero terminated username to use for proxy. 2313 * @brief Sets zero terminated username to use for proxy.
@@ -2347,7 +2323,7 @@ EAPI Eina_Bool ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy
2347 * 2323 *
2348 * @since 1.2 2324 * @since 1.2
2349 */ 2325 */
2350EAPI Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username); 2326ECORE_CON_API Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username);
2351 2327
2352/** 2328/**
2353 * @brief Sets zero terminated password to use for proxy. 2329 * @brief Sets zero terminated password to use for proxy.
@@ -2363,7 +2339,7 @@ EAPI Eina_Bool ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const ch
2363 * 2339 *
2364 * @since 1.2 2340 * @since 1.2
2365 */ 2341 */
2366EAPI Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password); 2342ECORE_CON_API Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password);
2367 2343
2368/** 2344/**
2369 * @brief Sets timeout in seconds. 2345 * @brief Sets timeout in seconds.
@@ -2380,7 +2356,7 @@ EAPI Eina_Bool ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const ch
2380 * 2356 *
2381 * @since 1.2 2357 * @since 1.2
2382 */ 2358 */
2383EAPI void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout); 2359ECORE_CON_API void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout);
2384 2360
2385/** 2361/**
2386 * @brief Gets the returned HTTP STATUS code. 2362 * @brief Gets the returned HTTP STATUS code.
@@ -2391,7 +2367,7 @@ EAPI void ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout);
2391 * 2367 *
2392 * @since 1.2 2368 * @since 1.2
2393 */ 2369 */
2394EAPI int ecore_con_url_status_code_get(Ecore_Con_Url *url_con); 2370ECORE_CON_API int ecore_con_url_status_code_get(Ecore_Con_Url *url_con);
2395 2371
2396/** 2372/**
2397 * @brief Sets a maximum upload speed. 2373 * @brief Sets a maximum upload speed.
@@ -2399,7 +2375,7 @@ EAPI int ecore_con_url_status_code_get(Ecore_Con_Url *url_con);
2399 * @param url_obj Connection object 2375 * @param url_obj Connection object
2400 * @param max_speed Maximum upload speed, in bytes per second 2376 * @param max_speed Maximum upload speed, in bytes per second
2401 */ 2377 */
2402EAPI void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_speed); 2378ECORE_CON_API void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_speed);
2403 2379
2404/** 2380/**
2405 * @brief Sets a maximum download speed. 2381 * @brief Sets a maximum download speed.
@@ -2407,7 +2383,7 @@ EAPI void ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_obj, off_t max_spe
2407 * @param url_obj Connection object 2383 * @param url_obj Connection object
2408 * @param max_speed Maximum download speed, in bytes per second 2384 * @param max_speed Maximum download speed, in bytes per second
2409 */ 2385 */
2410EAPI void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_speed); 2386ECORE_CON_API void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_speed);
2411 2387
2412/** 2388/**
2413 * @} 2389 * @}
@@ -2417,7 +2393,4 @@ EAPI void ecore_con_url_limit_download_speed(Ecore_Con_Url *url_obj, off_t max_s
2417} 2393}
2418#endif 2394#endif
2419 2395
2420#undef EAPI
2421#define EAPI
2422
2423#endif 2396#endif
diff --git a/src/lib/ecore_con/Ecore_Con_Eet.h b/src/lib/ecore_con/Ecore_Con_Eet.h
index 4a716752a3..013786062e 100644
--- a/src/lib/ecore_con/Ecore_Con_Eet.h
+++ b/src/lib/ecore_con/Ecore_Con_Eet.h
@@ -5,31 +5,7 @@
5#include <Ecore.h> 5#include <Ecore.h>
6#include <Ecore_Con.h> 6#include <Ecore_Con.h>
7 7
8#ifdef EAPI 8#include <ecore_con_api.h>
9# undef EAPI
10#endif
11
12#ifdef _WIN32
13# ifdef EFL_BUILD
14# ifdef DLL_EXPORT
15# define EAPI __declspec(dllexport)
16# else
17# define EAPI
18# endif
19# else
20# define EAPI __declspec(dllimport)
21# endif
22#else
23# ifdef __GNUC__
24# if __GNUC__ >= 4
25# define EAPI __attribute__ ((visibility("default")))
26# else
27# define EAPI
28# endif
29# else
30# define EAPI
31# endif
32#endif
33 9
34/** 10/**
35 * @defgroup Ecore_Con_Eet_Group Eet connection functions 11 * @defgroup Ecore_Con_Eet_Group Eet connection functions
@@ -100,7 +76,7 @@ typedef Eina_Bool (*Ecore_Con_Eet_Server_Cb)(void *data, Ecore_Con_Reply *reply,
100 * 76 *
101 * @return A new Ecore_Con_Eet server. 77 * @return A new Ecore_Con_Eet server.
102 */ 78 */
103EAPI Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server); 79ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server);
104 80
105/** 81/**
106 * @brief Creates an Ecore_Con_Eet client. 82 * @brief Creates an Ecore_Con_Eet client.
@@ -114,7 +90,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_server_new(Ecore_Con_Server *server);
114 * 90 *
115 * @return A new Ecore_Con_Eet client. 91 * @return A new Ecore_Con_Eet client.
116 */ 92 */
117EAPI Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server); 93ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server);
118 94
119/** 95/**
120 * @brief Frees an existing Ecore_Con_Eet object. 96 * @brief Frees an existing Ecore_Con_Eet object.
@@ -124,7 +100,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_client_new(Ecore_Con_Server *server);
124 * ecore_con_eet_client_new. 100 * ecore_con_eet_client_new.
125 * 101 *
126 */ 102 */
127EAPI void ecore_con_eet_server_free(Ecore_Con_Eet *server); 103ECORE_CON_API void ecore_con_eet_server_free(Ecore_Con_Eet *server);
128 104
129/** 105/**
130 * @brief Registers an @c Eet data descriptor on a Ecore_Con_Eet object. 106 * @brief Registers an @c Eet data descriptor on a Ecore_Con_Eet object.
@@ -135,7 +111,7 @@ EAPI void ecore_con_eet_server_free(Ecore_Con_Eet *server);
135 * in the Eet stream. 111 * in the Eet stream.
136 * 112 *
137 */ 113 */
138EAPI void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd); 114ECORE_CON_API void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd);
139 115
140/** 116/**
141 * @brief Registers a data callback on a Ecore_Con_Eet object. 117 * @brief Registers a data callback on a Ecore_Con_Eet object.
@@ -147,7 +123,7 @@ EAPI void ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_
147 * @param data The data to pass to the callback. 123 * @param data The data to pass to the callback.
148 * 124 *
149 */ 125 */
150EAPI void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 126ECORE_CON_API void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
151 127
152/** 128/**
153 * @brief Removes a data callback on a Ecore_Con_Eet object. 129 * @brief Removes a data callback on a Ecore_Con_Eet object.
@@ -156,7 +132,7 @@ EAPI void ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name,
156 * @param name The name of the Eet stream to remove callback on. 132 * @param name The name of the Eet stream to remove callback on.
157 * 133 *
158 */ 134 */
159EAPI void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name); 135ECORE_CON_API void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name);
160 136
161/** 137/**
162 * @brief Registers a raw data callback on a Ecore_Con_Eet object. 138 * @brief Registers a raw data callback on a Ecore_Con_Eet object.
@@ -168,7 +144,7 @@ EAPI void ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name);
168 * @param data The data to pass to the callback. 144 * @param data The data to pass to the callback.
169 * 145 *
170 */ 146 */
171EAPI void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 147ECORE_CON_API void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
172 148
173/** 149/**
174 * @brief Removes a raw data callback on a Ecore_Con_Eet object. 150 * @brief Removes a raw data callback on a Ecore_Con_Eet object.
@@ -177,7 +153,7 @@ EAPI void ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *na
177 * @param name The name of the raw Eet stream to remove callback on. 153 * @param name The name of the raw Eet stream to remove callback on.
178 * 154 *
179 */ 155 */
180EAPI void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name); 156ECORE_CON_API void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name);
181 157
182/** 158/**
183 * @brief Registers a client connect callback on a Ecore_Con_Eet object. 159 * @brief Registers a client connect callback on a Ecore_Con_Eet object.
@@ -189,7 +165,7 @@ EAPI void ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *na
189 * @param func The function to call as a callback. 165 * @param func The function to call as a callback.
190 * @param data The data to pass to the callback. 166 * @param data The data to pass to the callback.
191 */ 167 */
192EAPI void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 168ECORE_CON_API void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
193 169
194/** 170/**
195 * @brief Removes a client connect callback on a Ecore_Con_Eet object. 171 * @brief Removes a client connect callback on a Ecore_Con_Eet object.
@@ -198,7 +174,7 @@ EAPI void ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Co
198 * @param func The callback to remove. 174 * @param func The callback to remove.
199 * @param data The data passed to this function at the callback registration. 175 * @param data The data passed to this function at the callback registration.
200 */ 176 */
201EAPI void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 177ECORE_CON_API void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
202 178
203/** 179/**
204 * @brief Registers a client disconnect callback on a Ecore_Con_Eet object. 180 * @brief Registers a client disconnect callback on a Ecore_Con_Eet object.
@@ -210,7 +186,7 @@ EAPI void ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Co
210 * @param func The function to call as a callback. 186 * @param func The function to call as a callback.
211 * @param data The data to pass to the callback. 187 * @param data The data to pass to the callback.
212 */ 188 */
213EAPI void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 189ECORE_CON_API void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
214 190
215/** 191/**
216 * @brief Removes a client disconnect callback on a Ecore_Con_Eet object. 192 * @brief Removes a client disconnect callback on a Ecore_Con_Eet object.
@@ -219,7 +195,7 @@ EAPI void ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore
219 * @param func The callback to remove. 195 * @param func The callback to remove.
220 * @param data The data passed to this function at the callback registration. 196 * @param data The data passed to this function at the callback registration.
221 */ 197 */
222EAPI void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data); 198ECORE_CON_API void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data);
223 199
224/** 200/**
225 * @brief Registers a server connect callback on a Ecore_Con_Eet object. 201 * @brief Registers a server connect callback on a Ecore_Con_Eet object.
@@ -231,7 +207,7 @@ EAPI void ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore
231 * @param func The function to call as a callback. 207 * @param func The function to call as a callback.
232 * @param data The data to pass to the callback. 208 * @param data The data to pass to the callback.
233 */ 209 */
234EAPI void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 210ECORE_CON_API void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
235 211
236/** 212/**
237 * @brief Removes a server connect callback on a Ecore_Con_Eet object. 213 * @brief Removes a server connect callback on a Ecore_Con_Eet object.
@@ -240,7 +216,7 @@ EAPI void ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Co
240 * @param func The callback to remove. 216 * @param func The callback to remove.
241 * @param data The data passed to this function at the callback registration. 217 * @param data The data passed to this function at the callback registration.
242 */ 218 */
243EAPI void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 219ECORE_CON_API void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
244 220
245/** 221/**
246 * @brief Registers a server disconnect callback on a Ecore_Con_Eet object. 222 * @brief Registers a server disconnect callback on a Ecore_Con_Eet object.
@@ -252,7 +228,7 @@ EAPI void ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Co
252 * @param func The function to call as a callback. 228 * @param func The function to call as a callback.
253 * @param data The data to pass to the callback. 229 * @param data The data to pass to the callback.
254 */ 230 */
255EAPI void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 231ECORE_CON_API void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
256 232
257/** 233/**
258 * @brief Removes a server disconnect callback on a Ecore_Con_Eet object. 234 * @brief Removes a server disconnect callback on a Ecore_Con_Eet object.
@@ -261,7 +237,7 @@ EAPI void ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore
261 * @param func The callback to remove. 237 * @param func The callback to remove.
262 * @param data The data passed to this function at the callback registration. 238 * @param data The data passed to this function at the callback registration.
263 */ 239 */
264EAPI void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data); 240ECORE_CON_API void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data);
265 241
266/** 242/**
267 * @brief Attaches data to an Ecore_Con_Eet object. 243 * @brief Attaches data to an Ecore_Con_Eet object.
@@ -269,7 +245,7 @@ EAPI void ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore
269 * @param ece An Ecore_Con_Eet object. 245 * @param ece An Ecore_Con_Eet object.
270 * @param data The data to attach to the Ecore_Con_Eet object. 246 * @param data The data to attach to the Ecore_Con_Eet object.
271 */ 247 */
272EAPI void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data); 248ECORE_CON_API void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data);
273 249
274/** 250/**
275 * @brief Gets the data attached to an Ecore_Con_Eet object. 251 * @brief Gets the data attached to an Ecore_Con_Eet object.
@@ -277,7 +253,7 @@ EAPI void ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data);
277 * @param ece An Ecore_Con_Eet object. 253 * @param ece An Ecore_Con_Eet object.
278 * @return The data attached to the Ecore_Con_Eet object. 254 * @return The data attached to the Ecore_Con_Eet object.
279 */ 255 */
280EAPI const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece); 256ECORE_CON_API const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece);
281 257
282/** 258/**
283 * @brief Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object. 259 * @brief Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object.
@@ -285,7 +261,7 @@ EAPI const void *ecore_con_eet_data_get(Ecore_Con_Eet *ece);
285 * @param reply An Ecore_Con_Reply object. 261 * @param reply An Ecore_Con_Reply object.
286 * @return The corresponding Ecore_Con_Eet object. 262 * @return The corresponding Ecore_Con_Eet object.
287 */ 263 */
288EAPI Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply); 264ECORE_CON_API Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply);
289 265
290/** 266/**
291 * @brief Sends some data using a protocol type. 267 * @brief Sends some data using a protocol type.
@@ -294,7 +270,7 @@ EAPI Ecore_Con_Eet *ecore_con_eet_reply(Ecore_Con_Reply *reply);
294 * @param protocol_name The protocol type to use. 270 * @param protocol_name The protocol type to use.
295 * @param value The data to send. 271 * @param value The data to send.
296 */ 272 */
297EAPI void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name, void *value); 273ECORE_CON_API void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name, void *value);
298 274
299/** 275/**
300 * @brief Sends some raw data using a protocol type. 276 * @brief Sends some raw data using a protocol type.
@@ -305,7 +281,7 @@ EAPI void ecore_con_eet_send(Ecore_Con_Reply *reply, const char *protocol_name,
305 * @param value The data to send. 281 * @param value The data to send.
306 * @param length The data length. 282 * @param length The data length.
307 */ 283 */
308EAPI void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length); 284ECORE_CON_API void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length);
309 285
310/** 286/**
311 * @} 287 * @}
@@ -315,7 +291,4 @@ EAPI void ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_na
315} 291}
316#endif 292#endif
317 293
318#undef EAPI
319#define EAPI
320
321#endif 294#endif
diff --git a/src/lib/ecore_con/Efl_Net.h b/src/lib/ecore_con/Efl_Net.h
index 7cab05efa3..4c5cab8725 100644
--- a/src/lib/ecore_con/Efl_Net.h
+++ b/src/lib/ecore_con/Efl_Net.h
@@ -13,31 +13,7 @@
13 13
14#include <Efl_Core.h> 14#include <Efl_Core.h>
15 15
16#ifdef EAPI 16#include <ecore_con_api.h>
17# undef EAPI
18#endif
19
20#ifdef _WIN32
21# ifdef EFL_BUILD
22# ifdef DLL_EXPORT
23# define EAPI __declspec(dllexport)
24# else
25# define EAPI
26# endif
27# else
28# define EAPI __declspec(dllimport)
29# endif
30#else
31# ifdef __GNUC__
32# if __GNUC__ >= 4
33# define EAPI __attribute__ ((visibility("default")))
34# else
35# define EAPI
36# endif
37# else
38# define EAPI
39# endif
40#endif
41 17
42#ifdef __cplusplus 18#ifdef __cplusplus
43extern "C" { 19extern "C" {
@@ -51,7 +27,7 @@ extern "C" {
51 * @note This function already calls ecore_init() internally, so you don't need 27 * @note This function already calls ecore_init() internally, so you don't need
52 * to call it explicitly. 28 * to call it explicitly.
53 */ 29 */
54EAPI int ecore_con_init(void); 30ECORE_CON_API int ecore_con_init(void);
55 31
56/** 32/**
57 * @brief Shuts down the Ecore_Con library. 33 * @brief Shuts down the Ecore_Con library.
@@ -60,7 +36,7 @@ EAPI int ecore_con_init(void);
60 * @note This function already calls ecore_shutdown() internally, so you don't 36 * @note This function already calls ecore_shutdown() internally, so you don't
61 * need to call it explicitly unless you called ecore_init() explicitly too. 37 * need to call it explicitly unless you called ecore_init() explicitly too.
62 */ 38 */
63EAPI int ecore_con_shutdown(void); 39ECORE_CON_API int ecore_con_shutdown(void);
64 40
65/** 41/**
66 * @brief Initializes the Ecore_Con_Url library. 42 * @brief Initializes the Ecore_Con_Url library.
@@ -70,7 +46,7 @@ EAPI int ecore_con_shutdown(void);
70 * @note This function doesn't call ecore_con_init(). You still need to call it 46 * @note This function doesn't call ecore_con_init(). You still need to call it
71 * explicitly before calling this one. 47 * explicitly before calling this one.
72 */ 48 */
73EAPI int ecore_con_url_init(void); 49ECORE_CON_API int ecore_con_url_init(void);
74 50
75/** 51/**
76 * @brief Shuts down the Ecore_Con_Url library. 52 * @brief Shuts down the Ecore_Con_Url library.
@@ -79,161 +55,161 @@ EAPI int ecore_con_url_init(void);
79 * @note This function doesn't call ecore_con_shutdown(). You still need to call 55 * @note This function doesn't call ecore_con_shutdown(). You still need to call
80 * it explicitly after calling this one. 56 * it explicitly after calling this one.
81 */ 57 */
82EAPI int ecore_con_url_shutdown(void); 58ECORE_CON_API int ecore_con_url_shutdown(void);
83 59
84#ifdef EFL_BETA_API_SUPPORT 60#ifdef EFL_BETA_API_SUPPORT
85/** HTTP error: bad content encoding */ 61/** HTTP error: bad content encoding */
86extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING; 62ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING;
87 63
88/** HTTP error: bad download resume */ 64/** HTTP error: bad download resume */
89extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME; 65ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME;
90 66
91/** HTTP error: bad function argument */ 67/** HTTP error: bad function argument */
92extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT; 68ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT;
93 69
94/** HTTP error: chunk failed */ 70/** HTTP error: chunk failed */
95extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED; 71ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED;
96 72
97/** HTTP error: conv failed */ 73/** HTTP error: conv failed */
98extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED; 74ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED;
99 75
100/** HTTP error: conv reqd */ 76/** HTTP error: conv reqd */
101extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD; 77ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD;
102 78
103/** HTTP error: failed init */ 79/** HTTP error: failed init */
104extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT; 80ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT;
105 81
106/** HTTP error: could not read file */ 82/** HTTP error: could not read file */
107extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE; 83ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE;
108 84
109/** HTTP error: filesize exceeded */ 85/** HTTP error: filesize exceeded */
110extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED; 86ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED;
111 87
112/** HTTP error: function not found */ 88/** HTTP error: function not found */
113extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND; 89ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND;
114 90
115/** HTTP error: got nothing */ 91/** HTTP error: got nothing */
116extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING; 92ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING;
117 93
118/** HTTP error: http2 */ 94/** HTTP error: http2 */
119extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2; 95ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP2;
120 96
121/** HTTP error: http2 stream */ 97/** HTTP error: http2 stream */
122extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM; 98ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM;
123 99
124/** HTTP error: http post error */ 100/** HTTP error: http post error */
125extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR; 101ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR;
126 102
127/** HTTP error: http returned error */ 103/** HTTP error: http returned error */
128extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR; 104ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR;
129 105
130/** HTTP error: interface failed */ 106/** HTTP error: interface failed */
131extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED; 107ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED;
132 108
133/** HTTP error: login denied */ 109/** HTTP error: login denied */
134extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED; 110ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED;
135 111
136/** HTTP error: no connection available */ 112/** HTTP error: no connection available */
137extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE; 113ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE;
138 114
139/** HTTP error: not built in */ 115/** HTTP error: not built in */
140extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN; 116ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN;
141 117
142/** HTTP error: operation timeout */ 118/** HTTP error: operation timeout */
143extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT; 119ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT;
144 120
145/** HTTP error: partial file */ 121/** HTTP error: partial file */
146extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE; 122ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE;
147 123
148/** HTTP error: peer failed verification */ 124/** HTTP error: peer failed verification */
149extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION; 125ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION;
150 126
151/** HTTP error: range error */ 127/** HTTP error: range error */
152extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR; 128ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR;
153 129
154/** HTTP error: read error */ 130/** HTTP error: read error */
155extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR; 131ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR;
156 132
157/** HTTP error: receive error */ 133/** HTTP error: receive error */
158extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR; 134ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR;
159 135
160/** HTTP error: remote access denied */ 136/** HTTP error: remote access denied */
161extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED; 137ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED;
162 138
163/** HTTP error: remote disk full */ 139/** HTTP error: remote disk full */
164extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL; 140ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL;
165 141
166/** HTTP error: remote file exists */ 142/** HTTP error: remote file exists */
167extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS; 143ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS;
168 144
169/** HTTP error: remote file not found */ 145/** HTTP error: remote file not found */
170extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND; 146ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND;
171 147
172/** HTTP error: send error */ 148/** HTTP error: send error */
173extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR; 149ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR;
174 150
175/** HTTP error: send fail rewind */ 151/** HTTP error: send fail rewind */
176extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND; 152ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND;
177 153
178/** HTTP error: SSL cacert */ 154/** HTTP error: SSL cacert */
179extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT; 155ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT;
180 156
181/** HTTP error: SSL cacert bad file */ 157/** HTTP error: SSL cacert bad file */
182extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE; 158ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE;
183 159
184/** HTTP error: SSL certproblem */ 160/** HTTP error: SSL certproblem */
185extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM; 161ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM;
186 162
187/** HTTP error: SSL cipher */ 163/** HTTP error: SSL cipher */
188extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER; 164ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER;
189 165
190/** HTTP error: SSL connect error */ 166/** HTTP error: SSL connect error */
191extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR; 167ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR;
192 168
193/** HTTP error: SSL crl bad file */ 169/** HTTP error: SSL crl bad file */
194extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE; 170ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE;
195 171
196/** HTTP error: SSL engine init failed */ 172/** HTTP error: SSL engine init failed */
197extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED; 173ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED;
198 174
199/** HTTP error: SSL engine not found */ 175/** HTTP error: SSL engine not found */
200extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND; 176ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND;
201 177
202/** HTTP error: SSL engine set failed */ 178/** HTTP error: SSL engine set failed */
203extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED; 179ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED;
204 180
205/** HTTP error: SSL invalid cert status */ 181/** HTTP error: SSL invalid cert status */
206extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS; 182ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS;
207 183
208/** HTTP error: SSL issuer error */ 184/** HTTP error: SSL issuer error */
209extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR; 185ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR;
210 186
211/** HTTP error: SSL pinned pub key does not match */ 187/** HTTP error: SSL pinned pub key does not match */
212extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH; 188ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH;
213 189
214/** HTTP error: SSL shutdown failed */ 190/** HTTP error: SSL shutdown failed */
215extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED; 191ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED;
216 192
217/** HTTP error: too many redirects */ 193/** HTTP error: too many redirects */
218extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS; 194ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_TOO_MANY_REDIRECTS;
219 195
220/** HTTP error: unknown option */ 196/** HTTP error: unknown option */
221extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION; 197ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UNKNOWN_OPTION;
222 198
223/** HTTP error: unsupported protocol */ 199/** HTTP error: unsupported protocol */
224extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL; 200ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UNSUPPORTED_PROTOCOL;
225 201
226/** HTTP error: upload failed */ 202/** HTTP error: upload failed */
227extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED; 203ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_UPLOAD_FAILED;
228 204
229/** HTTP error: URL mal-formatted */ 205/** HTTP error: URL mal-formatted */
230extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT; 206ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_URL_MALFORMAT;
231 207
232/** HTTP error: usage of SSL failed */ 208/** HTTP error: usage of SSL failed */
233extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED; 209ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_USE_SSL_FAILED;
234 210
235/** HTTP error: write error */ 211/** HTTP error: write error */
236extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR; 212ECORE_CON_API ECORE_CON_API_WEAK extern Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR;
237#endif /* EFL_BETA_API_SUPPORT */ 213#endif /* EFL_BETA_API_SUPPORT */
238 214
239#include "efl_net_types.eot.h" 215#include "efl_net_types.eot.h"
@@ -293,7 +269,4 @@ extern EWAPI Eina_Error EFL_NET_HTTP_ERROR_WRITE_ERROR;
293} 269}
294#endif 270#endif
295 271
296#undef EAPI
297#define EAPI
298
299#endif 272#endif
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index dd7fc23d4b..96cb7b3e5e 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -64,7 +64,7 @@ char **_efl_net_proxy_helper_url_wait (int id);
64void _efl_net_proxy_helper_init (void); 64void _efl_net_proxy_helper_init (void);
65void _efl_net_proxy_helper_shutdown (void); 65void _efl_net_proxy_helper_shutdown (void);
66 66
67EAPI int 67ECORE_CON_API int
68ecore_con_init(void) 68ecore_con_init(void)
69{ 69{
70 if (++_ecore_con_init_count != 1) 70 if (++_ecore_con_init_count != 1)
@@ -129,7 +129,7 @@ ecore_con_log_error:
129 return --_ecore_con_init_count; 129 return --_ecore_con_init_count;
130} 130}
131 131
132EAPI int 132ECORE_CON_API int
133ecore_con_shutdown(void) 133ecore_con_shutdown(void)
134{ 134{
135 /* _ecore_con_init_count should not go below zero. */ 135 /* _ecore_con_init_count should not go below zero. */
@@ -162,7 +162,7 @@ ecore_con_shutdown(void)
162 return _ecore_con_init_count; 162 return _ecore_con_init_count;
163} 163}
164 164
165EAPI int 165ECORE_CON_API int
166ecore_con_ssl_available_get(void) 166ecore_con_ssl_available_get(void)
167{ 167{
168#if HAVE_GNUTLS 168#if HAVE_GNUTLS
diff --git a/src/lib/ecore_con/ecore_con_api.h b/src/lib/ecore_con/ecore_con_api.h
new file mode 100644
index 0000000000..eb5fe8d302
--- /dev/null
+++ b/src/lib/ecore_con/ecore_con_api.h
@@ -0,0 +1,32 @@
1#ifndef _EFL_ECORE_CON_API_H
2#define _EFL_ECORE_CON_API_H
3
4#ifdef ECORE_CON_API
5#error ECORE_CON_API should not be already defined
6#endif
7
8#ifdef _WIN32
9# ifndef ECORE_CON_STATIC
10# ifdef ECORE_CON_BUILD
11# define ECORE_CON_API __declspec(dllexport)
12# else
13# define ECORE_CON_API __declspec(dllimport)
14# endif
15# else
16# define ECORE_CON_API
17# endif
18# define ECORE_CON_API_WEAK
19#elif defined(__GNUC__)
20# if __GNUC__ >= 4
21# define ECORE_CON_API __attribute__ ((visibility("default")))
22# define ECORE_CON_API_WEAK __attribute__ ((weak))
23# else
24# define ECORE_CON_API
25# define ECORE_CON_API_WEAK
26# endif
27#else
28# define ECORE_CON_API
29# define ECORE_CON_API_WEAK
30#endif
31
32#endif
diff --git a/src/lib/ecore_con/ecore_con_eet.c b/src/lib/ecore_con/ecore_con_eet.c
index 2bbbba7db4..3e7cb0de74 100644
--- a/src/lib/ecore_con/ecore_con_eet.c
+++ b/src/lib/ecore_con/ecore_con_eet.c
@@ -717,7 +717,7 @@ _ecore_con_eet_base_server_get(const Eo *obj EINA_UNUSED, Ecore_Con_Eet_Base_Dat
717* Global API * 717* Global API *
718**************/ 718**************/
719 719
720EAPI Ecore_Con_Eet * 720ECORE_CON_API Ecore_Con_Eet *
721ecore_con_eet_server_new(Ecore_Con_Server *server) 721ecore_con_eet_server_new(Ecore_Con_Server *server)
722{ 722{
723 Ecore_Con_Eet *ece_obj; 723 Ecore_Con_Eet *ece_obj;
@@ -729,7 +729,7 @@ ecore_con_eet_server_new(Ecore_Con_Server *server)
729 return ece_obj; 729 return ece_obj;
730} 730}
731 731
732EAPI Ecore_Con_Eet * 732ECORE_CON_API Ecore_Con_Eet *
733ecore_con_eet_client_new(Ecore_Con_Server *server) 733ecore_con_eet_client_new(Ecore_Con_Server *server)
734{ 734{
735 Ecore_Con_Eet *ece_obj; 735 Ecore_Con_Eet *ece_obj;
@@ -741,43 +741,43 @@ ecore_con_eet_client_new(Ecore_Con_Server *server)
741 return ece_obj; 741 return ece_obj;
742} 742}
743 743
744EAPI void 744ECORE_CON_API void
745ecore_con_eet_server_free(Ecore_Con_Eet *server) 745ecore_con_eet_server_free(Ecore_Con_Eet *server)
746{ 746{
747 efl_unref(server); 747 efl_unref(server);
748} 748}
749 749
750EAPI void 750ECORE_CON_API void
751ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd) 751ecore_con_eet_register(Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd)
752{ 752{
753 ecore_con_eet_base_register(ece, name, edd); 753 ecore_con_eet_base_register(ece, name, edd);
754} 754}
755 755
756EAPI void 756ECORE_CON_API void
757ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data) 757ecore_con_eet_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data)
758{ 758{
759 ecore_con_eet_base_data_callback_set(ece, name, func, data); 759 ecore_con_eet_base_data_callback_set(ece, name, func, data);
760} 760}
761 761
762EAPI void 762ECORE_CON_API void
763ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name) 763ecore_con_eet_data_callback_del(Ecore_Con_Eet *ece, const char *name)
764{ 764{
765 ecore_con_eet_base_data_callback_del(ece, name); 765 ecore_con_eet_base_data_callback_del(ece, name);
766} 766}
767 767
768EAPI void 768ECORE_CON_API void
769ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data) 769ecore_con_eet_raw_data_callback_add(Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data)
770{ 770{
771 ecore_con_eet_base_raw_data_callback_set(ece, name, func, data); 771 ecore_con_eet_base_raw_data_callback_set(ece, name, func, data);
772} 772}
773 773
774EAPI void 774ECORE_CON_API void
775ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name) 775ecore_con_eet_raw_data_callback_del(Ecore_Con_Eet *ece, const char *name)
776{ 776{
777 ecore_con_eet_base_raw_data_callback_del(ece, name); 777 ecore_con_eet_base_raw_data_callback_del(ece, name);
778} 778}
779 779
780EAPI void 780ECORE_CON_API void
781ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 781ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
782{ 782{
783 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 783 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -794,7 +794,7 @@ ecore_con_eet_client_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Clie
794 eces->client_connect_callbacks = eina_list_append(eces->client_connect_callbacks, c); 794 eces->client_connect_callbacks = eina_list_append(eces->client_connect_callbacks, c);
795} 795}
796 796
797EAPI void 797ECORE_CON_API void
798ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 798ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
799{ 799{
800 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 800 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -812,7 +812,7 @@ ecore_con_eet_client_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Clie
812 } 812 }
813} 813}
814 814
815EAPI void 815ECORE_CON_API void
816ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 816ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
817{ 817{
818 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 818 Ecore_Con_Eet_Server_Obj_Data *eces = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -829,7 +829,7 @@ ecore_con_eet_client_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_C
829 eces->client_disconnect_callbacks = eina_list_append(eces->client_disconnect_callbacks, c); 829 eces->client_disconnect_callbacks = eina_list_append(eces->client_disconnect_callbacks, c);
830} 830}
831 831
832EAPI void 832ECORE_CON_API void
833ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data) 833ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
834{ 834{
835 Ecore_Con_Eet_Server_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS); 835 Ecore_Con_Eet_Server_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_SERVER_OBJ_CLASS);
@@ -847,7 +847,7 @@ ecore_con_eet_client_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_C
847 } 847 }
848} 848}
849 849
850EAPI void 850ECORE_CON_API void
851ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 851ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
852{ 852{
853 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 853 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -864,7 +864,7 @@ ecore_con_eet_server_connect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Serv
864 eced->server_connect_callbacks = eina_list_append(eced->server_connect_callbacks, s); 864 eced->server_connect_callbacks = eina_list_append(eced->server_connect_callbacks, s);
865} 865}
866 866
867EAPI void 867ECORE_CON_API void
868ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 868ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
869{ 869{
870 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 870 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -882,7 +882,7 @@ ecore_con_eet_server_connect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Serv
882 } 882 }
883} 883}
884 884
885EAPI void 885ECORE_CON_API void
886ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 886ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
887{ 887{
888 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 888 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -899,7 +899,7 @@ ecore_con_eet_server_disconnect_callback_add(Ecore_Con_Eet *ece, Ecore_Con_Eet_S
899 eced->server_disconnect_callbacks = eina_list_append(eced->server_disconnect_callbacks, s); 899 eced->server_disconnect_callbacks = eina_list_append(eced->server_disconnect_callbacks, s);
900} 900}
901 901
902EAPI void 902ECORE_CON_API void
903ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data) 903ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
904{ 904{
905 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS); 905 Ecore_Con_Eet_Client_Obj_Data *eced = efl_data_scope_get(ece, ECORE_CON_EET_CLIENT_OBJ_CLASS);
@@ -917,32 +917,32 @@ ecore_con_eet_server_disconnect_callback_del(Ecore_Con_Eet *ece, Ecore_Con_Eet_S
917 } 917 }
918} 918}
919 919
920EAPI void 920ECORE_CON_API void
921ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data) 921ecore_con_eet_data_set(Ecore_Con_Eet *ece, const void *data)
922{ 922{
923 efl_key_data_set(ece, ECORE_CON_EET_DATA_KEY, data); 923 efl_key_data_set(ece, ECORE_CON_EET_DATA_KEY, data);
924} 924}
925 925
926EAPI const void * 926ECORE_CON_API const void *
927ecore_con_eet_data_get(Ecore_Con_Eet *ece) 927ecore_con_eet_data_get(Ecore_Con_Eet *ece)
928{ 928{
929 return efl_key_data_get(ece, ECORE_CON_EET_DATA_KEY); 929 return efl_key_data_get(ece, ECORE_CON_EET_DATA_KEY);
930} 930}
931 931
932EAPI Ecore_Con_Eet * 932ECORE_CON_API Ecore_Con_Eet *
933ecore_con_eet_reply(Ecore_Con_Reply *reply) 933ecore_con_eet_reply(Ecore_Con_Reply *reply)
934{ 934{
935 if (!reply) return NULL; 935 if (!reply) return NULL;
936 return reply->ece; 936 return reply->ece;
937} 937}
938 938
939EAPI void 939ECORE_CON_API void
940ecore_con_eet_send(Ecore_Con_Reply *reply, const char *name, void *value) 940ecore_con_eet_send(Ecore_Con_Reply *reply, const char *name, void *value)
941{ 941{
942 ecore_con_eet_base_send(reply->ece, reply, name, value); 942 ecore_con_eet_base_send(reply->ece, reply, name, value);
943} 943}
944 944
945EAPI void 945ECORE_CON_API void
946ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length) 946ecore_con_eet_raw_send(Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length)
947{ 947{
948 Eina_Binbuf *buf = eina_binbuf_manage_new(value, length, 1); 948 Eina_Binbuf *buf = eina_binbuf_manage_new(value, length, 1);
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.c b/src/lib/ecore_con/ecore_con_eet_base_eo.c
index 7e1e6913c1..64969ba71e 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.c
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.c
@@ -1,39 +1,39 @@
1 1
2void _ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Server *data); 2void _ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Server *data);
3 3
4EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_server_set, EFL_FUNC_CALL(data), Ecore_Con_Server *data); 4ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_server_set, EFL_FUNC_CALL(data), Ecore_Con_Server *data);
5 5
6Ecore_Con_Server *_ecore_con_eet_base_server_get(const Eo *obj, Ecore_Con_Eet_Base_Data *pd); 6Ecore_Con_Server *_ecore_con_eet_base_server_get(const Eo *obj, Ecore_Con_Eet_Base_Data *pd);
7 7
8EOAPI EFL_FUNC_BODY_CONST(ecore_con_eet_base_server_get, Ecore_Con_Server *, NULL); 8ECORE_CON_API ECORE_CON_API_WEAK EFL_FUNC_BODY_CONST(ecore_con_eet_base_server_get, Ecore_Con_Server *, NULL);
9 9
10void _ecore_con_eet_base_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 10void _ecore_con_eet_base_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
11 11
12EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 12ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
13 13
14void _ecore_con_eet_base_raw_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 14void _ecore_con_eet_base_raw_data_callback_set(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
15 15
16EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 16ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_set, EFL_FUNC_CALL(name, func, data), const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
17 17
18void _ecore_con_eet_base_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name); 18void _ecore_con_eet_base_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name);
19 19
20EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_del, EFL_FUNC_CALL(name), const char *name); 20ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_data_callback_del, EFL_FUNC_CALL(name), const char *name);
21 21
22void _ecore_con_eet_base_raw_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name); 22void _ecore_con_eet_base_raw_data_callback_del(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name);
23 23
24EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_del, EFL_FUNC_CALL(name), const char *name); 24ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_data_callback_del, EFL_FUNC_CALL(name), const char *name);
25 25
26void _ecore_con_eet_base_register(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Eet_Data_Descriptor *edd); 26void _ecore_con_eet_base_register(Eo *obj, Ecore_Con_Eet_Base_Data *pd, const char *name, Eet_Data_Descriptor *edd);
27 27
28EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_register, EFL_FUNC_CALL(name, edd), const char *name, Eet_Data_Descriptor *edd); 28ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_register, EFL_FUNC_CALL(name, edd), const char *name, Eet_Data_Descriptor *edd);
29 29
30void _ecore_con_eet_base_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *name, void *value); 30void _ecore_con_eet_base_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *name, void *value);
31 31
32EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_send, EFL_FUNC_CALL(reply, name, value), Ecore_Con_Reply *reply, const char *name, void *value); 32ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_send, EFL_FUNC_CALL(reply, name, value), Ecore_Con_Reply *reply, const char *name, void *value);
33 33
34void _ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 34void _ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Eet_Base_Data *pd, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
35 35
36EOAPI EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_send, EFL_FUNC_CALL(reply, protocol_name, section, section_data), Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 36ECORE_CON_API ECORE_CON_API_WEAK EFL_VOID_FUNC_BODYV(ecore_con_eet_base_raw_send, EFL_FUNC_CALL(reply, protocol_name, section, section_data), Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
37 37
38Efl_Object *_ecore_con_eet_base_efl_object_constructor(Eo *obj, Ecore_Con_Eet_Base_Data *pd); 38Efl_Object *_ecore_con_eet_base_efl_object_constructor(Eo *obj, Ecore_Con_Eet_Base_Data *pd);
39 39
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.h b/src/lib/ecore_con/ecore_con_eet_base_eo.h
index f9bd8a777b..e4e00e20fc 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.h
@@ -29,7 +29,7 @@ typedef struct _Ecore_Con_Reply Ecore_Con_Reply;
29 */ 29 */
30#define ECORE_CON_EET_BASE_CLASS ecore_con_eet_base_class_get() 30#define ECORE_CON_EET_BASE_CLASS ecore_con_eet_base_class_get()
31 31
32EWAPI const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST; 32ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST;
33 33
34/** 34/**
35 * @brief The server object to which we send and receive. 35 * @brief The server object to which we send and receive.
@@ -39,7 +39,7 @@ EWAPI const Efl_Class *ecore_con_eet_base_class_get(void) EINA_CONST;
39 * 39 *
40 * @ingroup Ecore_Con_Eet_Base 40 * @ingroup Ecore_Con_Eet_Base
41 */ 41 */
42EOAPI void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data); 42ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data);
43 43
44/** 44/**
45 * @brief The server object to which we send and receive. 45 * @brief The server object to which we send and receive.
@@ -50,7 +50,7 @@ EOAPI void ecore_con_eet_base_server_set(Eo *obj, Ecore_Con_Server *data);
50 * 50 *
51 * @ingroup Ecore_Con_Eet_Base 51 * @ingroup Ecore_Con_Eet_Base
52 */ 52 */
53EOAPI Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj); 53ECORE_CON_API ECORE_CON_API_WEAK Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj);
54 54
55/** 55/**
56 * @brief A callback function which should be called when data is received by 56 * @brief A callback function which should be called when data is received by
@@ -64,7 +64,7 @@ EOAPI Ecore_Con_Server *ecore_con_eet_base_server_get(const Eo *obj);
64 * 64 *
65 * @ingroup Ecore_Con_Eet_Base 65 * @ingroup Ecore_Con_Eet_Base
66 */ 66 */
67EOAPI void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data); 67ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data);
68 68
69/** 69/**
70 * @brief A callback function which should be calledn when raw data is received 70 * @brief A callback function which should be calledn when raw data is received
@@ -78,7 +78,7 @@ EOAPI void ecore_con_eet_base_data_callback_set(Eo *obj, const char *name, Ecore
78 * 78 *
79 * @ingroup Ecore_Con_Eet_Base 79 * @ingroup Ecore_Con_Eet_Base
80 */ 80 */
81EOAPI void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data); 81ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data);
82 82
83/** 83/**
84 * @brief Function to delete the @ref ecore_con_eet_base_data_callback_set. 84 * @brief Function to delete the @ref ecore_con_eet_base_data_callback_set.
@@ -88,7 +88,7 @@ EOAPI void ecore_con_eet_base_raw_data_callback_set(Eo *obj, const char *name, E
88 * 88 *
89 * @ingroup Ecore_Con_Eet_Base 89 * @ingroup Ecore_Con_Eet_Base
90 */ 90 */
91EOAPI void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name); 91ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name);
92 92
93/** 93/**
94 * @brief Function to delete the @ref ecore_con_eet_base_raw_data_callback_set. 94 * @brief Function to delete the @ref ecore_con_eet_base_raw_data_callback_set.
@@ -98,7 +98,7 @@ EOAPI void ecore_con_eet_base_data_callback_del(Eo *obj, const char *name);
98 * 98 *
99 * @ingroup Ecore_Con_Eet_Base 99 * @ingroup Ecore_Con_Eet_Base
100 */ 100 */
101EOAPI void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name); 101ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name);
102 102
103/** 103/**
104 * @brief Function to register a @ref Eet.Data.Descriptor to the ecore_con_eet 104 * @brief Function to register a @ref Eet.Data.Descriptor to the ecore_con_eet
@@ -110,7 +110,7 @@ EOAPI void ecore_con_eet_base_raw_data_callback_del(Eo *obj, const char *name);
110 * 110 *
111 * @ingroup Ecore_Con_Eet_Base 111 * @ingroup Ecore_Con_Eet_Base
112 */ 112 */
113EOAPI void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descriptor *edd); 113ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descriptor *edd);
114 114
115/** 115/**
116 * @brief Function to send data. 116 * @brief Function to send data.
@@ -123,7 +123,7 @@ EOAPI void ecore_con_eet_base_register(Eo *obj, const char *name, Eet_Data_Descr
123 * 123 *
124 * @ingroup Ecore_Con_Eet_Base 124 * @ingroup Ecore_Con_Eet_Base
125 */ 125 */
126EOAPI void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *name, void *value); 126ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *name, void *value);
127 127
128/** 128/**
129 * @brief Function to send raw data. 129 * @brief Function to send raw data.
@@ -137,6 +137,6 @@ EOAPI void ecore_con_eet_base_send(Eo *obj, Ecore_Con_Reply *reply, const char *
137 * 137 *
138 * @ingroup Ecore_Con_Eet_Base 138 * @ingroup Ecore_Con_Eet_Base
139 */ 139 */
140EOAPI void ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data); 140ECORE_CON_API ECORE_CON_API_WEAK void ecore_con_eet_base_raw_send(Eo *obj, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, Eina_Binbuf *section_data);
141 141
142#endif 142#endif
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
index 696028a9c8..434754217e 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.c
@@ -1,5 +1,5 @@
1 1
2EAPI void 2ECORE_CON_API void
3ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd) 3ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd)
4{ 4{
5 ecore_con_eet_base_register(obj, name, edd); 5 ecore_con_eet_base_register(obj, name, edd);
diff --git a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
index 4636f095bb..2ec7bd427f 100644
--- a/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
+++ b/src/lib/ecore_con/ecore_con_eet_base_eo.legacy.h
@@ -36,7 +36,7 @@ typedef struct _Ecore_Con_Reply Ecore_Con_Reply;
36 * 36 *
37 * @ingroup (null)_Group 37 * @ingroup (null)_Group
38 */ 38 */
39EAPI void ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd); 39ECORE_CON_API void ecore_con_eet(Ecore_Con_Eet_Base *obj, const char *name, Eet_Data_Descriptor *edd);
40 40
41 41
42 42
diff --git a/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h b/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
index 5bfdbb804c..53d91370da 100644
--- a/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_client_obj_eo.h
@@ -19,6 +19,6 @@ typedef Eo Ecore_Con_Eet_Client_Obj;
19 */ 19 */
20#define ECORE_CON_EET_CLIENT_OBJ_CLASS ecore_con_eet_client_obj_class_get() 20#define ECORE_CON_EET_CLIENT_OBJ_CLASS ecore_con_eet_client_obj_class_get()
21 21
22EWAPI const Efl_Class *ecore_con_eet_client_obj_class_get(void) EINA_CONST; 22ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_client_obj_class_get(void) EINA_CONST;
23 23
24#endif 24#endif
diff --git a/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h b/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
index 8b71a69572..59e6845b6b 100644
--- a/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
+++ b/src/lib/ecore_con/ecore_con_eet_server_obj_eo.h
@@ -19,6 +19,6 @@ typedef Eo Ecore_Con_Eet_Server_Obj;
19 */ 19 */
20#define ECORE_CON_EET_SERVER_OBJ_CLASS ecore_con_eet_server_obj_class_get() 20#define ECORE_CON_EET_SERVER_OBJ_CLASS ecore_con_eet_server_obj_class_get()
21 21
22EWAPI const Efl_Class *ecore_con_eet_server_obj_class_get(void) EINA_CONST; 22ECORE_CON_API ECORE_CON_API_WEAK const Efl_Class *ecore_con_eet_server_obj_class_get(void) EINA_CONST;
23 23
24#endif 24#endif
diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c
index e171d79078..04fe10edfe 100644
--- a/src/lib/ecore_con/ecore_con_legacy.c
+++ b/src/lib/ecore_con/ecore_con_legacy.c
@@ -151,22 +151,22 @@ GENERIC_ALLOC_FREE_HEADER(Ecore_Con_Event_Client_Upgrade, ecore_con_event_client
151#undef GENERIC_ALLOC_FREE_HEADER 151#undef GENERIC_ALLOC_FREE_HEADER
152 152
153/* shared */ 153/* shared */
154EAPI int ECORE_CON_EVENT_SERVER_DEL = 0; 154ECORE_CON_API int ECORE_CON_EVENT_SERVER_DEL = 0;
155EAPI int ECORE_CON_EVENT_SERVER_ERROR = 0; 155ECORE_CON_API int ECORE_CON_EVENT_SERVER_ERROR = 0;
156/* ecore_con_server_add() */ 156/* ecore_con_server_add() */
157EAPI int ECORE_CON_EVENT_CLIENT_ADD = 0; 157ECORE_CON_API int ECORE_CON_EVENT_CLIENT_ADD = 0;
158EAPI int ECORE_CON_EVENT_CLIENT_DEL = 0; 158ECORE_CON_API int ECORE_CON_EVENT_CLIENT_DEL = 0;
159/* ecore_con_server_connect() */ 159/* ecore_con_server_connect() */
160EAPI int ECORE_CON_EVENT_SERVER_ADD = 0; 160ECORE_CON_API int ECORE_CON_EVENT_SERVER_ADD = 0;
161EAPI int ECORE_CON_EVENT_SERVER_DATA = 0; 161ECORE_CON_API int ECORE_CON_EVENT_SERVER_DATA = 0;
162EAPI int ECORE_CON_EVENT_SERVER_WRITE = 0; 162ECORE_CON_API int ECORE_CON_EVENT_SERVER_WRITE = 0;
163EAPI int ECORE_CON_EVENT_PROXY_BIND = 0; /* we're not supporting proxy bind, keep only for ABI */ 163ECORE_CON_API int ECORE_CON_EVENT_PROXY_BIND = 0; /* we're not supporting proxy bind, keep only for ABI */
164EAPI int ECORE_CON_EVENT_SERVER_UPGRADE = 0; 164ECORE_CON_API int ECORE_CON_EVENT_SERVER_UPGRADE = 0;
165/* for each client from ECORE_CON_EVENT_CLIENT_ADD */ 165/* for each client from ECORE_CON_EVENT_CLIENT_ADD */
166EAPI int ECORE_CON_EVENT_CLIENT_DATA = 0; 166ECORE_CON_API int ECORE_CON_EVENT_CLIENT_DATA = 0;
167EAPI int ECORE_CON_EVENT_CLIENT_WRITE = 0; 167ECORE_CON_API int ECORE_CON_EVENT_CLIENT_WRITE = 0;
168EAPI int ECORE_CON_EVENT_CLIENT_ERROR = 0; 168ECORE_CON_API int ECORE_CON_EVENT_CLIENT_ERROR = 0;
169EAPI int ECORE_CON_EVENT_CLIENT_UPGRADE = 0; 169ECORE_CON_API int ECORE_CON_EVENT_CLIENT_UPGRADE = 0;
170 170
171static Eina_List *_servers = NULL; 171static Eina_List *_servers = NULL;
172static Eina_List *_ecore_con_lookups = NULL; 172static Eina_List *_ecore_con_lookups = NULL;
@@ -664,7 +664,7 @@ ecore_con_client_add(Ecore_Con_Server *svr, Eo *socket)
664 return cl; 664 return cl;
665} 665}
666 666
667EAPI int 667ECORE_CON_API int
668ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size) 668ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size)
669{ 669{
670 Eina_Error err; 670 Eina_Error err;
@@ -686,28 +686,28 @@ ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size)
686 return slice.len; 686 return slice.len;
687} 687}
688 688
689EAPI Eina_Bool 689ECORE_CON_API Eina_Bool
690ecore_con_client_connected_get(const Ecore_Con_Client *cl) 690ecore_con_client_connected_get(const Ecore_Con_Client *cl)
691{ 691{
692 ECORE_CON_CLIENT_CHECK_RETURN(cl, EINA_FALSE); 692 ECORE_CON_CLIENT_CHECK_RETURN(cl, EINA_FALSE);
693 return !efl_io_closer_closed_get(cl->socket); 693 return !efl_io_closer_closed_get(cl->socket);
694} 694}
695 695
696EAPI void 696ECORE_CON_API void
697ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout) 697ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout)
698{ 698{
699 ECORE_CON_CLIENT_CHECK_RETURN(cl); 699 ECORE_CON_CLIENT_CHECK_RETURN(cl);
700 efl_io_buffered_stream_timeout_inactivity_set(cl->socket, timeout); 700 efl_io_buffered_stream_timeout_inactivity_set(cl->socket, timeout);
701} 701}
702 702
703EAPI double 703ECORE_CON_API double
704ecore_con_client_timeout_get(const Ecore_Con_Client *cl) 704ecore_con_client_timeout_get(const Ecore_Con_Client *cl)
705{ 705{
706 ECORE_CON_CLIENT_CHECK_RETURN(cl, -1.0); 706 ECORE_CON_CLIENT_CHECK_RETURN(cl, -1.0);
707 return efl_io_buffered_stream_timeout_inactivity_get(cl->socket); 707 return efl_io_buffered_stream_timeout_inactivity_get(cl->socket);
708} 708}
709 709
710EAPI void * 710ECORE_CON_API void *
711ecore_con_client_del(Ecore_Con_Client *cl) 711ecore_con_client_del(Ecore_Con_Client *cl)
712{ 712{
713 const void *data; 713 const void *data;
@@ -720,7 +720,7 @@ ecore_con_client_del(Ecore_Con_Client *cl)
720 return (void *)data; 720 return (void *)data;
721} 721}
722 722
723EAPI void 723ECORE_CON_API void
724ecore_con_client_data_set(Ecore_Con_Client *cl, 724ecore_con_client_data_set(Ecore_Con_Client *cl,
725 const void *data) 725 const void *data)
726{ 726{
@@ -728,42 +728,42 @@ ecore_con_client_data_set(Ecore_Con_Client *cl,
728 cl->data = data; 728 cl->data = data;
729} 729}
730 730
731EAPI void * 731ECORE_CON_API void *
732ecore_con_client_data_get(Ecore_Con_Client *cl) 732ecore_con_client_data_get(Ecore_Con_Client *cl)
733{ 733{
734 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 734 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
735 return (void *)cl->data; 735 return (void *)cl->data;
736} 736}
737 737
738EAPI const char * 738ECORE_CON_API const char *
739ecore_con_client_ip_get(const Ecore_Con_Client *cl) 739ecore_con_client_ip_get(const Ecore_Con_Client *cl)
740{ 740{
741 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 741 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
742 return cl->ip; 742 return cl->ip;
743} 743}
744 744
745EAPI int 745ECORE_CON_API int
746ecore_con_client_port_get(const Ecore_Con_Client *cl) 746ecore_con_client_port_get(const Ecore_Con_Client *cl)
747{ 747{
748 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, -1); 748 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, -1);
749 return cl->port; 749 return cl->port;
750} 750}
751 751
752EAPI Ecore_Con_Server * 752ECORE_CON_API Ecore_Con_Server *
753ecore_con_client_server_get(const Ecore_Con_Client *cl) 753ecore_con_client_server_get(const Ecore_Con_Client *cl)
754{ 754{
755 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL); 755 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, NULL);
756 return cl->svr; 756 return cl->svr;
757} 757}
758 758
759EAPI double 759ECORE_CON_API double
760ecore_con_client_uptime_get(const Ecore_Con_Client *cl) 760ecore_con_client_uptime_get(const Ecore_Con_Client *cl)
761{ 761{
762 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, 0.0); 762 ECORE_CON_CLIENT_CHECK_RELAXED_RETURN(cl, 0.0);
763 return ecore_time_get() - cl->start_time; 763 return ecore_time_get() - cl->start_time;
764} 764}
765 765
766EAPI void 766ECORE_CON_API void
767ecore_con_client_flush(Ecore_Con_Client *cl) 767ecore_con_client_flush(Ecore_Con_Client *cl)
768{ 768{
769 ECORE_CON_CLIENT_CHECK_RETURN(cl); 769 ECORE_CON_CLIENT_CHECK_RETURN(cl);
@@ -782,7 +782,7 @@ ecore_con_client_flush(Ecore_Con_Client *cl)
782 efl_net_socket_tcp_cork_set(inner_socket, EINA_TRUE); 782 efl_net_socket_tcp_cork_set(inner_socket, EINA_TRUE);
783} 783}
784 784
785EAPI int 785ECORE_CON_API int
786ecore_con_client_fd_get(const Ecore_Con_Client *cl) 786ecore_con_client_fd_get(const Ecore_Con_Client *cl)
787{ 787{
788 ECORE_CON_CLIENT_CHECK_RETURN(cl, SOCKET_TO_LOOP_FD(INVALID_SOCKET)); 788 ECORE_CON_CLIENT_CHECK_RETURN(cl, SOCKET_TO_LOOP_FD(INVALID_SOCKET));
@@ -896,7 +896,7 @@ _ecore_con_server_job_schedule(Ecore_Con_Server *svr, Eo *loop,
896 eina_future_then(efl_loop_job(loop), cb, svr, &svr->ssl.job); 896 eina_future_then(efl_loop_job(loop), cb, svr, &svr->ssl.job);
897} 897}
898 898
899EAPI Eina_Bool 899ECORE_CON_API Eina_Bool
900ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type compl_type) 900ecore_con_ssl_client_upgrade(Ecore_Con_Client *cl, Ecore_Con_Type compl_type)
901{ 901{
902 Ecore_Con_Server *svr; 902 Ecore_Con_Server *svr;
@@ -1692,7 +1692,7 @@ _ecore_con_server_server_ssl_job(void *data, const Eina_Value v,
1692 * using ecore_con_server_add() 1692 * using ecore_con_server_add()
1693 */ 1693 */
1694 1694
1695EAPI Ecore_Con_Server * 1695ECORE_CON_API Ecore_Con_Server *
1696ecore_con_server_add(Ecore_Con_Type compl_type, 1696ecore_con_server_add(Ecore_Con_Type compl_type,
1697 const char *name, 1697 const char *name,
1698 int port, 1698 int port,
@@ -2161,7 +2161,7 @@ _ecore_con_server_dialer_ssl_upgrade_job(void *data, const Eina_Value v,
2161 * example server using ecore_con_server_connect(). 2161 * example server using ecore_con_server_connect().
2162 */ 2162 */
2163 2163
2164EAPI Ecore_Con_Server * 2164ECORE_CON_API Ecore_Con_Server *
2165ecore_con_server_connect(Ecore_Con_Type compl_type, 2165ecore_con_server_connect(Ecore_Con_Type compl_type,
2166 const char *name, 2166 const char *name,
2167 int port, 2167 int port,
@@ -2256,14 +2256,14 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
2256 return NULL; 2256 return NULL;
2257} 2257}
2258 2258
2259EAPI const char * 2259ECORE_CON_API const char *
2260ecore_con_server_name_get(const Ecore_Con_Server *svr) 2260ecore_con_server_name_get(const Ecore_Con_Server *svr)
2261{ 2261{
2262 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL); 2262 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL);
2263 return svr->name; 2263 return svr->name;
2264} 2264}
2265 2265
2266EAPI void 2266ECORE_CON_API void
2267ecore_con_server_client_limit_set(Ecore_Con_Server *svr, 2267ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
2268 int client_limit, 2268 int client_limit,
2269 char reject_excess_clients) 2269 char reject_excess_clients)
@@ -2273,14 +2273,14 @@ ecore_con_server_client_limit_set(Ecore_Con_Server *svr,
2273 efl_net_server_clients_limit_set(svr->server, client_limit, reject_excess_clients); 2273 efl_net_server_clients_limit_set(svr->server, client_limit, reject_excess_clients);
2274} 2274}
2275 2275
2276EAPI const Eina_List * 2276ECORE_CON_API const Eina_List *
2277ecore_con_server_clients_get(const Ecore_Con_Server *svr) 2277ecore_con_server_clients_get(const Ecore_Con_Server *svr)
2278{ 2278{
2279 ECORE_CON_SERVER_CHECK_RETURN(svr, NULL); 2279 ECORE_CON_SERVER_CHECK_RETURN(svr, NULL);
2280 return svr->clients; 2280 return svr->clients;
2281} 2281}
2282 2282
2283EAPI void 2283ECORE_CON_API void
2284ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout) 2284ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout)
2285{ 2285{
2286 ECORE_CON_SERVER_CHECK_RETURN(svr); 2286 ECORE_CON_SERVER_CHECK_RETURN(svr);
@@ -2291,14 +2291,14 @@ ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout)
2291 efl_io_buffered_stream_timeout_inactivity_set(svr->dialer, timeout); 2291 efl_io_buffered_stream_timeout_inactivity_set(svr->dialer, timeout);
2292} 2292}
2293 2293
2294EAPI double 2294ECORE_CON_API double
2295ecore_con_server_timeout_get(const Ecore_Con_Server *svr) 2295ecore_con_server_timeout_get(const Ecore_Con_Server *svr)
2296{ 2296{
2297 ECORE_CON_SERVER_CHECK_RETURN(svr, -1.0); 2297 ECORE_CON_SERVER_CHECK_RETURN(svr, -1.0);
2298 return svr->timeout; 2298 return svr->timeout;
2299} 2299}
2300 2300
2301EAPI void * 2301ECORE_CON_API void *
2302ecore_con_server_del(Ecore_Con_Server *svr) 2302ecore_con_server_del(Ecore_Con_Server *svr)
2303{ 2303{
2304 const void *data; 2304 const void *data;
@@ -2311,14 +2311,14 @@ ecore_con_server_del(Ecore_Con_Server *svr)
2311 return (void *)data; 2311 return (void *)data;
2312} 2312}
2313 2313
2314EAPI void * 2314ECORE_CON_API void *
2315ecore_con_server_data_get(Ecore_Con_Server *svr) 2315ecore_con_server_data_get(Ecore_Con_Server *svr)
2316{ 2316{
2317 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL); 2317 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL);
2318 return (void *)svr->data; 2318 return (void *)svr->data;
2319} 2319}
2320 2320
2321EAPI void * 2321ECORE_CON_API void *
2322ecore_con_server_data_set(Ecore_Con_Server *svr, 2322ecore_con_server_data_set(Ecore_Con_Server *svr,
2323 void *data) 2323 void *data)
2324{ 2324{
@@ -2330,7 +2330,7 @@ ecore_con_server_data_set(Ecore_Con_Server *svr,
2330 return (void *)old; 2330 return (void *)old;
2331} 2331}
2332 2332
2333EAPI Eina_Bool 2333ECORE_CON_API Eina_Bool
2334ecore_con_server_connected_get(const Ecore_Con_Server *svr) 2334ecore_con_server_connected_get(const Ecore_Con_Server *svr)
2335{ 2335{
2336 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE); 2336 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE);
@@ -2343,14 +2343,14 @@ ecore_con_server_connected_get(const Ecore_Con_Server *svr)
2343 return EINA_TRUE; 2343 return EINA_TRUE;
2344} 2344}
2345 2345
2346EAPI int 2346ECORE_CON_API int
2347ecore_con_server_port_get(const Ecore_Con_Server *svr) 2347ecore_con_server_port_get(const Ecore_Con_Server *svr)
2348{ 2348{
2349 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, -1); 2349 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, -1);
2350 return svr->port; 2350 return svr->port;
2351} 2351}
2352 2352
2353EAPI int 2353ECORE_CON_API int
2354ecore_con_server_send(Ecore_Con_Server *svr, const void *data, int size) 2354ecore_con_server_send(Ecore_Con_Server *svr, const void *data, int size)
2355{ 2355{
2356 Eina_Error err; 2356 Eina_Error err;
@@ -2394,21 +2394,21 @@ ecore_con_server_send(Ecore_Con_Server *svr, const void *data, int size)
2394 return slice.len; 2394 return slice.len;
2395} 2395}
2396 2396
2397EAPI const char * 2397ECORE_CON_API const char *
2398ecore_con_server_ip_get(const Ecore_Con_Server *svr) 2398ecore_con_server_ip_get(const Ecore_Con_Server *svr)
2399{ 2399{
2400 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL); 2400 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, NULL);
2401 return svr->ip; 2401 return svr->ip;
2402} 2402}
2403 2403
2404EAPI double 2404ECORE_CON_API double
2405ecore_con_server_uptime_get(const Ecore_Con_Server *svr) 2405ecore_con_server_uptime_get(const Ecore_Con_Server *svr)
2406{ 2406{
2407 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, 0.0); 2407 ECORE_CON_SERVER_CHECK_RELAXED_RETURN(svr, 0.0);
2408 return ecore_time_get() - svr->start_time; 2408 return ecore_time_get() - svr->start_time;
2409} 2409}
2410 2410
2411EAPI void 2411ECORE_CON_API void
2412ecore_con_server_flush(Ecore_Con_Server *svr) 2412ecore_con_server_flush(Ecore_Con_Server *svr)
2413{ 2413{
2414 ECORE_CON_SERVER_CHECK_RETURN(svr); 2414 ECORE_CON_SERVER_CHECK_RETURN(svr);
@@ -2431,7 +2431,7 @@ ecore_con_server_flush(Ecore_Con_Server *svr)
2431 efl_net_socket_tcp_cork_set(inner_dialer, EINA_TRUE); 2431 efl_net_socket_tcp_cork_set(inner_dialer, EINA_TRUE);
2432} 2432}
2433 2433
2434EAPI int 2434ECORE_CON_API int
2435ecore_con_server_fd_get(const Ecore_Con_Server *svr) 2435ecore_con_server_fd_get(const Ecore_Con_Server *svr)
2436{ 2436{
2437 ECORE_CON_SERVER_CHECK_RETURN(svr, SOCKET_TO_LOOP_FD(INVALID_SOCKET)); 2437 ECORE_CON_SERVER_CHECK_RETURN(svr, SOCKET_TO_LOOP_FD(INVALID_SOCKET));
@@ -2464,7 +2464,7 @@ ecore_con_server_fd_get(const Ecore_Con_Server *svr)
2464 return SOCKET_TO_LOOP_FD(INVALID_SOCKET); 2464 return SOCKET_TO_LOOP_FD(INVALID_SOCKET);
2465} 2465}
2466 2466
2467EAPI Eina_Bool 2467ECORE_CON_API Eina_Bool
2468ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert) 2468ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert)
2469{ 2469{
2470 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE); 2470 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE);
@@ -2479,7 +2479,7 @@ ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert)
2479 return EINA_TRUE; 2479 return EINA_TRUE;
2480} 2480}
2481 2481
2482EAPI Eina_Bool 2482ECORE_CON_API Eina_Bool
2483ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *privkey) 2483ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *privkey)
2484{ 2484{
2485 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE); 2485 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE);
@@ -2494,7 +2494,7 @@ ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *privkey)
2494 return EINA_TRUE; 2494 return EINA_TRUE;
2495} 2495}
2496 2496
2497EAPI Eina_Bool 2497ECORE_CON_API Eina_Bool
2498ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl) 2498ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl)
2499{ 2499{
2500 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE); 2500 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE);
@@ -2509,7 +2509,7 @@ ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl)
2509 return EINA_TRUE; 2509 return EINA_TRUE;
2510} 2510}
2511 2511
2512EAPI Eina_Bool 2512ECORE_CON_API Eina_Bool
2513ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *cafile) 2513ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *cafile)
2514{ 2514{
2515 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE); 2515 ECORE_CON_SERVER_CHECK_RETURN(svr, EINA_FALSE);
@@ -2524,7 +2524,7 @@ ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *cafile)
2524 return EINA_TRUE; 2524 return EINA_TRUE;
2525} 2525}
2526 2526
2527EAPI void 2527ECORE_CON_API void
2528ecore_con_ssl_server_verify(Ecore_Con_Server *svr) 2528ecore_con_ssl_server_verify(Ecore_Con_Server *svr)
2529{ 2529{
2530 ECORE_CON_SERVER_CHECK_RETURN(svr); 2530 ECORE_CON_SERVER_CHECK_RETURN(svr);
@@ -2544,7 +2544,7 @@ ecore_con_ssl_server_verify(Ecore_Con_Server *svr)
2544 svr->ssl.verify = EINA_TRUE; 2544 svr->ssl.verify = EINA_TRUE;
2545} 2545}
2546 2546
2547EAPI void 2547ECORE_CON_API void
2548ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr) 2548ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr)
2549{ 2549{
2550 ECORE_CON_SERVER_CHECK_RETURN(svr); 2550 ECORE_CON_SERVER_CHECK_RETURN(svr);
@@ -2565,7 +2565,7 @@ ecore_con_ssl_server_verify_basic(Ecore_Con_Server *svr)
2565 svr->ssl.verify_basic = EINA_TRUE; 2565 svr->ssl.verify_basic = EINA_TRUE;
2566} 2566}
2567 2567
2568EAPI void 2568ECORE_CON_API void
2569ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name) 2569ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name)
2570{ 2570{
2571 ECORE_CON_SERVER_CHECK_RETURN(svr); 2571 ECORE_CON_SERVER_CHECK_RETURN(svr);
@@ -2579,14 +2579,14 @@ ecore_con_ssl_server_verify_name_set(Ecore_Con_Server *svr, const char *name)
2579 eina_stringshare_replace(&svr->ssl.verify_name, name); 2579 eina_stringshare_replace(&svr->ssl.verify_name, name);
2580} 2580}
2581 2581
2582EAPI const char * 2582ECORE_CON_API const char *
2583ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr) 2583ecore_con_ssl_server_verify_name_get(Ecore_Con_Server *svr)
2584{ 2584{
2585 ECORE_CON_SERVER_CHECK_RETURN(svr, NULL); 2585 ECORE_CON_SERVER_CHECK_RETURN(svr, NULL);
2586 return svr->ssl.verify_name ? svr->ssl.verify_name : svr->name; 2586 return svr->ssl.verify_name ? svr->ssl.verify_name : svr->name;
2587} 2587}
2588 2588
2589EAPI Eina_Bool 2589ECORE_CON_API Eina_Bool
2590ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type compl_type) 2590ecore_con_ssl_server_upgrade(Ecore_Con_Server *svr, Ecore_Con_Type compl_type)
2591{ 2591{
2592 double start; 2592 double start;
@@ -2674,7 +2674,7 @@ _ecore_con_lookup_done_cb(void *data, const char *host, const char *port EINA_UN
2674 * - doesn't return a handle to cancel (likely to access memory after free) 2674 * - doesn't return a handle to cancel (likely to access memory after free)
2675 * - doesn't report errors 2675 * - doesn't report errors
2676 */ 2676 */
2677EAPI Eina_Bool 2677ECORE_CON_API Eina_Bool
2678ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) 2678ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data)
2679{ 2679{
2680 Ecore_Con_Lookup_Ctx *ctx; 2680 Ecore_Con_Lookup_Ctx *ctx;
diff --git a/src/lib/ecore_con/ecore_con_local.c b/src/lib/ecore_con/ecore_con_local.c
index 993487880a..749589c602 100644
--- a/src/lib/ecore_con/ecore_con_local.c
+++ b/src/lib/ecore_con/ecore_con_local.c
@@ -27,7 +27,7 @@
27#include "Ecore_Con.h" 27#include "Ecore_Con.h"
28#include "ecore_con_private.h" 28#include "ecore_con_private.h"
29 29
30EAPI char * 30ECORE_CON_API char *
31ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) 31ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port)
32{ 32{
33#if _WIN32 33#if _WIN32
diff --git a/src/lib/ecore_con/ecore_con_local_win32.c b/src/lib/ecore_con/ecore_con_local_win32.c
index 6b68bf07fe..426b86f66a 100644
--- a/src/lib/ecore_con/ecore_con_local_win32.c
+++ b/src/lib/ecore_con/ecore_con_local_win32.c
@@ -361,7 +361,7 @@ _ecore_con_local_win32_listening(void *data)
361 return 0; 361 return 0;
362} 362}
363 363
364EAPI char * 364ECORE_CON_API char *
365ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port) 365ecore_con_local_path_new(Eina_Bool is_system, const char *name, int port)
366{ 366{
367 char buf[256]; 367 char buf[256];
diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c
index 0068b33076..bc75a9bc1b 100644
--- a/src/lib/ecore_con/ecore_con_socks.c
+++ b/src/lib/ecore_con/ecore_con_socks.c
@@ -172,7 +172,7 @@ ecore_con_socks_init(void)
172 * General Socks API. 172 * General Socks API.
173 */ 173 */
174 174
175EAPI Ecore_Con_Socks * 175ECORE_CON_API Ecore_Con_Socks *
176ecore_con_socks4_remote_add(const char *ip, int port, const char *username) 176ecore_con_socks4_remote_add(const char *ip, int port, const char *username)
177{ 177{
178 Ecore_Con_Socks *ecs; 178 Ecore_Con_Socks *ecs;
@@ -201,7 +201,7 @@ ecore_con_socks4_remote_add(const char *ip, int port, const char *username)
201 return ecs; 201 return ecs;
202} 202}
203 203
204EAPI Eina_Bool 204ECORE_CON_API Eina_Bool
205ecore_con_socks4_remote_exists(const char *ip, int port, const char *username) 205ecore_con_socks4_remote_exists(const char *ip, int port, const char *username)
206{ 206{
207 if ((!ip) || (!ip[0]) || (port < -1) || (port > 65535) || (username && (!username[0]))) 207 if ((!ip) || (!ip[0]) || (port < -1) || (port > 65535) || (username && (!username[0])))
@@ -209,7 +209,7 @@ ecore_con_socks4_remote_exists(const char *ip, int port, const char *username)
209 return !!_ecore_con_socks_find(4, ip, port, username, username ? strlen(username) : 0, NULL, 0); 209 return !!_ecore_con_socks_find(4, ip, port, username, username ? strlen(username) : 0, NULL, 0);
210} 210}
211 211
212EAPI void 212ECORE_CON_API void
213ecore_con_socks4_remote_del(const char *ip, int port, const char *username) 213ecore_con_socks4_remote_del(const char *ip, int port, const char *username)
214{ 214{
215 Ecore_Con_Socks_v4 *v4; 215 Ecore_Con_Socks_v4 *v4;
@@ -223,7 +223,7 @@ ecore_con_socks4_remote_del(const char *ip, int port, const char *username)
223 _ecore_con_socks_free((Ecore_Con_Socks *)v4); 223 _ecore_con_socks_free((Ecore_Con_Socks *)v4);
224} 224}
225 225
226EAPI Ecore_Con_Socks * 226ECORE_CON_API Ecore_Con_Socks *
227ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password) 227ecore_con_socks5_remote_add(const char *ip, int port, const char *username, const char *password)
228{ 228{
229 Ecore_Con_Socks_v5 *ecs5; 229 Ecore_Con_Socks_v5 *ecs5;
@@ -260,7 +260,7 @@ ecore_con_socks5_remote_add(const char *ip, int port, const char *username, cons
260 return (Ecore_Con_Socks *)ecs5; 260 return (Ecore_Con_Socks *)ecs5;
261} 261}
262 262
263EAPI Eina_Bool 263ECORE_CON_API Eina_Bool
264ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password) 264ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, const char *password)
265{ 265{
266 if ((!ip) || (!ip[0]) || (port < -1) || (port > 65535) || (username && (!username[0])) || (password && (!password[0]))) 266 if ((!ip) || (!ip[0]) || (port < -1) || (port > 65535) || (username && (!username[0])) || (password && (!password[0])))
@@ -268,7 +268,7 @@ ecore_con_socks5_remote_exists(const char *ip, int port, const char *username, c
268 return !!_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, password ? strlen(password) : 0); 268 return !!_ecore_con_socks_find(5, ip, port, username, username ? strlen(username) : 0, password, password ? strlen(password) : 0);
269} 269}
270 270
271EAPI void 271ECORE_CON_API void
272ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password) 272ecore_con_socks5_remote_del(const char *ip, int port, const char *username, const char *password)
273{ 273{
274 Ecore_Con_Socks_v5 *v5; 274 Ecore_Con_Socks_v5 *v5;
@@ -283,21 +283,21 @@ ecore_con_socks5_remote_del(const char *ip, int port, const char *username, cons
283 _ecore_con_socks_free((Ecore_Con_Socks *)v5); 283 _ecore_con_socks_free((Ecore_Con_Socks *)v5);
284} 284}
285 285
286EAPI void 286ECORE_CON_API void
287ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable) 287ecore_con_socks_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable)
288{ 288{
289 ECORE_CON_SOCKS_VERSION_CHECK(ecs); 289 ECORE_CON_SOCKS_VERSION_CHECK(ecs);
290 ecs->lookup = !!enable; 290 ecs->lookup = !!enable;
291} 291}
292 292
293EAPI Eina_Bool 293ECORE_CON_API Eina_Bool
294ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs) 294ecore_con_socks_lookup_get(Ecore_Con_Socks *ecs)
295{ 295{
296 ECORE_CON_SOCKS_VERSION_CHECK_RETURN(ecs, EINA_FALSE); 296 ECORE_CON_SOCKS_VERSION_CHECK_RETURN(ecs, EINA_FALSE);
297 return ecs->lookup; 297 return ecs->lookup;
298} 298}
299 299
300EAPI void 300ECORE_CON_API void
301ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind) 301ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind)
302{ 302{
303 EINA_SAFETY_ON_NULL_RETURN(ecs); 303 EINA_SAFETY_ON_NULL_RETURN(ecs);
@@ -305,7 +305,7 @@ ecore_con_socks_bind_set(Ecore_Con_Socks *ecs, Eina_Bool is_bind)
305 ecs->bind = !!is_bind; 305 ecs->bind = !!is_bind;
306} 306}
307 307
308EAPI Eina_Bool 308ECORE_CON_API Eina_Bool
309ecore_con_socks_bind_get(Ecore_Con_Socks *ecs) 309ecore_con_socks_bind_get(Ecore_Con_Socks *ecs)
310{ 310{
311 EINA_SAFETY_ON_NULL_RETURN_VAL(ecs, EINA_FALSE); 311 EINA_SAFETY_ON_NULL_RETURN_VAL(ecs, EINA_FALSE);
@@ -313,7 +313,7 @@ ecore_con_socks_bind_get(Ecore_Con_Socks *ecs)
313 return ecs->bind; 313 return ecs->bind;
314} 314}
315 315
316EAPI unsigned int 316ECORE_CON_API unsigned int
317ecore_con_socks_version_get(Ecore_Con_Socks *ecs) 317ecore_con_socks_version_get(Ecore_Con_Socks *ecs)
318{ 318{
319 EINA_SAFETY_ON_NULL_RETURN_VAL(ecs, 0); 319 EINA_SAFETY_ON_NULL_RETURN_VAL(ecs, 0);
@@ -321,7 +321,7 @@ ecore_con_socks_version_get(Ecore_Con_Socks *ecs)
321 return ecs->version; 321 return ecs->version;
322} 322}
323 323
324EAPI void 324ECORE_CON_API void
325ecore_con_socks_remote_del(Ecore_Con_Socks *ecs) 325ecore_con_socks_remote_del(Ecore_Con_Socks *ecs)
326{ 326{
327 EINA_SAFETY_ON_NULL_RETURN(ecs); 327 EINA_SAFETY_ON_NULL_RETURN(ecs);
@@ -331,13 +331,13 @@ ecore_con_socks_remote_del(Ecore_Con_Socks *ecs)
331 _ecore_con_socks_free(ecs); 331 _ecore_con_socks_free(ecs);
332} 332}
333 333
334EAPI void 334ECORE_CON_API void
335ecore_con_socks_apply_once(Ecore_Con_Socks *ecs) 335ecore_con_socks_apply_once(Ecore_Con_Socks *ecs)
336{ 336{
337 _ecore_con_proxy_once = ecs; 337 _ecore_con_proxy_once = ecs;
338} 338}
339 339
340EAPI void 340ECORE_CON_API void
341ecore_con_socks_apply_always(Ecore_Con_Socks *ecs) 341ecore_con_socks_apply_always(Ecore_Con_Socks *ecs)
342{ 342{
343 _ecore_con_proxy_global = ecs; 343 _ecore_con_proxy_global = ecs;
diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c
index 1d8d0a5e47..4df3e71079 100644
--- a/src/lib/ecore_con/ecore_con_url.c
+++ b/src/lib/ecore_con/ecore_con_url.c
@@ -41,7 +41,7 @@ static Eina_List *_url_con_url_list = NULL;
41 * @{ 41 * @{
42 */ 42 */
43 43
44EAPI int 44ECORE_CON_API int
45ecore_con_url_init(void) 45ecore_con_url_init(void)
46{ 46{
47 if (++_init_count > 1) return _init_count; 47 if (++_init_count > 1) return _init_count;
@@ -64,7 +64,7 @@ ecore_con_url_init(void)
64 return --_init_count; 64 return --_init_count;
65} 65}
66 66
67EAPI int 67ECORE_CON_API int
68ecore_con_url_shutdown(void) 68ecore_con_url_shutdown(void)
69{ 69{
70 Ecore_Con_Url *url_con_url; 70 Ecore_Con_Url *url_con_url;
@@ -84,7 +84,7 @@ ecore_con_url_shutdown(void)
84 return 0; 84 return 0;
85} 85}
86 86
87EAPI void 87ECORE_CON_API void
88ecore_con_url_pipeline_set(Eina_Bool enable) 88ecore_con_url_pipeline_set(Eina_Bool enable)
89{ 89{
90 if (!_c_init()) return; 90 if (!_c_init()) return;
@@ -93,7 +93,7 @@ ecore_con_url_pipeline_set(Eina_Bool enable)
93 pipelining = enable; 93 pipelining = enable;
94} 94}
95 95
96EAPI Eina_Bool 96ECORE_CON_API Eina_Bool
97ecore_con_url_pipeline_get(void) 97ecore_con_url_pipeline_get(void)
98{ 98{
99 return pipelining; 99 return pipelining;
@@ -778,7 +778,7 @@ _ecore_con_url_request_prepare(Ecore_Con_Url *url_con, const char *method)
778 return EINA_FALSE; 778 return EINA_FALSE;
779} 779}
780 780
781EAPI Ecore_Con_Url * 781ECORE_CON_API Ecore_Con_Url *
782ecore_con_url_new(const char *url) 782ecore_con_url_new(const char *url)
783{ 783{
784 Ecore_Con_Url *url_con; 784 Ecore_Con_Url *url_con;
@@ -798,7 +798,7 @@ ecore_con_url_new(const char *url)
798 return url_con; 798 return url_con;
799} 799}
800 800
801EAPI Ecore_Con_Url * 801ECORE_CON_API Ecore_Con_Url *
802ecore_con_url_custom_new(const char *url, 802ecore_con_url_custom_new(const char *url,
803 const char *custom_request) 803 const char *custom_request)
804{ 804{
@@ -815,7 +815,7 @@ ecore_con_url_custom_new(const char *url,
815 return url_con; 815 return url_con;
816} 816}
817 817
818EAPI void 818ECORE_CON_API void
819ecore_con_url_free(Ecore_Con_Url *url_con) 819ecore_con_url_free(Ecore_Con_Url *url_con)
820{ 820{
821 ECORE_CON_URL_CHECK_RETURN(url_con); 821 ECORE_CON_URL_CHECK_RETURN(url_con);
@@ -826,14 +826,14 @@ ecore_con_url_free(Ecore_Con_Url *url_con)
826 _ecore_con_url_free_internal(url_con); 826 _ecore_con_url_free_internal(url_con);
827} 827}
828 828
829EAPI void * 829ECORE_CON_API void *
830ecore_con_url_data_get(Ecore_Con_Url *url_con) 830ecore_con_url_data_get(Ecore_Con_Url *url_con)
831{ 831{
832 ECORE_CON_URL_CHECK_RETURN(url_con, NULL); 832 ECORE_CON_URL_CHECK_RETURN(url_con, NULL);
833 return url_con->data; 833 return url_con->data;
834} 834}
835 835
836EAPI void 836ECORE_CON_API void
837ecore_con_url_data_set(Ecore_Con_Url *url_con, 837ecore_con_url_data_set(Ecore_Con_Url *url_con,
838 void *data) 838 void *data)
839{ 839{
@@ -841,7 +841,7 @@ ecore_con_url_data_set(Ecore_Con_Url *url_con,
841 url_con->data = data; 841 url_con->data = data;
842} 842}
843 843
844EAPI Eina_Bool 844ECORE_CON_API Eina_Bool
845ecore_con_url_url_set(Ecore_Con_Url *url_con, 845ecore_con_url_url_set(Ecore_Con_Url *url_con,
846 const char *url) 846 const char *url)
847{ 847{
@@ -850,7 +850,7 @@ ecore_con_url_url_set(Ecore_Con_Url *url_con,
850 return EINA_TRUE; 850 return EINA_TRUE;
851} 851}
852 852
853EAPI const char * 853ECORE_CON_API const char *
854ecore_con_url_url_get(Ecore_Con_Url *url_con) 854ecore_con_url_url_get(Ecore_Con_Url *url_con)
855{ 855{
856 ECORE_CON_URL_CHECK_RETURN(url_con, NULL); 856 ECORE_CON_URL_CHECK_RETURN(url_con, NULL);
@@ -858,7 +858,7 @@ ecore_con_url_url_get(Ecore_Con_Url *url_con)
858} 858}
859 859
860/* LEGACY: HTTP requests */ 860/* LEGACY: HTTP requests */
861EAPI Eina_Bool 861ECORE_CON_API Eina_Bool
862ecore_con_url_get(Ecore_Con_Url *url_con) 862ecore_con_url_get(Ecore_Con_Url *url_con)
863{ 863{
864 Eina_Error err; 864 Eina_Error err;
@@ -879,7 +879,7 @@ ecore_con_url_get(Ecore_Con_Url *url_con)
879 return EINA_TRUE; 879 return EINA_TRUE;
880} 880}
881 881
882EAPI Eina_Bool 882ECORE_CON_API Eina_Bool
883ecore_con_url_head(Ecore_Con_Url *url_con) 883ecore_con_url_head(Ecore_Con_Url *url_con)
884{ 884{
885 Eina_Error err; 885 Eina_Error err;
@@ -900,7 +900,7 @@ ecore_con_url_head(Ecore_Con_Url *url_con)
900 return EINA_TRUE; 900 return EINA_TRUE;
901} 901}
902 902
903EAPI Eina_Bool 903ECORE_CON_API Eina_Bool
904ecore_con_url_post(Ecore_Con_Url *url_con, 904ecore_con_url_post(Ecore_Con_Url *url_con,
905 const void *data, 905 const void *data,
906 long length, 906 long length,
@@ -963,7 +963,7 @@ ecore_con_url_post(Ecore_Con_Url *url_con,
963} 963}
964 964
965/* LEGACY: headers */ 965/* LEGACY: headers */
966EAPI void 966ECORE_CON_API void
967ecore_con_url_additional_header_add(Ecore_Con_Url *url_con, 967ecore_con_url_additional_header_add(Ecore_Con_Url *url_con,
968 const char *key, 968 const char *key,
969 const char *value) 969 const char *value)
@@ -990,14 +990,14 @@ ecore_con_url_additional_header_add(Ecore_Con_Url *url_con,
990 header); 990 header);
991} 991}
992 992
993EAPI void 993ECORE_CON_API void
994ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con) 994ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con)
995{ 995{
996 ECORE_CON_URL_CHECK_RETURN(url_con); 996 ECORE_CON_URL_CHECK_RETURN(url_con);
997 _ecore_con_url_request_headers_free(url_con); 997 _ecore_con_url_request_headers_free(url_con);
998} 998}
999 999
1000EAPI void 1000ECORE_CON_API void
1001ecore_con_url_time(Ecore_Con_Url *url_con, 1001ecore_con_url_time(Ecore_Con_Url *url_con,
1002 Ecore_Con_Url_Time time_condition, 1002 Ecore_Con_Url_Time time_condition,
1003 double timestamp) 1003 double timestamp)
@@ -1008,7 +1008,7 @@ ecore_con_url_time(Ecore_Con_Url *url_con,
1008} 1008}
1009 1009
1010/* LEGACY: cookies */ 1010/* LEGACY: cookies */
1011EAPI void 1011ECORE_CON_API void
1012ecore_con_url_cookies_init(Ecore_Con_Url *url_con) 1012ecore_con_url_cookies_init(Ecore_Con_Url *url_con)
1013{ 1013{
1014 CURL *curl_easy; 1014 CURL *curl_easy;
@@ -1026,7 +1026,7 @@ ecore_con_url_cookies_init(Ecore_Con_Url *url_con)
1026 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIEFILE, ""); 1026 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIEFILE, "");
1027} 1027}
1028 1028
1029EAPI void 1029ECORE_CON_API void
1030ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con, 1030ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
1031 const char * const file_name) 1031 const char * const file_name)
1032{ 1032{
@@ -1046,7 +1046,7 @@ ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con,
1046 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIEFILE, file_name); 1046 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIEFILE, file_name);
1047} 1047}
1048 1048
1049EAPI void 1049ECORE_CON_API void
1050ecore_con_url_cookies_clear(Ecore_Con_Url *url_con) 1050ecore_con_url_cookies_clear(Ecore_Con_Url *url_con)
1051{ 1051{
1052 static const char cookielist_cmd_all[] = "ALL"; 1052 static const char cookielist_cmd_all[] = "ALL";
@@ -1067,7 +1067,7 @@ ecore_con_url_cookies_clear(Ecore_Con_Url *url_con)
1067 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIELIST, cookielist_cmd_all); 1067 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIELIST, cookielist_cmd_all);
1068} 1068}
1069 1069
1070EAPI void 1070ECORE_CON_API void
1071ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con) 1071ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con)
1072{ 1072{
1073 static const char cookielist_cmd_sess[] = "SESS"; 1073 static const char cookielist_cmd_sess[] = "SESS";
@@ -1088,7 +1088,7 @@ ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con)
1088 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIELIST, cookielist_cmd_sess); 1088 _c->curl_easy_setopt(curl_easy, CURLOPT_COOKIELIST, cookielist_cmd_sess);
1089} 1089}
1090 1090
1091EAPI void 1091ECORE_CON_API void
1092ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con, 1092ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con,
1093 Eina_Bool ignore) 1093 Eina_Bool ignore)
1094{ 1094{
@@ -1096,7 +1096,7 @@ ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con,
1096 url_con->cookies.ignore_old_session = ignore; 1096 url_con->cookies.ignore_old_session = ignore;
1097} 1097}
1098 1098
1099EAPI Eina_Bool 1099ECORE_CON_API Eina_Bool
1100ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con, 1100ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con,
1101 const char * const cookiejar_file) 1101 const char * const cookiejar_file)
1102{ 1102{
@@ -1117,7 +1117,7 @@ ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con,
1117 return EINA_TRUE; 1117 return EINA_TRUE;
1118} 1118}
1119 1119
1120EAPI void 1120ECORE_CON_API void
1121ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con) 1121ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con)
1122{ 1122{
1123 CURL *curl_easy; 1123 CURL *curl_easy;
@@ -1134,7 +1134,7 @@ ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con)
1134} 1134}
1135 1135
1136/* LEGACY: file upload/download */ 1136/* LEGACY: file upload/download */
1137EAPI void 1137ECORE_CON_API void
1138ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd) 1138ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd)
1139{ 1139{
1140 ECORE_CON_URL_CHECK_RETURN(url_con); 1140 ECORE_CON_URL_CHECK_RETURN(url_con);
@@ -1145,7 +1145,7 @@ ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd)
1145 if (!url_con->dialer) return; 1145 if (!url_con->dialer) return;
1146} 1146}
1147 1147
1148EAPI Eina_Bool 1148ECORE_CON_API Eina_Bool
1149ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, 1149ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
1150 const char *filename, 1150 const char *filename,
1151 const char *user, 1151 const char *user,
@@ -1211,7 +1211,7 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con,
1211 return EINA_FALSE; 1211 return EINA_FALSE;
1212} 1212}
1213 1213
1214EAPI void 1214ECORE_CON_API void
1215ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, 1215ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
1216 Eina_Bool use_epsv) 1216 Eina_Bool use_epsv)
1217{ 1217{
@@ -1219,7 +1219,7 @@ ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
1219 url_con->ftp_use_epsv = use_epsv; 1219 url_con->ftp_use_epsv = use_epsv;
1220} 1220}
1221 1221
1222EAPI void 1222ECORE_CON_API void
1223ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_con, off_t max_speed) 1223ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_con, off_t max_speed)
1224{ 1224{
1225 CURL *curl_easy; 1225 CURL *curl_easy;
@@ -1233,7 +1233,7 @@ ecore_con_url_limit_upload_speed(Ecore_Con_Url *url_con, off_t max_speed)
1233 _c->curl_easy_setopt(curl_easy, CURLOPT_MAX_SEND_SPEED_LARGE, max_speed); 1233 _c->curl_easy_setopt(curl_easy, CURLOPT_MAX_SEND_SPEED_LARGE, max_speed);
1234} 1234}
1235 1235
1236EAPI void 1236ECORE_CON_API void
1237ecore_con_url_limit_download_speed(Ecore_Con_Url *url_con, off_t max_speed) 1237ecore_con_url_limit_download_speed(Ecore_Con_Url *url_con, off_t max_speed)
1238{ 1238{
1239 CURL *curl_easy; 1239 CURL *curl_easy;
@@ -1248,7 +1248,7 @@ ecore_con_url_limit_download_speed(Ecore_Con_Url *url_con, off_t max_speed)
1248} 1248}
1249 1249
1250/* LEGACY: proxy */ 1250/* LEGACY: proxy */
1251EAPI Eina_Bool 1251ECORE_CON_API Eina_Bool
1252ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password) 1252ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password)
1253{ 1253{
1254 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE); 1254 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE);
@@ -1257,7 +1257,7 @@ ecore_con_url_proxy_password_set(Ecore_Con_Url *url_con, const char *password)
1257 return EINA_TRUE; 1257 return EINA_TRUE;
1258} 1258}
1259 1259
1260EAPI Eina_Bool 1260ECORE_CON_API Eina_Bool
1261ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username) 1261ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username)
1262{ 1262{
1263 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE); 1263 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE);
@@ -1266,7 +1266,7 @@ ecore_con_url_proxy_username_set(Ecore_Con_Url *url_con, const char *username)
1266 return EINA_TRUE; 1266 return EINA_TRUE;
1267} 1267}
1268 1268
1269EAPI Eina_Bool 1269ECORE_CON_API Eina_Bool
1270ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy_url) 1270ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy_url)
1271{ 1271{
1272 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE); 1272 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE);
@@ -1275,14 +1275,14 @@ ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy_url)
1275} 1275}
1276 1276
1277/* LEGACY: response */ 1277/* LEGACY: response */
1278EAPI int 1278ECORE_CON_API int
1279ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con) 1279ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con)
1280{ 1280{
1281 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE); 1281 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE);
1282 return url_con->received_bytes; 1282 return url_con->received_bytes;
1283} 1283}
1284 1284
1285EAPI int 1285ECORE_CON_API int
1286ecore_con_url_status_code_get(Ecore_Con_Url *url_con) 1286ecore_con_url_status_code_get(Ecore_Con_Url *url_con)
1287{ 1287{
1288 ECORE_CON_URL_CHECK_RETURN(url_con, 0); 1288 ECORE_CON_URL_CHECK_RETURN(url_con, 0);
@@ -1290,7 +1290,7 @@ ecore_con_url_status_code_get(Ecore_Con_Url *url_con)
1290 return efl_net_dialer_http_response_status_get(url_con->dialer); 1290 return efl_net_dialer_http_response_status_get(url_con->dialer);
1291} 1291}
1292 1292
1293EAPI const Eina_List * 1293ECORE_CON_API const Eina_List *
1294ecore_con_url_response_headers_get(Ecore_Con_Url *url_con) 1294ecore_con_url_response_headers_get(Ecore_Con_Url *url_con)
1295{ 1295{
1296 ECORE_CON_URL_CHECK_RETURN(url_con, NULL); 1296 ECORE_CON_URL_CHECK_RETURN(url_con, NULL);
@@ -1298,7 +1298,7 @@ ecore_con_url_response_headers_get(Ecore_Con_Url *url_con)
1298} 1298}
1299 1299
1300/* LEGACY: SSL */ 1300/* LEGACY: SSL */
1301EAPI int 1301ECORE_CON_API int
1302ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con, 1302ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
1303 const char *ca_path) 1303 const char *ca_path)
1304{ 1304{
@@ -1308,7 +1308,7 @@ ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
1308 return 0; 1308 return 0;
1309} 1309}
1310 1310
1311EAPI void 1311ECORE_CON_API void
1312ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, 1312ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
1313 Eina_Bool verify) 1313 Eina_Bool verify)
1314{ 1314{
@@ -1317,7 +1317,7 @@ ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
1317} 1317}
1318 1318
1319/* LEGACY: misc */ 1319/* LEGACY: misc */
1320EAPI Eina_Bool 1320ECORE_CON_API Eina_Bool
1321ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, 1321ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
1322 const char *username, 1322 const char *username,
1323 const char *password, 1323 const char *password,
@@ -1334,7 +1334,7 @@ ecore_con_url_httpauth_set(Ecore_Con_Url *url_con,
1334 return EINA_TRUE; 1334 return EINA_TRUE;
1335} 1335}
1336 1336
1337EAPI Eina_Bool 1337ECORE_CON_API Eina_Bool
1338ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version) 1338ecore_con_url_http_version_set(Ecore_Con_Url *url_con, Ecore_Con_Url_Http_Version version)
1339{ 1339{
1340 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE); 1340 ECORE_CON_URL_CHECK_RETURN(url_con, EINA_FALSE);
@@ -1375,7 +1375,7 @@ _ecore_con_url_timeout_cb(void *data)
1375 return EINA_FALSE; 1375 return EINA_FALSE;
1376} 1376}
1377 1377
1378EAPI void 1378ECORE_CON_API void
1379ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout) 1379ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout)
1380{ 1380{
1381 ECORE_CON_URL_CHECK_RETURN(url_con); 1381 ECORE_CON_URL_CHECK_RETURN(url_con);
@@ -1393,7 +1393,7 @@ ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout)
1393 url_con->timer = ecore_timer_add(timeout, _ecore_con_url_timeout_cb, url_con); 1393 url_con->timer = ecore_timer_add(timeout, _ecore_con_url_timeout_cb, url_con);
1394} 1394}
1395 1395
1396EAPI void 1396ECORE_CON_API void
1397ecore_con_url_verbose_set(Ecore_Con_Url *url_con, 1397ecore_con_url_verbose_set(Ecore_Con_Url *url_con,
1398 Eina_Bool verbose) 1398 Eina_Bool verbose)
1399{ 1399{
diff --git a/src/lib/ecore_con/ecore_con_url_curl.c b/src/lib/ecore_con/ecore_con_url_curl.c
index f4fe730cdd..1cd6a10a98 100644
--- a/src/lib/ecore_con/ecore_con_url_curl.c
+++ b/src/lib/ecore_con/ecore_con_url_curl.c
@@ -22,57 +22,57 @@ Ecore_Con_Curl *_c = NULL;
22Eina_Bool _c_fail = EINA_FALSE; 22Eina_Bool _c_fail = EINA_FALSE;
23double _c_timeout = 0.0; 23double _c_timeout = 0.0;
24 24
25EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING = 0; 25ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_BAD_CONTENT_ENCODING = 0;
26EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME = 0; 26ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_BAD_DOWNLOAD_RESUME = 0;
27EWAPI Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT = 0; 27ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_BAD_FUNCTION_ARGUMENT = 0;
28EWAPI Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED = 0; 28ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_CHUNK_FAILED = 0;
29EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED = 0; 29ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_CONV_FAILED = 0;
30EWAPI Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD = 0; 30ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_CONV_REQD = 0;
31EWAPI Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT = 0; 31ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_FAILED_INIT = 0;
32EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE = 0; 32ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_FILE_COULDNT_READ_FILE = 0;
33EWAPI Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED = 0; 33ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_FILESIZE_EXCEEDED = 0;
34EWAPI Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND = 0; 34ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_FUNCTION_NOT_FOUND = 0;
35EWAPI Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING = 0; 35ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_GOT_NOTHING = 0;
36EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2 = 0; 36ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_HTTP2 = 0;
37EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM = 0; 37ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_HTTP2_STREAM = 0;
38EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR = 0; 38ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_HTTP_POST_ERROR = 0;
39EWAPI Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR = 0; 39ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_HTTP_RETURNED_ERROR = 0;
40EWAPI Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED = 0; 40ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_INTERFACE_FAILED = 0;
41EWAPI Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED = 0; 41ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_LOGIN_DENIED = 0;
42EWAPI Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE = 0; 42ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_NO_CONNECTION_AVAILABLE = 0;
43EWAPI Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN = 0; 43ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_NOT_BUILT_IN = 0;
44EWAPI Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT = 0; 44ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_OPERATION_TIMEDOUT = 0;
45EWAPI Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE = 0; 45ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_PARTIAL_FILE = 0;
46EWAPI Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION = 0; 46ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_PEER_FAILED_VERIFICATION = 0;
47EWAPI Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR = 0; 47ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_RANGE_ERROR = 0;
48EWAPI Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR = 0; 48ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_READ_ERROR = 0;
49EWAPI Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR = 0; 49ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_RECV_ERROR = 0;
50EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED = 0; 50ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_REMOTE_ACCESS_DENIED = 0;
51EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL = 0; 51ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_REMOTE_DISK_FULL = 0;
52EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS = 0; 52ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_EXISTS = 0;
53EWAPI Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND = 0; 53ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_REMOTE_FILE_NOT_FOUND = 0;
54EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR = 0; 54ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SEND_ERROR = 0;
55EWAPI Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND = 0; 55ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SEND_FAIL_REWIND = 0;
56EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT = 0; 56ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT = 0;
57EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE = 0; 57ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CACERT_BADFILE = 0;
58EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM = 0; 58ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CERTPROBLEM = 0;
59EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER = 0; 59ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CIPHER = 0;
60EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR = 0; 60ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CONNECT_ERROR = 0;
61EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE = 0; 61ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_CRL_BADFILE = 0;
62EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED = 0; 62ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_INITFAILED = 0;
63EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND = 0; 63ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_NOTFOUND = 0;
64EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED = 0; 64ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_ENGINE_SETFAILED = 0;
65EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS = 0; 65ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_INVALIDCERTSTATUS = 0;
66EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR = 0; 66ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_ISSUER_ERROR = 0;
67EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH = 0; 67ECORE_CON_API ECORE_CON_API_WEAK Eina_Error EFL_NET_HTTP_ERROR_SSL_PINNEDPUBKEYNOTMATCH = 0;
68EWAPI Eina_Error EFL_NET_HTTP_ERROR_SSL_SHUTDOWN_FAILED = 0;