[PATCH 01/11] dix: Refactor block and wakup handlers
Alan Coopersmith
alan.coopersmith at oracle.com
Mon Jan 3 13:23:28 PST 2011
On 12/31/10 09:30 AM, Pauli wrote:
> From: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
>
> It is common use case in server that only block or wakeup handler is
> used. To provide API for that case block handlers have to be split to
> separate structures.
>
> +extern _X_EXPORT Bool RegisterBlockHandler(
> + BlockHandlerProcPtr /*blockHandler*/,
> + pointer /*blockData*/);
> +
> +extern _X_EXPORT void RemoveBlockHandler(
> + BlockHandlerProcPtr /*blockHandler*/,
> + pointer /*blockData*/);
> +
> +extern _X_EXPORT Bool RegisterWakeupHandler(
> + WakeupHandlerProcPtr /*wakeupHandler*/,
> + pointer /*blockData*/);
> +
> +extern _X_EXPORT void RemoveWakeupHandler(
> + WakeupHandlerProcPtr /*wakeupHandler*/,
> + pointer /*blockData*/);
> +
Seems like an excellent solution to the problem. The docs should be
updated to match though, as in the attached patch you can merge into
this one. (Yes, the style of the function declarations in those docs
still needs love, this matches the existing style for now.)
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: handler-docs.patch
Type: application/mbox
Size: 2394 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110103/1a7f8a8d/attachment.bin>
More information about the xorg-devel
mailing list