Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginJob.impl.h @ 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 | cbfc72a53970 |
comparison
equal
deleted
inserted
replaced
62:d82eef8c98fc | 63:32de70a1e4c7 |
---|---|
15 * You should have received a copy of the GNU Affero General Public License | 15 * You should have received a copy of the GNU Affero General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 **/ | 17 **/ |
18 | 18 |
19 | 19 |
20 typedef struct | 20 // Forward declaration of the autogenerated methods |
21 { | 21 static PyObject *sdk_OrthancPluginJob_OrthancPluginSubmitJob( |
22 PyObject_HEAD | 22 sdk_OrthancPluginJob_Object* self, PyObject *args); |
23 | 23 // End of forward declarations |
24 /* Type-specific fields go here. */ | |
25 OrthancPluginJob* object_; | |
26 bool borrowed_; | |
27 } sdk_OrthancPluginJob_Object; | |
28 | 24 |
29 | 25 |
30 | 26 // Forward declaration of the custom methods |
31 // Forward declaration of the methods | 27 // End of forward declarations |
32 static PyObject *sdk_OrthancPluginJob_OrthancPluginSubmitJob( | |
33 sdk_OrthancPluginJob_Object* self, PyObject *args); | |
34 | 28 |
35 | 29 |
36 static PyMethodDef sdk_OrthancPluginJob_Methods[] = { | 30 static PyMethodDef sdk_OrthancPluginJob_Methods[] = { |
37 { "SubmitJob", | 31 { "SubmitJob", |
38 (PyCFunction) sdk_OrthancPluginJob_OrthancPluginSubmitJob, METH_VARARGS, | 32 (PyCFunction) sdk_OrthancPluginJob_OrthancPluginSubmitJob, METH_VARARGS, |
166 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); | 160 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); |
167 } | 161 } |
168 } | 162 } |
169 | 163 |
170 | 164 |
171 PyObject* GetOrthancPluginJobType() | 165 PyTypeObject* GetOrthancPluginJobType() |
172 { | 166 { |
173 return (PyObject*) &sdk_OrthancPluginJob_Type; | 167 return &sdk_OrthancPluginJob_Type; |
174 } | 168 } |