Mercurial > hg > orthanc
diff Plugins/Samples/Basic/Plugin.c @ 1232:f1c01451a8ee
Introspection of plugins, Plugins can extend Orthanc Explorer with custom JavaScript
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Dec 2014 17:04:40 +0100 |
parents | 1e1390665639 |
children | 40725595aaf0 |
line wrap: on
line diff
--- a/Plugins/Samples/Basic/Plugin.c Fri Nov 28 12:39:22 2014 +0100 +++ b/Plugins/Samples/Basic/Plugin.c Thu Dec 04 17:04:40 2014 +0100 @@ -326,6 +326,11 @@ OrthancPluginRegisterOnChangeCallback(context, OnChangeCallback); + /* Declare several properties of the plugin */ + OrthancPluginSetRootUri(context, "/plugin/hello"); + OrthancPluginSetDescription(context, "This is the description of the sample plugin that can be seen in Orthanc Explorer."); + OrthancPluginExtendOrthancExplorer(context, "alert('Hello Orthanc! From sample plugin with love.');"); + /* Make REST requests to the built-in Orthanc API */ OrthancPluginRestApiGet(context, &tmp, "/changes"); OrthancPluginFreeMemoryBuffer(context, &tmp);