Re: [GIO] Errors from async stream methods
- From: "Mikkel Kamstrup Erlandsen" <mikkel kamstrup gmail com>
- To: "Jürg Billeter" <j bitron ch>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: [GIO] Errors from async stream methods
- Date: Thu, 28 Feb 2008 23:25:37 +0100
On 28/02/2008,
Jürg Billeter <
j bitron ch> wrote:
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.
Aha! I told you there was a clever solution! ;-P
I also see that it is in fact documented... I think that I should head of for bed before I embarrass my self more...
Thanks, cheers,
Mikkel
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]