comparison Plugins/Engine/OrthancPlugins.cpp @ 1407:d371a66972a4

OrthancPluginGetExpectedDatabaseVersion
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jun 2015 10:19:13 +0200
parents feaf2840917c
children fe384a9d3b51
comparison
equal deleted inserted replaced
1406:d29e56f59dcf 1407:d371a66972a4
1203 LOG(ERROR) << "Cannot invoke this service without a custom database back-end"; 1203 LOG(ERROR) << "Cannot invoke this service without a custom database back-end";
1204 throw OrthancException(ErrorCode_BadRequest); 1204 throw OrthancException(ErrorCode_BadRequest);
1205 } 1205 }
1206 } 1206 }
1207 1207
1208 case _OrthancPluginService_GetExpectedDatabaseVersion:
1209 {
1210 const _OrthancPluginReturnSingleValue& p =
1211 *reinterpret_cast<const _OrthancPluginReturnSingleValue*>(parameters);
1212 *(p.resultUint32) = ORTHANC_DATABASE_VERSION;
1213 return true;
1214 }
1215
1208 default: 1216 default:
1209 return false; 1217 return false;
1210 } 1218 }
1211 } 1219 }
1212 1220