Re: [PATCH 5/9] server: dispatcher_init/dispatcher_new

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 22, 2015 at 09:51:09AM -0400, Frediano Ziglio wrote:
> > I tried to do these changes. Unfortunately after this setting
> > red_dispatcher_new
> > calls some callbacks which require qxl->st->dispatcher to be set,
> > specifically
> > 
> >     qxl->st->qif->attache_worker(qxl, &red_dispatcher->base);
> >     qxl->st->qif->set_compression_level(qxl, calc_compression_level());
> > 
> > I would suggest either
> > - move these line in the caller;
> > - ditch the patch.
> >  
> 
> Tried to move the lines in the caller (spice_server_add_interface in server/reds.c),
> they called a call_compression_level function which is defined in red_dispatcher.c.
> Made the function not static and exported but one of the lines access qxl->st->dispatcher
> which is not defined entirely.

Maybe there could  have an additional red_dispatcher_attach(qxl); call
or whatever doing the additional setup after _new() has been called?

I don't mind dropping this, unless some patches later on make much more
sense with a _new() method rather than an _init().

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]