comparison PostgreSQL/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
26 #include <Logging.h> 26 #include <Logging.h>
27 #include <Toolbox.h> 27 #include <Toolbox.h>
28 28
29 #include <google/protobuf/any.h> 29 #include <google/protobuf/any.h>
30 30
31 #define ORTHANC_PLUGIN_NAME "postgresql-index"
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 GOOGLE_PROTOBUF_VERIFY_VERSION; 38 GOOGLE_PROTOBUF_VERIFY_VERSION;
37 39
38 if (!OrthancDatabases::InitializePlugin(context, "PostgreSQL", true)) 40 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "PostgreSQL", true))
39 { 41 {
40 return -1; 42 return -1;
41 } 43 }
42 44
43 Orthanc::Toolbox::InitializeOpenSsl(); 45 Orthanc::Toolbox::InitializeOpenSsl();
95 } 97 }
96 98
97 99
98 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() 100 ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
99 { 101 {
100 return "postgresql-index"; 102 return ORTHANC_PLUGIN_NAME;
101 } 103 }
102 104
103 105
104 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() 106 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
105 { 107 {