[Spice-devel] [RFC] server: api: add spice_qxl_* calls based on QXLWorker contents
kraxel at redhat.com
Tue Jul 19 07:27:32 PDT 2011
On 07/19/11 16:22, Alon Levy wrote:
> On Tue, Jul 19, 2011 at 03:13:42PM +0200, Gerd Hoffmann wrote:
>> On 07/19/11 15:08, Alon Levy wrote:
>>> For each callback in QXLWorker, for example QXLWorker::update_area, add
>>> a direct call named spice_qxl_update_area.
>>> +void spice_qxl_wakeup(QXLWorker *worker)
>>> + qxl_worker_wakeup(worker);
>> I think we should better pass in QXLInstance here, so we can
>> deprecate QXLWorker altogether.
> getting back a RedDispatcher from a given QXLInstance will then require using some hash
> or just going over a list, since QXLInstance is created by qemu, there is no "spice" field
> for an opaque there,
There is a pointer to QXLState (opaque type in the library interface)
where libspice can stuff in private state data, and it actually has a
pointer to the dispatcher. Just use qxl->st->dispatcher.
More information about the Spice-devel