comparison Sources/Autogenerated/sdk_GlobalFunctions.impl.h @ 189:46a81ed6e843

removed pointless function orthanc.CreateMemoryBuffer()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 17:17:24 +0200
parents 008be55355a4
children cf15599a1608
comparison
equal deleted inserted replaced
177:008be55355a4 189:46a81ed6e843
288 { 288 {
289 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */); 289 PyObject *argList = Py_BuildValue("Lb", obj, false /* not borrowed */);
290 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList); 290 PyObject *python = PyObject_CallObject((PyObject *) &sdk_OrthancPluginImage_Type, argList);
291 Py_DECREF(argList); 291 Py_DECREF(argList);
292 return python; 292 return python;
293 }
294 }
295
296 static PyObject* sdk_OrthancPluginCreateMemoryBuffer(PyObject* module, PyObject* args)
297 {
298 PythonLock::LogCall("Calling Python global function: OrthancPluginCreateMemoryBuffer()");
299
300 unsigned long arg0 = 0;
301
302 if (!PyArg_ParseTuple(args, "k", &arg0))
303 {
304 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
305 return NULL;
306 }
307 OrthancPlugins::MemoryBuffer buffer;
308 OrthancPluginErrorCode code = OrthancPluginCreateMemoryBuffer(OrthancPlugins::GetGlobalContext(), *buffer, arg0);
309
310 if (code == OrthancPluginErrorCode_Success)
311 {
312 return PyBytes_FromStringAndSize(buffer.GetData(), buffer.GetSize());
313 }
314 else
315 {
316 PythonLock::RaiseException(code);
317 return NULL;
318 } 293 }
319 } 294 }
320 295
321 static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args) 296 static PyObject* sdk_OrthancPluginDecodeDicomImage(PyObject* module, PyObject* args)
322 { 297 {
1557 "Generated from C function OrthancPluginCreateDicomInstance()" }, 1532 "Generated from C function OrthancPluginCreateDicomInstance()" },
1558 { "CreateFindMatcher", sdk_OrthancPluginCreateFindMatcher, METH_VARARGS, 1533 { "CreateFindMatcher", sdk_OrthancPluginCreateFindMatcher, METH_VARARGS,
1559 "Generated from C function OrthancPluginCreateFindMatcher()" }, 1534 "Generated from C function OrthancPluginCreateFindMatcher()" },
1560 { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS, 1535 { "CreateImage", sdk_OrthancPluginCreateImage, METH_VARARGS,
1561 "Generated from C function OrthancPluginCreateImage()" }, 1536 "Generated from C function OrthancPluginCreateImage()" },
1562 { "CreateMemoryBuffer", sdk_OrthancPluginCreateMemoryBuffer, METH_VARARGS,
1563 "Generated from C function OrthancPluginCreateMemoryBuffer()" },
1564 { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS, 1537 { "DecodeDicomImage", sdk_OrthancPluginDecodeDicomImage, METH_VARARGS,
1565 "Generated from C function OrthancPluginDecodeDicomImage()" }, 1538 "Generated from C function OrthancPluginDecodeDicomImage()" },
1566 { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS, 1539 { "DicomBufferToJson", sdk_OrthancPluginDicomBufferToJson, METH_VARARGS,
1567 "Generated from C function OrthancPluginDicomBufferToJson()" }, 1540 "Generated from C function OrthancPluginDicomBufferToJson()" },
1568 { "DicomInstanceToJson", sdk_OrthancPluginDicomInstanceToJson, METH_VARARGS, 1541 { "DicomInstanceToJson", sdk_OrthancPluginDicomInstanceToJson, METH_VARARGS,