Re: [PATCH 0/4] Add context to SpiceCoreInterface

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

 



On Thu, Jan 07, 2016 at 09:07:50PM +0200, Uri Lublin wrote:
> However context was already being passed to core function via the
> opaque parameter.

This 'opaque' parameter is passed by the caller to the
watch_add/timer_add functions, and this is a context which is going to
be used by the SpiceWatchFunc/SpiceTimerFunc callbacks. The mainloop
implementation should not make any assumption about what this 'opaque'
data is, it should just pass it to the appropriate callback.

This was not true for the watch implementation in RedWorker,
worker_watch_add() was assuming the watch callback would be called with
a rcc instance, which imo is very unexpected, and could byte us in the
future.

This series gets rid of this assumption.

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]