Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginRestOutput.methods.h @ 149:0705e324fcc8
fix build by regenerating the code model
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 Nov 2023 09:33:06 +0100 |
parents | cc0765aae484 |
children | e9be3c9294d4 008be55355a4 |
comparison
equal
deleted
inserted
replaced
148:8335b42be9fc | 149:0705e324fcc8 |
---|---|
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 Py_buffer arg1; | 288 const char* arg1 = NULL; |
289 | 289 unsigned long arg2 = 0; |
290 if (!PyArg_ParseTuple(args, "Hs*", &arg0, &arg1)) | 290 |
291 { | 291 if (!PyArg_ParseTuple(args, "Hsk", &arg0, &arg1, &arg2)) |
292 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (2 arguments expected)"); | 292 { |
293 return NULL; | 293 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (3 arguments expected)"); |
294 } | 294 return NULL; |
295 OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1.buf, arg1.len); | 295 } |
296 PyBuffer_Release(&arg1); | 296 OrthancPluginSendHttpStatus(OrthancPlugins::GetGlobalContext(), self->object_, arg0, arg1, arg2); |
297 | |
297 | 298 |
298 Py_INCREF(Py_None); | 299 Py_INCREF(Py_None); |
299 return Py_None; | 300 return Py_None; |
300 } | 301 } |
301 | 302 |