Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/IndexPlugin.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 |
---|---|
28 #include <Logging.h> | 28 #include <Logging.h> |
29 #include <Toolbox.h> | 29 #include <Toolbox.h> |
30 | 30 |
31 #include <google/protobuf/any.h> | 31 #include <google/protobuf/any.h> |
32 | 32 |
33 #define ORTHANC_PLUGIN_NAME "mysql-index" | |
33 | 34 |
34 extern "C" | 35 extern "C" |
35 { | 36 { |
36 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 37 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
37 { | 38 { |
38 GOOGLE_PROTOBUF_VERIFY_VERSION; | 39 GOOGLE_PROTOBUF_VERIFY_VERSION; |
39 | 40 |
40 if (!OrthancDatabases::InitializePlugin(context, "MySQL", true)) | 41 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "MySQL", true)) |
41 { | 42 { |
42 return -1; | 43 return -1; |
43 } | 44 } |
44 | 45 |
45 Orthanc::Toolbox::InitializeOpenSsl(); | 46 Orthanc::Toolbox::InitializeOpenSsl(); |
101 } | 102 } |
102 | 103 |
103 | 104 |
104 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 105 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
105 { | 106 { |
106 return "mysql-index"; | 107 return ORTHANC_PLUGIN_NAME; |
107 } | 108 } |
108 | 109 |
109 | 110 |
110 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() | 111 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() |
111 { | 112 { |