Re: [Spice-devel] [PATCH vdagent v2 7/8] vdagent: Use GMainLoop

2017-10-05 Thread Jakub Janků
On Thu, Oct 5, 2017, 11:20 AM Frediano Ziglio wrote: > > > > On Wed, Oct 4, 2017 at 12:43 PM, Frediano Ziglio > wrote: > > >> > > >> Replace existing main while-loop with GMainLoop. > > >> > > >> Use GIOChannel with g_io_add_watch() to manage IO > > >> from x11 connections in the main loop. > >

Re: [Spice-devel] [PATCH vdagent v2 7/8] vdagent: Use GMainLoop

2017-10-05 Thread Frediano Ziglio
> > On Wed, Oct 4, 2017 at 12:43 PM, Frediano Ziglio wrote: > >> > >> Replace existing main while-loop with GMainLoop. > >> > >> Use GIOChannel with g_io_add_watch() to manage IO > >> from x11 connections in the main loop. > >> > >> udscs_connect() now internally creates GSources > >> by calling

Re: [Spice-devel] [PATCH vdagent v2 7/8] vdagent: Use GMainLoop

2017-10-04 Thread Jakub Janků
On Wed, Oct 4, 2017 at 12:43 PM, Frediano Ziglio wrote: >> >> Replace existing main while-loop with GMainLoop. >> >> Use GIOChannel with g_io_add_watch() to manage IO >> from x11 connections in the main loop. >> >> udscs_connect() now internally creates GSources >> by calling g_io_add_watch(). >>

Re: [Spice-devel] [PATCH vdagent v2 7/8] vdagent: Use GMainLoop

2017-10-04 Thread Frediano Ziglio
> > Replace existing main while-loop with GMainLoop. > > Use GIOChannel with g_io_add_watch() to manage IO > from x11 connections in the main loop. > > udscs_connect() now internally creates GSources > by calling g_io_add_watch(). > This enables GMainLoop integration, > clients no longer need to

[Spice-devel] [PATCH vdagent v2 7/8] vdagent: Use GMainLoop

2017-09-29 Thread Jakub Janků
Replace existing main while-loop with GMainLoop. Use GIOChannel with g_io_add_watch() to manage IO from x11 connections in the main loop. udscs_connect() now internally creates GSources by calling g_io_add_watch(). This enables GMainLoop integration, clients no longer need to call udscs_client_fi