[libnice] multithread g_main_loop_quit ad remove agent

Philip Withnall philip at tecnocode.co.uk
Sun Aug 10 15:40:55 PDT 2014


On Thu, 2014-07-24 at 09:02 -0400, Youness Alaoui wrote:

> Philip, about moving libstun to glib, I prefer not to, there was a lot
> of work on libstun to make sure it never depends on glib as it's a
> small lib and we didn't want to bring the glib dependency with it. The
> thing is that it was Nokia paying for development of libstun a few
> years ago and they were using it on some of their stuff and "do not
> depend on glib" was a huge requirement. We may not care anymore but
> I'd prefer to keep it the way it was designed unless necessary, and I
> think fixing the ssize_t in win32_common.h is easy to fix and doesn't
> require to move to glib just yet.

Patch attached. How about that? It’s completely untested because I don’t
have access to a Windows build machine at the moment.

Philip

> Thanks,
> Youness.
> 
> 
> 
> 
> On Tue, Jul 15, 2014 at 12:20 PM, Philip Withnall
> <philip at tecnocode.co.uk> wrote:
>         Yes, I think the best solution would be to eliminate
>         win32_common.h and
>         stop reinventing the portability wheel, but I need to get
>         approval from
>         the libnice maintainers to do that.
>         
>         Philip
>         
>         On Tue, 2014-07-15 at 17:06 +0200, Emanuele Bizzarri wrote:
>         > Hi Philip,
>         > probably the simpler thing to do is to change the type
>         inside win32_common.
>         >
>         > But you decide.
>         >
>         > Thank you,
>         >
>         > Emanuele
>         >
>         > On 15/07/2014 15:08, Philip Withnall wrote:
>         > > On Mon, 2014-07-14 at 15:25 +0200, Emanuele Bizzarri
>         wrote:
>         > >> Il 14/07/2014 14:27, Philip Withnall ha scritto:
>         > >>> Where *exactly* in the code is this? Looking at my copy
>         of
>         > >>> stun/stunmessage.c, the logs show that fast_retval has
>         always had type
>         > >>> ssize_t (which is signed).
>         > >>
>         > >> This is the code inside stunmessage.c:
>         > > *snip*
>         > >
>         > > Yup, you've found a bug. My preferred fix would be to make
>         the stun/
>         > > library depend on GLib and use GLib types there; the
>         alternative is to
>         > > copy the ssize_t configuration code from GLib to the stun/
>         library and
>         > > duplicate it there so that ssize_t is defined correctly.
>         > >
>         > > Having spoken to Olivier about it, he agrees. Youness, are
>         you OK with
>         > > that?
>         > >
>         > > Philip
>         >
>         
>         
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stun-Fix-definition-of-ssize_t-on-Windows.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140810/796c84be/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140810/796c84be/attachment.sig>


More information about the nice mailing list