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);