diff Plugins/Include/orthanc/OrthancCPlugin.h @ 3401:962e5f00744b

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 14:58:27 +0200
parents 0faae6f6e3c5
children e280ced38a4c
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Jun 07 14:26:09 2019 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Jun 07 14:58:27 2019 +0200
@@ -363,7 +363,7 @@
     /**
      * @brief For a PUT or POST request, the content of the body.
      **/
-    const char*             body;
+    const void*             body;
 
     /**
      * @brief For a PUT or POST request, the number of bytes of the body.
@@ -4032,7 +4032,7 @@
     const char*                 url;
     const char*                 username;
     const char*                 password;
-    const char*                 body;
+    const void*                 body;
     uint32_t                    bodySize;
   } _OrthancPluginCallHttpClient;
 
@@ -4093,7 +4093,7 @@
     OrthancPluginContext*       context,
     OrthancPluginMemoryBuffer*  target,
     const char*                 url,
-    const char*                 body,
+    const void*                 body,
     uint32_t                    bodySize,
     const char*                 username,
     const char*                 password)
@@ -4134,7 +4134,7 @@
     OrthancPluginContext*       context,
     OrthancPluginMemoryBuffer*  target,
     const char*                 url,
-    const char*                 body,
+    const void*                 body,
     uint32_t                    bodySize,
     const char*                 username,
     const char*                 password)
@@ -5485,7 +5485,7 @@
     uint32_t                    headersCount;
     const char* const*          headersKeys;
     const char* const*          headersValues;
-    const char*                 body;
+    const void*                 body;
     uint32_t                    bodySize;
     const char*                 username;
     const char*                 password;
@@ -5546,7 +5546,7 @@
     uint32_t                    headersCount,
     const char* const*          headersKeys,
     const char* const*          headersValues,
-    const char*                 body,
+    const void*                 body,
     uint32_t                    bodySize,
     const char*                 username,
     const char*                 password,
@@ -6295,7 +6295,7 @@
     uint32_t                    additionalHeadersCount;
     const char* const*          additionalHeadersKeys;
     const char* const*          additionalHeadersValues;
-    const char*                 body;
+    const void*                 body;
     uint32_t                    bodySize;
     uint32_t                    timeout;
   } _OrthancPluginCallPeerApi;
@@ -6347,7 +6347,7 @@
     uint32_t                    additionalHeadersCount,
     const char* const*          additionalHeadersKeys,
     const char* const*          additionalHeadersValues,
-    const char*                 body,
+    const void*                 body,
     uint32_t                    bodySize,
     uint32_t                    timeout)
   {