After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639472 - Make API Bindingable friendly
Make API Bindingable friendly
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: Client library
4.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-13 22:23 UTC by Daniel Espinosa
Modified: 2011-04-20 15:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Skip any function with vararg. (16.50 KB, patch)
2011-04-18 19:24 UTC, Daniel Espinosa
none Details | Review
First path for missing functions and the ones made public API (21.36 KB, patch)
2011-04-19 18:16 UTC, Daniel Espinosa
none Details | Review
Fix typos and other erros to make last patch to compile (4.60 KB, patch)
2011-04-19 18:20 UTC, Daniel Espinosa
none Details | Review

Description Daniel Espinosa 2011-01-13 22:23:21 UTC
Actually Gda have powerful functions to easy do actions using vararg variable lists, but they are unbindingable for GObject Introspection and Vala.

These requires to write more lines of code for, example, Vala, when using GDA.

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].

[1] http://live.gnome.org/GObjectIntrospection/WritingBindingableAPIs
Comment 1 Daniel Espinosa 2011-04-18 19:24:40 UTC
Created attachment 186227 [details] [review]
Skip any function with vararg.

This start the development of equivalent functions to use instead. Most of these functions are required to properly use of libgda.
Comment 2 Daniel Espinosa 2011-04-19 18:16:58 UTC
Created attachment 186306 [details] [review]
First path for missing functions and the ones made public API
Comment 3 Daniel Espinosa 2011-04-19 18:20:29 UTC
Created attachment 186307 [details] [review]
Fix typos and other erros to make last patch to compile

Second patch for missing functions and the ones made public API. This patch, allows to compile attachment #186306 [details], then this is required to test the last.

Apologies for the inconvenience.
Comment 4 malerba 2011-04-20 15:58:01 UTC
The patches have been applied (with some modifications and a few corrections), see http://git.gnome.org/browse/libgda/commit/?id=bb57e3e7436a9324ee0753eced086db45b7b2067 and the one before.
Also applied to the LIBGDA_4.2 branch.
Thanks