make eet unit tests compile on Windows
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 27 Jun 2010 12:10:46 +0000 (12:10 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 27 Jun 2010 12:10:46 +0000 (12:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@49887 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Eet.h
src/lib/eet_connection.c
src/tests/Makefile.am

index 3b758c8..250965b 100644 (file)
@@ -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);
 
 /***************************************************************************/
 
index 99d1ff1..01e8f51 100644 (file)
@@ -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;
index 339f0e0..170a3e5 100644 (file)
@@ -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