GNOME Bugzilla – Bug 161068
add gda_version() to return version number
Last modified: 2008-03-14 14:14:22 UTC
something like this would be usefull const char * gda_version() { char *ret = GDA_VERSION return ret; }
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?
Mostly for language bindings, so that checks can be made to see if something is supported.
Do you have this in GTK+? Is there any greater need for it from libgda than from GTK+?
API freeze will be real soon now, in case you want to investigate this question and maybe provide a patch?
Please respond.
Please reopen if you choose to respond with a rationale, and ideally with a patch.
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.