GIR parser should detect delegate types which throw errors
Submitted by Evan Nemerson
Link to original bug (#666798)
Description
Delegates which throw errors are not currently annotated correctly.
Examples from GIO: DBusInterfaceGetPropertyFunc and DBusInterfaceSetPropertyFunc
<callback name="DBusInterfaceGetPropertyFunc"
c:type="GDBusInterfaceGetPropertyFunc"
version="2.26">
<return-value transfer-ownership="full">
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<parameter name="connection" transfer-ownership="none">
<type name="DBusConnection" c:type="GDBusConnection*"/>
</parameter>
<parameter name="sender" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="object_path" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="interface_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="property_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<type name="GLib.Error" c:type="GError**"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1"
closure="6">
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>