From 7b403d8ca7863a787980218fbb186ef621531f41 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 19 Jul 2013 10:16:51 +1000 Subject: [PATCH] Added Versions to sessioninfo --- lib/dsmsession.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/dsmsession.c b/lib/dsmsession.c index 4f8327d..e547be3 100644 --- a/lib/dsmsession.c +++ b/lib/dsmsession.c @@ -157,8 +157,27 @@ void tsm_sessioninfo(dsUint32_t dsmHandle) { dsInt16_t rc=0; optStruct dsmOpt; ApiSessInfo dsmSessInfo; + dsmApiVersionEx apiLibVer; char t[50]; + memset(&apiLibVer,0x00,sizeof(dsmApiVersionEx)); + apiLibVer.stVersion = apiVersionExVer; + dsmQueryApiVersionEx(&apiLibVer); + + printf("Application Version:\n"); + printf(" TSMPIPE API Version: %d.%d.%d.%d\n", + DSM_API_VERSION, + DSM_API_RELEASE, + DSM_API_LEVEL, + DSM_API_SUBLEVEL); + + printf(" TSM Library: %d.%d.%d.%d\n", + apiLibVer.version, + apiLibVer.release, + apiLibVer.level, + apiLibVer.subLevel); + printf("\n"); + memset(&dsmOpt,0x00,sizeof(dsmOpt)); rc = dsmQuerySessOptions(dsmHandle, &dsmOpt);