index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-02-29 21:52:57 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-03-06 19:05:14 -0600 |
commit | 54af52f87d6d9547629bb336c365943ff9bb4876 (patch) | |
tree | 514595bd81a91fc6767f2b4b397407bbea094eea /lib | |
parent | 7c3f6feb41ef5ea99b1d0c94771210bf77d90c6d (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 5 | ||||
-rw-r--r-- | lib/libalpm/alpm.h | 1 |
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: */ diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 4797fcfa..96b63ca6 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -60,6 +60,7 @@ typedef struct __pmgraph_t pmgraph_t; int alpm_initialize(void); int alpm_release(void); +const char *alpm_version(void); /* * Logging facilities |