Mercurial > hg > orthanc-python
comparison CodeAnalysis/GlobalFunctions.mustache @ 192:b0f096d2339e java-code-model
documentation of orthanc.RegisterRestCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 18:25:53 +0200 |
parents | 55473de7694f |
children | 3678a028f1f6 |
comparison
equal
deleted
inserted
replaced
191:30ed49f2487f | 192:b0f096d2339e |
---|---|
20 | 20 |
21 | 21 |
22 // WARNING: Auto-generated file. Do not modify it by hand. | 22 // WARNING: Auto-generated file. Do not modify it by hand. |
23 | 23 |
24 | 24 |
25 // Forward declaration of the custom global functions | |
26 {{#custom_functions}} | |
27 extern PyObject *{{implementation}}(PyObject* module, PyObject *args); | |
28 {{/custom_functions}} | |
29 // End of forward declarations | |
30 | |
31 | |
25 {{#global_functions}} | 32 {{#global_functions}} |
26 static PyObject* sdk_{{c_function}}(PyObject* module, PyObject* args) | 33 static PyObject* sdk_{{c_function}}(PyObject* module, PyObject* args) |
27 { | 34 { |
28 PythonLock::LogCall("Calling Python global function: {{c_function}}()"); | 35 PythonLock::LogCall("Calling Python global function: {{c_function}}()"); |
29 | 36 |
36 { | 43 { |
37 {{#global_functions}} | 44 {{#global_functions}} |
38 { "{{short_name}}", sdk_{{c_function}}, METH_VARARGS, | 45 { "{{short_name}}", sdk_{{c_function}}, METH_VARARGS, |
39 "Generated from C function {{c_function}}()" }, | 46 "Generated from C function {{c_function}}()" }, |
40 {{/global_functions}} | 47 {{/global_functions}} |
48 {{#custom_functions}} | |
49 { "{{short_name}}", {{implementation}}, METH_VARARGS, | |
50 "Implemented in C++ function {{implementation}}()" }, | |
51 {{/custom_functions}} | |
41 { NULL, NULL } | 52 { NULL, NULL } |
42 }; | 53 }; |
43 | 54 |
44 | 55 |
45 PyMethodDef* GetOrthancSdkFunctions() | 56 PyMethodDef* GetOrthancSdkFunctions() |