Mercurial > hg > orthanc-python
comparison Sources/OnStoredInstanceCallback.cpp @ 63:32de70a1e4c7
New functions from the SDK wrapped in Python: CreateDicom, RegisterFindCallback, RegisterMoveCallback
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jun 2021 18:19:27 +0200 |
parents | 23f3099bed47 |
children | 0b3ef425db31 |
comparison
equal
deleted
inserted
replaced
62:d82eef8c98fc | 63:32de70a1e4c7 |
---|---|
41 * "sdk_OrthancPluginRestOutput_Type". | 41 * "sdk_OrthancPluginRestOutput_Type". |
42 **/ | 42 **/ |
43 PythonObject args(lock, PyTuple_New(2)); | 43 PythonObject args(lock, PyTuple_New(2)); |
44 PyTuple_SetItem(args.GetPyObject(), 0, PyLong_FromSsize_t((intptr_t) instance)); | 44 PyTuple_SetItem(args.GetPyObject(), 0, PyLong_FromSsize_t((intptr_t) instance)); |
45 PyTuple_SetItem(args.GetPyObject(), 1, PyBool_FromLong(true /* borrowed, don't destruct */)); | 45 PyTuple_SetItem(args.GetPyObject(), 1, PyBool_FromLong(true /* borrowed, don't destruct */)); |
46 PyObject *pInst = PyObject_CallObject(GetOrthancPluginDicomInstanceType(), args.GetPyObject()); | 46 PyObject *pInst = PyObject_CallObject((PyObject*) GetOrthancPluginDicomInstanceType(), args.GetPyObject()); |
47 | 47 |
48 /** | 48 /** |
49 * Construct the arguments tuple (output, uri) | 49 * Construct the arguments tuple (output, uri) |
50 **/ | 50 **/ |
51 PythonString str(lock, instanceId); | 51 PythonString str(lock, instanceId); |