Added application version reporting to SP
This commit is contained in:
parent
4db350ebb0
commit
7723de32f5
@ -79,6 +79,7 @@ dsUint32_t tsm_initsess(char *options, char *password) {
|
||||
dsInt16_t rc=0;
|
||||
dsUint32_t dsmHandle=0;
|
||||
dsmApiVersionEx applApi;
|
||||
dsmAppVersion pipeApi;
|
||||
dsmInitExIn_t initIn;
|
||||
dsmInitExOut_t initOut;
|
||||
optStruct dsmOpt;
|
||||
@ -95,6 +96,13 @@ dsUint32_t tsm_initsess(char *options, char *password) {
|
||||
applApi.level = DSM_API_LEVEL;
|
||||
applApi.subLevel = DSM_API_SUBLEVEL;
|
||||
|
||||
memset(&pipeApi,0x00,sizeof(dsmAppVersion));
|
||||
pipeApi.stVersion = appVersionVer;
|
||||
pipeApi.applicationVersion = TSMPIPE_VERSION;
|
||||
pipeApi.applicationRelease = TSMPIPE_RELEASE;
|
||||
pipeApi.applicationLevel = TSMPIPE_LEVEL;
|
||||
pipeApi.applicationSubLevel = TSMPIPE_SUBLEVEL;
|
||||
|
||||
memset(&initIn,0x00,sizeof(dsmInitExIn_t));
|
||||
initIn.stVersion = dsmInitExInVersion;
|
||||
initIn.apiVersionExP = &applApi;
|
||||
@ -106,6 +114,7 @@ dsUint32_t tsm_initsess(char *options, char *password) {
|
||||
initIn.options = options;
|
||||
initIn.userNameP = NULL;
|
||||
initIn.userPasswordP = NULL;
|
||||
initIn.appVersionP = &pipeApi;
|
||||
//initIn.dirDelimiter = dirDelimiter;
|
||||
//initIn.useUnicode = useUnicode;
|
||||
//initIn.bEncryptKeyEnabled = encrypt;
|
||||
@ -171,8 +180,11 @@ int tsm_sessioninfo(dsUint32_t dsmHandle) {
|
||||
dsmQueryApiVersionEx(&apiLibVer);
|
||||
|
||||
printf("Application Version:\n");
|
||||
printf(" TSMPIPE Version: %s\n",
|
||||
_TSMPIPE_VERSION);
|
||||
printf(" TSMPIPE Version: %d.%d.%d.%d\n",
|
||||
TSMPIPE_VERSION,
|
||||
TSMPIPE_RELEASE,
|
||||
TSMPIPE_LEVEL,
|
||||
TSMPIPE_SUBLEVEL);
|
||||
printf(" TSMPIPE API Version: %d.%d.%d.%d\n",
|
||||
DSM_API_VERSION,
|
||||
DSM_API_RELEASE,
|
||||
|
@ -67,7 +67,7 @@ int copy_env(const char *from, const char *to) {
|
||||
|
||||
void usage(void) {
|
||||
fprintf(stderr,
|
||||
"tsmpipe %s, usage:\n"
|
||||
"tsmpipe %d.%d.%d.%d, usage:\n"
|
||||
"\n"
|
||||
"tsmpipe [-i|-p]|[[-A|-B|-U] [-c|-x|-d|-g|-t] -s fsname -f filepath [-l len] ...]\n"
|
||||
" -i Show session information\n"
|
||||
@ -102,7 +102,7 @@ void usage(void) {
|
||||
#endif
|
||||
" -v Verbose. More -v's gives more verbosity\n"
|
||||
" -V Verbose information on TSM transfer\n"
|
||||
,_TSMPIPE_VERSION);
|
||||
,TSMPIPE_VERSION,TSMPIPE_RELEASE,TSMPIPE_LEVEL,TSMPIPE_SUBLEVEL);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user