# HG changeset patch # User Sebastien Jodogne <s.jodogne@gmail.com> # Date 1719504986 -7200 # Node ID 008be55355a461f48211c8ecae89e077411ed7cf # Parent 18f5d8909dd8c4db3197952460d10f0d6af90cff regenerating the wrapper after patching SDK diff -r 18f5d8909dd8 -r 008be55355a4 Sources/Autogenerated/sdk_GlobalFunctions.impl.h --- 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; diff -r 18f5d8909dd8 -r 008be55355a4 Sources/Autogenerated/sdk_OrthancPluginJob.methods.h --- 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; diff -r 18f5d8909dd8 -r 008be55355a4 Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h --- 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;