On Sat, Mar 1, 2008 at 5:21 AM, Xavier <shiningxc@gmail.com> wrote:
On Sat, Mar 01, 2008 at 11:09:56AM +0100, Nagy Gabor wrote:
Well, I'm not on linux machine atm, but the patch is quite trivial: to alpm.c: const char SYMEXPORT *alpm_getversion() { return(LIB_VERSION) } And modify alpm.h accordingly :-P
Anyway, thx for the question, LIB_VERSION is hardcoded to the front-end now, grr...
Bye
It is attached in git format.
PS: Later we could use a version struct (with major, minor, micro etc. fields) to help front-end decide hether libalpm is new enough.
Do we need to split LIB_VERSION manually for getting major, minor and micro, or is there any other way?
We can just define them as separate defines at compile time, take a look at where LIB_VERSION gets generated in configure.ac. I like this patch, I've pushed it to master on my GIT tree with just one small change. -Dan