Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h @ 137:cc0765aae484
fix signature of orthanc.RestOutput.SendHttpStatus()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Sep 2023 13:32:32 +0200 |
parents | 5643e97d9367 |
children | 0705e324fcc8 |
comparison
equal
deleted
inserted
replaced
136:286368f6f019 | 137:cc0765aae484 |
---|---|
283 PyErr_SetString(PyExc_ValueError, "Invalid object"); | 283 PyErr_SetString(PyExc_ValueError, "Invalid object"); |
284 return NULL; | 284 return NULL; |
285 } | 285 } |
286 | 286 |
287 unsigned short arg0 = 0; | 287 unsigned short arg0 = 0; |
288 const char* arg1 = NULL; | 288 Py_buffer arg1; |
289 unsigned long arg2 = 0; | 289 |
290 | 290 if (!PyArg_ParseTuple(args, "Hs*", &arg0, &arg1)) |
291 if (!PyArg_ParseTuple(args, "Hsk", &arg0, &arg1, &arg2)) | 291 { |
292 { | 292 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); |
293 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); | 293 return NULL; |
294 return NULL; | 294 } |
295 } | 295 OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1.buf, arg1.len); |
296 OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1, arg2); | 296 PyBuffer_Release(&arg1); |
297 | |
298 | 297 |
299 Py_INCREF(Py_None); | 298 Py_INCREF(Py_None); |
300 return Py_None; | 299 return Py_None; |
301 } | 300 } |
302 | 301 |