libpackage: Add global init/terminate routines.

- Currently only used to call libcurl's global initialization and
  cleanup routines.
This commit is contained in:
Rene Gollent
2013-09-29 17:25:31 -04:00
parent e4227e934e
commit a7a7aaaf3d
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,22 @@
/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Rene Gollent <[email protected]>
*/
#include <curl/curl.h>
extern "C" void
initialize_after()
{
curl_global_init(CURL_GLOBAL_SSL);
}
extern "C" void
terminate_after()
{
curl_global_cleanup();
}
+1
View File
@@ -89,6 +89,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
DownloadFileRequest.cpp
DropRepositoryRequest.cpp
FetchFileJob.cpp
InitTerminateLibPackage.cpp
InstallationLocationInfo.cpp
Job.cpp
JobQueue.cpp