Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/StoragePlugin.cpp @ 492:af6998ed73dd
fix deprecated calls
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Mar 2024 15:03:26 +0100 |
parents | ecd0b719cff5 |
children | 54d518dcd74a |
comparison
equal
deleted
inserted
replaced
491:711b136e8fe8 | 492:af6998ed73dd |
---|---|
26 | 26 |
27 #include <HttpClient.h> | 27 #include <HttpClient.h> |
28 #include <Logging.h> | 28 #include <Logging.h> |
29 #include <Toolbox.h> | 29 #include <Toolbox.h> |
30 | 30 |
31 #define ORTHANC_PLUGIN_NAME "mysql-storage" | |
32 | |
31 | 33 |
32 extern "C" | 34 extern "C" |
33 { | 35 { |
34 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 36 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
35 { | 37 { |
36 if (!OrthancDatabases::InitializePlugin(context, "MySQL", false)) | 38 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "MySQL", false)) |
37 { | 39 { |
38 return -1; | 40 return -1; |
39 } | 41 } |
40 | 42 |
41 Orthanc::Toolbox::InitializeOpenSsl(); | 43 Orthanc::Toolbox::InitializeOpenSsl(); |
93 } | 95 } |
94 | 96 |
95 | 97 |
96 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 98 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
97 { | 99 { |
98 return "mysql-storage"; | 100 return ORTHANC_PLUGIN_NAME; |
99 } | 101 } |
100 | 102 |
101 | 103 |
102 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() | 104 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() |
103 { | 105 { |