diff Sources/Autogenerated/sdk_OrthancPluginRestOutput.impl.h @ 41:393d2da0722a

upgrade to Orthanc SDK 1.7.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Jul 2020 14:34:59 +0200
parents b2bbb516056e
children 23f3099bed47
line wrap: on
line diff
--- a/Sources/Autogenerated/sdk_OrthancPluginRestOutput.impl.h	Tue Jul 07 20:47:52 2020 +0200
+++ b/Sources/Autogenerated/sdk_OrthancPluginRestOutput.impl.h	Wed Jul 08 14:34:59 2020 +0200
@@ -424,17 +424,16 @@
     return NULL;
   }
 
-  const char* arg0 = NULL;
-  unsigned long arg1 = 0;
+  Py_buffer arg0;
 
-  if (!PyArg_ParseTuple(args, "sk", &arg0, &arg1))
+  if (!PyArg_ParseTuple(args, "s*", &arg0))
   {
     // TODO => RAISE : https://stackoverflow.com/questions/60832317
-    PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)");
+    PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
     return NULL;
   }
-  OrthancPluginErrorCode code = OrthancPluginSendMultipartItem(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1);
-  
+  OrthancPluginErrorCode code = OrthancPluginSendMultipartItem(OrthancPlugins::GetGlobalContext(), self->object_, arg0.buf, arg0.len);
+  PyBuffer_Release(&arg0);
 
   if (code == OrthancPluginErrorCode_Success)
   {