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 161068 - add gda_version() to return version number
add gda_version() to return version number
Status: RESOLVED INVALID
Product: libgda
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-12-12 11:00 UTC by Alan Knowles
Modified: 2008-03-14 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alan Knowles 2004-12-12 11:00:06 UTC
something like this would be usefull

const char * gda_version()
{
           char *ret = GDA_VERSION
           return ret;
}
Comment 1 Murray Cumming 2007-02-05 14:27:33 UTC
Yes, libgda should probably have GDA_VERSION_MAJOR/MINOR/MICRO version macros, like GTK+ has, though a function does not seem necessary. A patch would be welcome.

What would actually need this for?
Comment 2 Alan Knowles 2007-02-09 02:44:26 UTC
Mostly for language bindings, so that checks can be made to see if something is supported.
Comment 3 Murray Cumming 2007-02-09 08:51:21 UTC
Do you have this in GTK+? Is there any greater need for it from libgda than from GTK+?
Comment 4 Murray Cumming 2007-03-02 10:57:02 UTC
API freeze will be real soon now, in case you want to investigate this question and maybe provide a patch?
Comment 5 Murray Cumming 2007-03-27 07:44:08 UTC
Please respond.
Comment 6 Murray Cumming 2008-03-14 10:57:44 UTC
Please reopen if you choose to respond with a rationale, and ideally with a patch.
Comment 7 Alan Knowles 2008-03-14 14:14:22 UTC
Sorry, I havent had any projects using gda recently so I've not really paid much attention to this little old bug.

From what I remember of running into this issue, just having the constants GDA_VERSION_MAJOR/MINOR/MICRO etc. would probably work as well.