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.

+SPICE_GNUC_VISIBLE
+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.

cheers,
  Gerd

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

Reply via email to