Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/StoragePlugin.cpp @ 28:c0cb5d2cd696
checks depending on Orthanc version
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Jul 2018 14:48:43 +0200 |
parents | 17f849b2af34 |
children | 5600949bfb12 |
comparison
equal
deleted
inserted
replaced
27:173176f8cef2 | 28:c0cb5d2cd696 |
---|---|
28 | 28 |
29 extern "C" | 29 extern "C" |
30 { | 30 { |
31 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 31 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
32 { | 32 { |
33 if (!OrthancDatabases::InitializePlugin | 33 if (!OrthancDatabases::InitializePlugin(context, "MySQL", false)) |
34 (context, "MySQL storage area", | |
35 "Stores the Orthanc storage area into a MySQL database.")) | |
36 { | 34 { |
37 return -1; | 35 return -1; |
38 } | 36 } |
39 | 37 |
40 OrthancPlugins::OrthancConfiguration configuration(context); | 38 OrthancPlugins::OrthancConfiguration configuration(context); |