[patch] add ability to associate metadata with errors, add async tests

Havoc Pennington hp at redhat.com
Thu Jun 30 06:35:02 PDT 2005


On Wed, 2005-06-29 at 22:13 -0400, Colin Walters wrote:
> Hi,
> 
> So Ross sent me this patch which adds some tests for the async server
> method stuff, and it depended on the dbus_g_error_new patch he sent
> earlier.  
> 
> The more I looked at it, the more unhappy I was with the whole
> dbus_set_g_error thing on the service end.  So here's a patch (which
> includes Ross' async tests) that allows you to associate a default
> interface and a GEnum of strings with a GError domain and codes.
> 
> Later when we have GObject introspection you won't need to use this
> function at all.
> 
> This means dbus_set_g_error goes away in favor of our old friend
> g_set_error, and we don't need dbus_g_error_new.
> 

Sounds plausible to me...

Havoc




More information about the dbus mailing list