On 12/31/10 09:30 AM, Pauli wrote:
> From: Pauli Nieminen <[email protected]>
> 
> 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-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

Attachment: handler-docs.patch
Description: application/mbox

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to