comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3667:c8d8c3b5f47c

OrthancJob::SubmitFromRestApiPost()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Feb 2020 18:05:51 +0100
parents 94f4a18a79cc
children adb6d8b49283
comparison
equal deleted inserted replaced
3663:b7cf2e32aafb 3667:c8d8c3b5f47c
776 int priority); 776 int priority);
777 777
778 static void SubmitAndWait(Json::Value& result, 778 static void SubmitAndWait(Json::Value& result,
779 OrthancJob* job /* takes ownership */, 779 OrthancJob* job /* takes ownership */,
780 int priority); 780 int priority);
781
782 // Submit a job from a POST on the REST API with the same
783 // conventions as in the Orthanc core (according to the
784 // "Synchronous" and "Priority" options)
785 static void SubmitFromRestApiPost(OrthancPluginRestOutput* output,
786 const Json::Value& body,
787 OrthancJob* job);
781 }; 788 };
782 #endif 789 #endif
783 790
784 791
785 #if HAS_ORTHANC_PLUGIN_METRICS == 1 792 #if HAS_ORTHANC_PLUGIN_METRICS == 1