changeset 177:008be55355a4

regenerating the wrapper after patching SDK
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Jun 2024 18:16:26 +0200
parents 18f5d8909dd8
children 194ba7d6e0f4 46a81ed6e843
files Sources/Autogenerated/sdk_GlobalFunctions.impl.h Sources/Autogenerated/sdk_OrthancPluginJob.methods.h Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h
diffstat 3 files changed, 11 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/Sources/Autogenerated/sdk_GlobalFunctions.impl.h	Thu Jun 27 18:15:46 2024 +0200
+++ b/Sources/Autogenerated/sdk_GlobalFunctions.impl.h	Thu Jun 27 18:16:26 2024 +0200
@@ -84,11 +84,11 @@
 {
   PythonLock::LogCall("Calling Python global function: OrthancPluginCheckVersionAdvanced()");
 
-  int arg0 = 0;
-  int arg1 = 0;
-  int arg2 = 0;
+  long int arg0 = 0;
+  long int arg1 = 0;
+  long int arg2 = 0;
 
-  if (!PyArg_ParseTuple(args, "iii", &arg0, &arg1, &arg2))
+  if (!PyArg_ParseTuple(args, "lll", &arg0, &arg1, &arg2))
   {
     PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)");
     return NULL;
--- a/Sources/Autogenerated/sdk_OrthancPluginJob.methods.h	Thu Jun 27 18:15:46 2024 +0200
+++ b/Sources/Autogenerated/sdk_OrthancPluginJob.methods.h	Thu Jun 27 18:16:26 2024 +0200
@@ -10,9 +10,9 @@
     return NULL;
   }
 
-  int arg0 = 0;
+  long int arg0 = 0;
 
-  if (!PyArg_ParseTuple(args, "i", &arg0))
+  if (!PyArg_ParseTuple(args, "l", &arg0))
   {
     PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
     return NULL;
--- a/Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h	Thu Jun 27 18:15:46 2024 +0200
+++ b/Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h	Thu Jun 27 18:16:26 2024 +0200
@@ -285,16 +285,15 @@
   }
 
   unsigned short arg0 = 0;
-  const char* arg1 = NULL;
-  unsigned long arg2 = 0;
+  Py_buffer arg1;
 
-  if (!PyArg_ParseTuple(args, "Hsk", &arg0, &arg1, &arg2))
+  if (!PyArg_ParseTuple(args, "Hs*", &arg0, &arg1))
   {
-    PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)");
+    PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)");
     return NULL;
   }
-  OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1, arg2);
-  
+  OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1.buf, arg1.len);
+  PyBuffer_Release(&arg1);
 
   Py_INCREF(Py_None);
   return Py_None;