diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3668:adb6d8b49283 storage-commitment

integration mainline->storage-commitment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Feb 2020 18:44:53 +0100
parents 85acfcc15829 c8d8c3b5f47c
children daa1bc6700bf
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Thu Feb 13 11:34:00 2020 +0100
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Thu Feb 13 18:44:53 2020 +0100
@@ -784,6 +784,13 @@
     static void SubmitAndWait(Json::Value& result,
                               OrthancJob* job /* takes ownership */,
                               int priority);
+
+    // Submit a job from a POST on the REST API with the same
+    // conventions as in the Orthanc core (according to the
+    // "Synchronous" and "Priority" options)
+    static void SubmitFromRestApiPost(OrthancPluginRestOutput* output,
+                                      const Json::Value& body,
+                                      OrthancJob* job);
   };
 #endif