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

Francis Brosnan Blazquez francis at aspl.es
Mon Nov 24 10:09:39 CET 2008


Hi Sam,

Thanks for the patch. I've applied it with some additional modifications
(bool type and ansi C comments). Cheers!

> 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;
>  }
> _______________________________________________
> Vortex mailing list
> Vortex at lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.



More information about the Vortex mailing list