Mercurial > hg > orthanc
changeset 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 | 962e5f00744b |
files | Plugins/Include/orthanc/OrthancCPlugin.h Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Plugins/Samples/Common/OrthancPluginCppWrapper.h |
diffstat | 3 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Fri Jun 07 14:14:31 2019 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Fri Jun 07 14:26:09 2019 +0200 @@ -2105,7 +2105,7 @@ { OrthancPluginMemoryBuffer* target; const char* uri; - const char* body; + const void* body; uint32_t bodySize; } _OrthancPluginRestApiPostPut; @@ -2129,7 +2129,7 @@ OrthancPluginContext* context, OrthancPluginMemoryBuffer* target, const char* uri, - const char* body, + const void* body, uint32_t bodySize) { _OrthancPluginRestApiPostPut params; @@ -2164,7 +2164,7 @@ OrthancPluginContext* context, OrthancPluginMemoryBuffer* target, const char* uri, - const char* body, + const void* body, uint32_t bodySize) { _OrthancPluginRestApiPostPut params; @@ -2241,7 +2241,7 @@ OrthancPluginContext* context, OrthancPluginMemoryBuffer* target, const char* uri, - const char* body, + const void* body, uint32_t bodySize) { _OrthancPluginRestApiPostPut params; @@ -2277,7 +2277,7 @@ OrthancPluginContext* context, OrthancPluginMemoryBuffer* target, const char* uri, - const char* body, + const void* body, uint32_t bodySize) { _OrthancPluginRestApiPostPut params;
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 07 14:14:31 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Fri Jun 07 14:26:09 2019 +0200 @@ -234,7 +234,7 @@ } bool MemoryBuffer::RestApiPost(const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins) { @@ -252,7 +252,7 @@ bool MemoryBuffer::RestApiPut(const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins) { @@ -1228,7 +1228,7 @@ bool RestApiPost(Json::Value& result, const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins) { @@ -1261,7 +1261,7 @@ bool RestApiPut(Json::Value& result, const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins) {
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Fri Jun 07 14:14:31 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Fri Jun 07 14:26:09 2019 +0200 @@ -187,12 +187,12 @@ bool applyPlugins); bool RestApiPost(const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins); bool RestApiPut(const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins); @@ -467,7 +467,7 @@ bool RestApiPost(Json::Value& result, const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins); @@ -496,7 +496,7 @@ bool RestApiPut(Json::Value& result, const std::string& uri, - const char* body, + const void* body, size_t bodySize, bool applyPlugins);