diff OrthancServer/OrthancInitialization.cpp @ 457:997282a61ff8

cleaner names
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jul 2013 16:00:13 +0200
parents 081a44d5110b
children 4aae0261515e
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Thu Jul 04 15:53:46 2013 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Thu Jul 04 16:00:13 2013 +0200
@@ -32,6 +32,7 @@
 
 #include "OrthancInitialization.h"
 
+#include "../OrthancCppClient/HttpClient.h"
 #include "../Core/OrthancException.h"
 #include "../Core/Toolbox.h"
 #include "ServerEnumerations.h"
@@ -161,7 +162,7 @@
     defaultDirectory_ = boost::filesystem::current_path();
     ReadGlobalConfiguration(configurationFile);
 
-    curl_global_init(CURL_GLOBAL_ALL);
+    HttpClient::GlobalInitialize();
 
     RegisterUserMetadata();
   }
@@ -171,7 +172,7 @@
   void OrthancFinalize()
   {
     boost::mutex::scoped_lock lock(globalMutex_);
-    curl_global_cleanup();
+    HttpClient::GlobalFinalize();
     configuration_.reset(NULL);
   }