[pacman-dev] Get the version-number of libalpm

Xavier shiningxc at gmail.com
Sat Mar 1 06:21:23 EST 2008


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?




More information about the pacman-dev mailing list