From: caro Date: Sun, 27 Jun 2010 12:10:46 +0000 (+0000) Subject: make eet unit tests compile on Windows X-Git-Tag: submit/2.0alpha-wayland/20121127.222001~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f94b489d67234b36d7c0df79577c2470cf09f71;p=profile%2Fivi%2Feet.git make eet unit tests compile on Windows git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@49887 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Eet.h b/src/lib/Eet.h index 3b758c8..250965b 100644 --- a/src/lib/Eet.h +++ b/src/lib/Eet.h @@ -2815,7 +2815,7 @@ extern "C" { * @since 1.2.4 * @ingroup Eet_Connection_Group */ - Eet_Connection *eet_connection_new(Eet_Read_Cb *eet_read_cb, Eet_Write_Cb *eet_write_cb, const void *user_data); + EAPI Eet_Connection *eet_connection_new(Eet_Read_Cb *eet_read_cb, Eet_Write_Cb *eet_write_cb, const void *user_data); /** * Process a raw packet received over the link @@ -2831,7 +2831,7 @@ extern "C" { * @since 1.2.4 * @ingroup Eet_Connection_Group */ - int eet_connection_received(Eet_Connection *conn, const void *data, size_t size); + EAPI int eet_connection_received(Eet_Connection *conn, const void *data, size_t size); /** * Convert a complex structure and prepare it to be send. @@ -2850,7 +2850,7 @@ extern "C" { * @since 1.2.4 * @ingroup Eet_Connection_Group */ - Eina_Bool eet_connection_send(Eet_Connection *conn, Eet_Data_Descriptor *edd, const void *data_in, const char *cipher_key); + EAPI Eina_Bool eet_connection_send(Eet_Connection *conn, Eet_Data_Descriptor *edd, const void *data_in, const char *cipher_key); /** * Convert a Eet_Node tree and prepare it to be send. @@ -2868,7 +2868,7 @@ extern "C" { * @since 1.2.4 * @ingroup Eet_Connection_Group */ - Eina_Bool eet_connection_node_send(Eet_Connection *conn, Eet_Node *node, const char *cipher_key); + EAPI Eina_Bool eet_connection_node_send(Eet_Connection *conn, Eet_Node *node, const char *cipher_key); /** * Close a connection and lost its track. @@ -2879,7 +2879,7 @@ extern "C" { * @since 1.2.4 * @ingroup Eet_Connection_Group */ - void *eet_connection_close(Eet_Connection *conn, Eina_Bool *on_going); + EAPI void *eet_connection_close(Eet_Connection *conn, Eina_Bool *on_going); /***************************************************************************/ diff --git a/src/lib/eet_connection.c b/src/lib/eet_connection.c index 99d1ff1..01e8f51 100644 --- a/src/lib/eet_connection.c +++ b/src/lib/eet_connection.c @@ -60,7 +60,7 @@ struct _Eet_Connection void *buffer; }; -Eet_Connection * +EAPI Eet_Connection * eet_connection_new(Eet_Read_Cb *eet_read_cb, Eet_Write_Cb *eet_write_cb, const void *user_data) @@ -81,7 +81,7 @@ eet_connection_new(Eet_Read_Cb *eet_read_cb, return conn; } -int +EAPI int eet_connection_received(Eet_Connection *conn, const void *data, size_t size) { if (!conn || !data || !size) @@ -185,7 +185,7 @@ _eet_connection_raw_send(Eet_Connection *conn, void *data, int data_size) return EINA_TRUE; } -Eina_Bool +EAPI Eina_Bool eet_connection_send(Eet_Connection *conn, Eet_Data_Descriptor *edd, const void *data_in, const char *cipher_key) { void *flat_data; @@ -203,7 +203,7 @@ eet_connection_send(Eet_Connection *conn, Eet_Data_Descriptor *edd, const void * return ret; } -Eina_Bool +EAPI Eina_Bool eet_connection_node_send(Eet_Connection *conn, Eet_Node *node, const char *cipher_key) { void *data; @@ -221,7 +221,7 @@ eet_connection_node_send(Eet_Connection *conn, Eet_Node *node, const char *ciphe return ret; } -void * +EAPI void * eet_connection_close(Eet_Connection *conn, Eina_Bool *on_going) { void *user_data; diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 339f0e0..170a3e5 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -10,7 +10,7 @@ if EFL_ENABLE_TESTS check_PROGRAMS = eet_suite eet_suite_SOURCES = eet_suite.c eet_data_suite.c -eet_suite_LDADD = @EINA_LIBS@ @CHECK_LIBS@ $(top_builddir)/src/lib/libeet.la +eet_suite_LDADD = $(top_builddir)/src/lib/libeet.la @EINA_LIBS@ @CHECK_LIBS@ endif