Re: [gnome-db] [Vala] Gda GdaSet vapi error



Bug #639472 was commited. Now libgda-4.2.7 have non-varargs version functions. Is time to update vapi for 4.2, could any say me how to do it using GIR generated file?

2011/1/13 Daniel Espinosa <esodan gmail com>
May we need to review GDA's API in order to make it more GObject-Introspection and Vala friendly.

We need to add functions that helps to use Vala in an easy way, avoiding var_list or so kind of functions. And may we need to mark unbindingable functions with (skip) annotation[1].

filed Bug 639472

[1] http://live.gnome.org/GObjectIntrospection/WritingBindingableAPIs


2011/1/13 Abderrahim Kitouni <a kitouni gmail com>
في ر، 12-01-2011 عند 10:10 -0600 ، كتب Daniel Espinosa:
> The following function have the following C signature:
>
> gboolean <http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean>
>            gda_set_set_holder_value
> <http://library.gnome.org/devel/libgda/stable/GdaSet.html#gda-set-set-holder-value>
>            (*GdaSet
> <http://library.gnome.org/devel/libgda/stable/GdaSet.html> *set*,
>                                                          *GError
> <http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError>
> **error*,
>                                                          *const gchar
> <http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar>
> *holder_id*,
>                                                          *...*);
>
> but in vapi is:
>
> public bool set_holder_value (string holder_id) throws GLib.Error;
>
> How can I change update it?
You need to add something like :

gda_set_set_holder_value ellipsis="1"

to the metadata file (and regenerate the vapi). I'm not sure it will
work as there is no fixed convention for varargs methods throwing
errors, but I think this is your best bet.

HTH,
Abderrahim




--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE)



--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE)


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