Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Wed Feb 12 12:05:17 2020 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Feb 13 18:05:51 2020 +0100 @@ -778,6 +778,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