Mercurial > hg > orthanc
comparison Plugins/OrthancCPlugin/OrthancCPlugin.h @ 1040:d06186cdc502
check plugin version in samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Jul 2014 13:04:02 +0200 |
parents | 5a5a4890ffca |
children | 2c49b7dffcec |
comparison
equal
deleted
inserted
replaced
1039:5a5a4890ffca | 1040:d06186cdc502 |
---|---|
370 int major, minor, revision; | 370 int major, minor, revision; |
371 | 371 |
372 /* Assume compatibility with the mainline */ | 372 /* Assume compatibility with the mainline */ |
373 if (!strcmp(context->orthancVersion, "mainline")) | 373 if (!strcmp(context->orthancVersion, "mainline")) |
374 { | 374 { |
375 printf("mainline\n"); | |
376 return 1; | 375 return 1; |
377 } | 376 } |
378 | 377 |
379 /* Parse the version of the Orthanc core */ | 378 /* Parse the version of the Orthanc core */ |
380 if ( | 379 if ( |
412 return 0; | 411 return 0; |
413 } | 412 } |
414 | 413 |
415 /* Check the revision number of the version */ | 414 /* Check the revision number of the version */ |
416 | 415 |
417 if (revision >= ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER) | 416 if (revision >= ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER) |
418 { | 417 { |
419 return 1; | 418 return 1; |
420 } | 419 } |
421 else | 420 else |
422 { | 421 { |