Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/IndexPlugin.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 |
---|---|
30 | 30 |
31 extern "C" | 31 extern "C" |
32 { | 32 { |
33 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 33 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
34 { | 34 { |
35 if (!OrthancDatabases::InitializePlugin | 35 if (!OrthancDatabases::InitializePlugin(context, "MySQL", true)) |
36 (context, "MySQL index", | |
37 "Stores the Orthanc index into a MySQL database.")) | |
38 { | 36 { |
39 return -1; | 37 return -1; |
40 } | 38 } |
41 | 39 |
42 OrthancPlugins::OrthancConfiguration configuration(context); | 40 OrthancPlugins::OrthancConfiguration configuration(context); |