Mercurial > hg > orthanc-stone
comparison Framework/StoneInitialization.cpp @ 860:238693c3bc51 am-dev
merge default -> am-dev
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 24 Jun 2019 14:35:00 +0200 |
parents | 61ba4b504e9a |
children | efc5b62b9539 |
comparison
equal
deleted
inserted
replaced
856:a6e17a5a39e7 | 860:238693c3bc51 |
---|---|
29 | 29 |
30 #if ORTHANC_ENABLE_SDL == 1 | 30 #if ORTHANC_ENABLE_SDL == 1 |
31 # include "../Applications/Sdl/SdlWindow.h" | 31 # include "../Applications/Sdl/SdlWindow.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if ORTHANC_ENABLE_CURL == 1 | |
35 #include <Core/HttpClient.h> | |
36 #endif | |
37 | |
34 namespace OrthancStone | 38 namespace OrthancStone |
35 { | 39 { |
36 #if ORTHANC_ENABLE_LOGGING_PLUGIN == 1 | 40 #if ORTHANC_ENABLE_LOGGING_PLUGIN == 1 |
37 void StoneInitialize(OrthancPluginContext* context) | 41 void StoneInitialize(OrthancPluginContext* context) |
38 #else | 42 #else |
46 #endif | 50 #endif |
47 | 51 |
48 #if ORTHANC_ENABLE_SDL == 1 | 52 #if ORTHANC_ENABLE_SDL == 1 |
49 OrthancStone::SdlWindow::GlobalInitialize(); | 53 OrthancStone::SdlWindow::GlobalInitialize(); |
50 #endif | 54 #endif |
55 | |
56 #if ORTHANC_ENABLE_CURL == 1 | |
57 Orthanc::HttpClient::GlobalInitialize(); | |
58 #endif | |
51 } | 59 } |
52 | 60 |
53 void StoneFinalize() | 61 void StoneFinalize() |
54 { | 62 { |
55 #if ORTHANC_ENABLE_SDL == 1 | 63 #if ORTHANC_ENABLE_SDL == 1 |
56 OrthancStone::SdlWindow::GlobalFinalize(); | 64 OrthancStone::SdlWindow::GlobalFinalize(); |
57 #endif | 65 #endif |
58 | 66 |
67 #if ORTHANC_ENABLE_CURL == 1 | |
68 Orthanc::HttpClient::GlobalFinalize(); | |
69 #endif | |
70 | |
59 Orthanc::Logging::Finalize(); | 71 Orthanc::Logging::Finalize(); |
60 } | 72 } |
61 } | 73 } |