comparison Plugins/OrthancCPlugin/OrthancCPlugin.h @ 1136:208dc67b9bab

sample custom storage plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 16:47:04 +0200
parents 67c3c1e4a6e0
children d9c27f9f1a51
comparison
equal deleted inserted replaced
1135:67c3c1e4a6e0 1136:208dc67b9bab
1506 { 1506 {
1507 _OrthancPluginRegisterStorageArea params; 1507 _OrthancPluginRegisterStorageArea params;
1508 params.create_ = create; 1508 params.create_ = create;
1509 params.read_ = read; 1509 params.read_ = read;
1510 params.remove_ = remove; 1510 params.remove_ = remove;
1511
1512 #ifdef __cplusplus
1511 params.free_ = free; 1513 params.free_ = free;
1514 #else
1515 params.free_ = ::free;
1516 #endif
1517
1512 context->InvokeService(context, _OrthancPluginService_RegisterStorageArea, &params); 1518 context->InvokeService(context, _OrthancPluginService_RegisterStorageArea, &params);
1513 } 1519 }
1514 1520
1515 1521
1516 #ifdef __cplusplus 1522 #ifdef __cplusplus