Re: [GIO] Errors from async stream methods



Hi Mikkel,

On Thu, 2008-02-28 at 23:05 +0100, Mikkel Kamstrup Erlandsen wrote:
> I am wondering how errors are reported in the g_*put_stream_*_async
> methods.
> 
> Inside gio I see that a SimpleAsyncResult is used for this. It has a
> GError error member, but it is not exposed in any public api as far as
> I can tell, so apps receiving an AsyncResult have no way to check if
> the op completed.

In the handler of the AsyncReadyCallback you call the appropriate
_finish function and these functions have a GError** parameter.

Regards,

Jürg



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]