Summary: | Crash when generating bindings | ||
---|---|---|---|
Product: | dbus | Reporter: | Ross Burton <ross> |
Component: | GLib | Assignee: | Rob Taylor <rob.taylor> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Stab at something |
Description
Ross Burton
2006-03-01 05:29:57 UTC
<arg direction="out" type="g" /> is enough to cause the crash. Created attachment 4785 [details] [review] Stab at something The attached patch causes the following method to be generated: gboolean Foo_Bar_bar_foo (DBusGProxy *proxy, DBusGSignature** OUT_arg0, GError **error) { return dbus_g_proxy_call (proxy, "BarFoo", error, G_TYPE_INVALID, DBUS_TYPE_G_SIGNATURE, OUT_arg0, G_TYPE_INVALID); } Is this okay? I've discussed this with Ross on Jabber, I'd prefer to see signatures represented as GTypes now that even stuff like structs have parameterised types which describe the contents etc. It avoids un-necessary exposure to D-Bus signatures to the binding user. A related point comes to mind, internally we have functions for converting a GType to a signature and back again: should we add these to the public API? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.