comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3400:0faae6f6e3c5

fixed some inconsistencies with pointer types in the plugin sdk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 14:26:09 +0200
parents 4e8205871967
children e280ced38a4c
comparison
equal deleted inserted replaced
3399:4e8205871967 3400:0faae6f6e3c5
232 (headersKeys.empty() ? NULL : &headersKeys[0]), 232 (headersKeys.empty() ? NULL : &headersKeys[0]),
233 (headersValues.empty() ? NULL : &headersValues[0]), applyPlugins)); 233 (headersValues.empty() ? NULL : &headersValues[0]), applyPlugins));
234 } 234 }
235 235
236 bool MemoryBuffer::RestApiPost(const std::string& uri, 236 bool MemoryBuffer::RestApiPost(const std::string& uri,
237 const char* body, 237 const void* body,
238 size_t bodySize, 238 size_t bodySize,
239 bool applyPlugins) 239 bool applyPlugins)
240 { 240 {
241 Clear(); 241 Clear();
242 242
250 } 250 }
251 } 251 }
252 252
253 253
254 bool MemoryBuffer::RestApiPut(const std::string& uri, 254 bool MemoryBuffer::RestApiPut(const std::string& uri,
255 const char* body, 255 const void* body,
256 size_t bodySize, 256 size_t bodySize,
257 bool applyPlugins) 257 bool applyPlugins)
258 { 258 {
259 Clear(); 259 Clear();
260 260
1226 } 1226 }
1227 1227
1228 1228
1229 bool RestApiPost(Json::Value& result, 1229 bool RestApiPost(Json::Value& result,
1230 const std::string& uri, 1230 const std::string& uri,
1231 const char* body, 1231 const void* body,
1232 size_t bodySize, 1232 size_t bodySize,
1233 bool applyPlugins) 1233 bool applyPlugins)
1234 { 1234 {
1235 MemoryBuffer answer; 1235 MemoryBuffer answer;
1236 1236
1259 } 1259 }
1260 1260
1261 1261
1262 bool RestApiPut(Json::Value& result, 1262 bool RestApiPut(Json::Value& result,
1263 const std::string& uri, 1263 const std::string& uri,
1264 const char* body, 1264 const void* body,
1265 size_t bodySize, 1265 size_t bodySize,
1266 bool applyPlugins) 1266 bool applyPlugins)
1267 { 1267 {
1268 MemoryBuffer answer; 1268 MemoryBuffer answer;
1269 1269