From cb2faf7217a026ad114935c1fd71c96240c30055 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Sun, 19 Feb 2017 15:56:14 +0000 Subject: [PATCH] Added library version checking --- src/general.h | 1 + src/general.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/general.c b/src/general.c index 9782e47..6b8a99c 100644 --- a/src/general.c +++ b/src/general.c @@ -135,3 +135,7 @@ return lockReg(fd, F_SETLK, type, whence, start, len); } + +char *libVersion(){ + return TS_VERSION; +} diff --git a/src/general.h b/src/general.h index 983361b..a0e31a5 100644 --- a/src/general.h +++ b/src/general.h @@ -373,4 +373,5 @@ int createPidFile(const char *progName, const char *pidFile, int flags); int lockRegion(int fd, int type, int whence, int start, int len); +char *libVersion(); #endif -- Gitblit v1.9.3