From 49197b7492d61bf1fc6bef59a708f4f586f32edb Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Fri, 29 Feb 2008 21:52:57 +0100 Subject: New alpm_version function Now pacman frontend uses this function instead of the compile-time libalpm version number. Signed-off-by: Nagy Gabor [Dan: fix one more spot where LIB_VERSION was used] Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 473993a0..fb19d076 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -81,4 +81,9 @@ int SYMEXPORT alpm_release(void) * @brief Various libalpm functions */ +/* Get the version of library */ +const char SYMEXPORT *alpm_version(void) { + return(LIB_VERSION); +} + /* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-24-g4f1b