comparison PostgreSQL/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
24 #include "../../Framework/Plugins/PluginInitialization.h" 24 #include "../../Framework/Plugins/PluginInitialization.h"
25 25
26 #include <Logging.h> 26 #include <Logging.h>
27 #include <Toolbox.h> 27 #include <Toolbox.h>
28 28
29 #define ORTHANC_PLUGIN_NAME "postgresql-storage"
30
31
29 extern "C" 32 extern "C"
30 { 33 {
31 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 34 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
32 { 35 {
33 if (!OrthancDatabases::InitializePlugin(context, "PostgreSQL", false)) 36 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "PostgreSQL", false))
34 { 37 {
35 return -1; 38 return -1;
36 } 39 }
37 40
38 Orthanc::Toolbox::InitializeOpenSsl(); 41 Orthanc::Toolbox::InitializeOpenSsl();
86 } 89 }
87 90
88 91
89 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() 92 ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
90 { 93 {
91 return "postgresql-storage"; 94 return ORTHANC_PLUGIN_NAME;
92 } 95 }
93 96
94 97
95 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() 98 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
96 { 99 {