diff 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
line wrap: on
line diff
--- a/CodeAnalysis/GlobalFunctions.mustache	Tue Jul 02 18:00:52 2024 +0200
+++ b/CodeAnalysis/GlobalFunctions.mustache	Tue Jul 02 18:25:53 2024 +0200
@@ -22,6 +22,13 @@
 // WARNING: Auto-generated file. Do not modify it by hand.
 
 
+// Forward declaration of the custom global functions
+{{#custom_functions}}
+extern PyObject *{{implementation}}(PyObject* module, PyObject *args);
+{{/custom_functions}}
+// End of forward declarations
+
+
 {{#global_functions}}
 static PyObject* sdk_{{c_function}}(PyObject* module, PyObject* args)
 {
@@ -38,6 +45,10 @@
   { "{{short_name}}", sdk_{{c_function}}, METH_VARARGS,
     "Generated from C function {{c_function}}()" },
 {{/global_functions}}
+{{#custom_functions}}
+  { "{{short_name}}", {{implementation}}, METH_VARARGS,
+    "Implemented in C++ function {{implementation}}()" },
+{{/custom_functions}}
   { NULL, NULL }
 };