exposing dbus error names on the glib client side

Havoc Pennington hp at redhat.com
Fri Jun 24 19:31:39 PDT 2005


On Fri, 2005-06-24 at 17:37 -0400, Colin Walters wrote:
> On Fri, 2005-06-24 at 17:20 -0400, Havoc Pennington wrote:
> > Another option maybe is to just expose DBusError - since we're adding
> > all dbus-specific methods on GError anyhow...
> 
> Well, that means that methods which take their own GError will have to
> do the transformation from DBusError to GError for the case where they
> simply want to propagate errors up, which is kind of tedious.  For
> example, with your suggestion, code would look like:

What I intended to suggest was to use a DBusError all the way through,
just drop GError entirely.

That might suck but there really has to be a good solution ;-) 

Maybe Dave's GError user data patch?

Havoc




More information about the dbus mailing list