Re: Introspection API

On Fri, 2005-02-18 at 14:42 -0500, Colin Walters wrote:
> One thing also that I would also like is a way to sensibly convert a
> GError domain/code into a string.  For example, mapping
> G_FILE_ERROR/G_FILE_ERROR_EXISTS into a DBus error message named
> "org.gtk.GLib.FileError.Exists" that callers can dispatch on.
> GError is a bit odd I guess because it isn't necessarily strongly
> associated with a particular class.
> I guess the other approach is to send the domain as a string and the raw
> code, and expect the caller to somehow have the requisite data to
> convert it back, but that seems wrong.  For example if you have a Qt app
> that doesn't link to GTK+ invoking a D-BUS method of a GNOME app, it's
> not going to have access to the quarks etc.

I just worked something for error types into the draft of the binary
format spec, which I am about to send out. Maybe you can have a look at
that and check that it contains what you need. Still need to devise some
repository api for accessing that.


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