comparison Framework/Plugins/OrthancCppDatabasePlugin.h @ 24:17f849b2af34

sharing plugin initialization code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Jul 2018 12:17:39 +0200
parents 9e419261f1c9
children 714c5d2bee76
comparison
equal deleted inserted replaced
23:b2ff1cd2907a 24:17f849b2af34
1502 # endif 1502 # endif
1503 #endif 1503 #endif
1504 1504
1505 if (performanceWarning) 1505 if (performanceWarning)
1506 { 1506 {
1507 OrthancPluginLogWarning(context, "Performance warning: The database index plugin was compiled " 1507 char info[1024];
1508 "against an old version of the Orthanc SDK, consider upgrading"); 1508 sprintf(info,
1509 "Performance warning: The database index plugin was compiled "
1510 "against an old version of the Orthanc SDK (%d.%d.%d): "
1511 "Consider upgrading to version 1.4.0 of the Orthanc SDK",
1512 ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER,
1513 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER,
1514 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER);
1515
1516 OrthancPluginLogWarning(context, info);
1509 } 1517 }
1510 1518
1511 OrthancPluginDatabaseContext* database = 1519 OrthancPluginDatabaseContext* database =
1512 OrthancPluginRegisterDatabaseBackendV2(context, &params, &extensions, &backend); 1520 OrthancPluginRegisterDatabaseBackendV2(context, &params, &extensions, &backend);
1513 if (!context) 1521 if (!context)