Mercurial > hg > orthanc-databases
comparison Odbc/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 | 694d1b551cbe |
children | 54d518dcd74a |
comparison
equal
deleted
inserted
replaced
491:711b136e8fe8 | 492:af6998ed73dd |
---|---|
25 #include "../../Framework/Odbc/OdbcEnvironment.h" | 25 #include "../../Framework/Odbc/OdbcEnvironment.h" |
26 #include "../../Framework/Plugins/PluginInitialization.h" | 26 #include "../../Framework/Plugins/PluginInitialization.h" |
27 #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" | 27 #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" |
28 | 28 |
29 #include <Logging.h> | 29 #include <Logging.h> |
30 | |
31 #define ORTHANC_PLUGIN_NAME "odbc-index" | |
30 | 32 |
31 | 33 |
32 #if defined(_WIN32) | 34 #if defined(_WIN32) |
33 # ifdef _MSC_VER | 35 # ifdef _MSC_VER |
34 # pragma message("Warning: Strings have not been tested on Windows (UTF-16 issues ahead)!") | 36 # pragma message("Warning: Strings have not been tested on Windows (UTF-16 issues ahead)!") |
57 | 59 |
58 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 60 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
59 { | 61 { |
60 GOOGLE_PROTOBUF_VERIFY_VERSION; | 62 GOOGLE_PROTOBUF_VERIFY_VERSION; |
61 | 63 |
62 if (!OrthancDatabases::InitializePlugin(context, "ODBC", true)) | 64 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "ODBC", true)) |
63 { | 65 { |
64 return -1; | 66 return -1; |
65 } | 67 } |
66 | 68 |
67 #if !defined(_WIN32) | 69 #if !defined(_WIN32) |
139 } | 141 } |
140 | 142 |
141 | 143 |
142 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 144 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
143 { | 145 { |
144 return "odbc-index"; | 146 return ORTHANC_PLUGIN_NAME; |
145 } | 147 } |
146 | 148 |
147 | 149 |
148 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() | 150 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() |
149 { | 151 { |