diff Sources/Autogenerated/sdk_GlobalFunctions.impl.h @ 49:9e466631660a

ugrade to Orthanc SDK 1.8.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Dec 2020 16:30:25 +0100
parents 393d2da0722a
children 23f3099bed47
line wrap: on
line diff
--- a/Sources/Autogenerated/sdk_GlobalFunctions.impl.h	Fri Nov 06 17:56:55 2020 +0100
+++ b/Sources/Autogenerated/sdk_GlobalFunctions.impl.h	Tue Dec 08 16:30:25 2020 +0100
@@ -1660,6 +1660,27 @@
   }
 }
 
+static PyObject* sdk_OrthancPluginGenerateRestApiAuthorizationToken(PyObject* module, PyObject* args)
+{
+  PythonLock::LogCall("Calling Python global function: OrthancPluginGenerateRestApiAuthorizationToken()");
+
+
+  OrthancPlugins::OrthancString s;
+  s.Assign(OrthancPluginGenerateRestApiAuthorizationToken(OrthancPlugins::GetGlobalContext()));
+  
+  if (s.GetContent() == NULL)
+  {
+    // TODO => RAISE : https://stackoverflow.com/questions/60832317
+    //PythonLock::RaiseException(module, OrthancPluginErrorCode_InternalError);
+    PyErr_SetString(PyExc_ValueError, "Internal error");
+    return NULL;
+  }
+  else
+  {
+    return PyUnicode_FromString(s.GetContent());
+  }
+}
+
 
 static PyMethodDef ORTHANC_SDK_FUNCTIONS[] = 
 {
@@ -1789,6 +1810,8 @@
     "Generated from C function OrthancPluginTranscodeDicomInstance()" },
   { "CreateMemoryBuffer", sdk_OrthancPluginCreateMemoryBuffer, METH_VARARGS,
     "Generated from C function OrthancPluginCreateMemoryBuffer()" },
+  { "GenerateRestApiAuthorizationToken", sdk_OrthancPluginGenerateRestApiAuthorizationToken, METH_VARARGS,
+    "Generated from C function OrthancPluginGenerateRestApiAuthorizationToken()" },
   { NULL, NULL }
 };