[Spice-devel] [PATCH 2/7] Add reds_stream_set_async_error_handler() helper

Christophe Fergeau cfergeau at redhat.com
Tue Mar 25 06:19:05 PDT 2014


On Tue, Mar 25, 2014 at 12:00:42PM +0100, Marc-André Lureau wrote:
> Ok, still unused. I am not sure why this should be move higher up in
> classes (why at AsyncRead it wasn't nice enough)?

I've changed the log to

    Add reds_stream_set_async_error_handler() helper

    This replaces async_read_set_error_handler() which was unused. This sets a
    callback to be called when an async operation fails.

    We could pass the error_handler to each reds_stream_async_read() call, but as
    we will be using the same one for all async calls, it's more convenient to set it
    once and for all.
    AsyncRead is going to be private to reds_stream.c in one of the next
    commits, and the error handler will need to be set from reds.c,
    hence the move to a public RedsStream method.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140325/6d1a2ea6/attachment.sig>


More information about the Spice-devel mailing list