libpackage: Add global init/terminate routines.
- Currently only used to call libcurl's global initialization and cleanup routines.
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
@@ -89,6 +89,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
DownloadFileRequest.cpp
|
DownloadFileRequest.cpp
|
||||||
DropRepositoryRequest.cpp
|
DropRepositoryRequest.cpp
|
||||||
FetchFileJob.cpp
|
FetchFileJob.cpp
|
||||||
|
InitTerminateLibPackage.cpp
|
||||||
InstallationLocationInfo.cpp
|
InstallationLocationInfo.cpp
|
||||||
Job.cpp
|
Job.cpp
|
||||||
JobQueue.cpp
|
JobQueue.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user