![]() |
Orthanc Plugin SDK
Documentation of the plugin interface of Orthanc
|
This C/C++ SDK allows external developers to create plugins that can be loaded into Orthanc to extend its functionality. Each Orthanc plugin must expose 4 public functions with the following signatures:
int32_t OrthancPluginInitialize(const OrthancPluginContext* context): This function is invoked by Orthanc when it loads the plugin on startup. The plugin must:void OrthancPluginFinalize(): This function is invoked by Orthanc during its shutdown. The plugin must free all its memory.const char* OrthancPluginGetName(): The plugin must return a short string to identify itself.const char* OrthancPluginGetVersion(): The plugin must return a string containing its version number.The name and the version of a plugin is only used to prevent it from being loaded twice.
The various callbacks are guaranteed to be executed in mutual exclusion since Orthanc 0.8.5.
1.8.9.1