[Vortex] [patch] remove vortex-listener-connections dependency on glib

Sam Roberts vieuxtech at gmail.com
Sat Nov 22 21:42:02 CET 2008


Vortex no longer uses glib.

Also, fix compiler warnings about mismatched types (void* passed as a
char* string).

Index: svn-vortex/test/vortex-listener-connections.c
===================================================================
--- svn-vortex/test/vortex-listener-connections.c       (revision 3662)
+++ svn-vortex/test/vortex-listener-connections.c       (working copy)
@@ -17,7 +17,6 @@
  */

 #include <vortex.h>
-#include <glib.h>
 #include <signal.h>

 #define COYOTE_PROFILE "http://fact.aspl.es/profiles/coyote_profile"
@@ -46,7 +45,7 @@
 {
        printf ("VORTEX_LISTENER: STARTED (pid: %d)\n", getpid ());
        printf ("A frame received on channl: %d\n",
vortex_channel_get_number (channel));
-       printf ("Data received: '%s'\n",
vortex_frame_get_payload (frame));
+       printf ("Data received: '%s'\n",
(char*)vortex_frame_get_payload (frame));

        // reply
        vortex_channel_send_rpy (channel,
@@ -68,11 +67,11 @@

        if (channel_num == 4) {
                printf ("channel 4 can not be created\n");
-               return FALSE;
+               return axl_false;
        }

        printf ("create the channel..\n");
-       return TRUE;
+       return axl_true;
 }


More information about the Vortex mailing list