#define __DALI_TIZEN_PLATFORM_NETWORK_FILE_DOWNLOAD_H__
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <string>
#include <mutex> //c++11
#include <stdint.h> // uint8
+#include <openssl/crypto.h>
namespace Dali
{
*/
~CurlEnvironment();
+ // Moveable but not copyable
+
+ CurlEnvironment( const CurlEnvironment& ) = delete;
+ CurlEnvironment& operator=( const CurlEnvironment& ) = delete;
+ CurlEnvironment( CurlEnvironment&& ) = default;
+ CurlEnvironment& operator=( CurlEnvironment&& ) = default;
+
/**
* Locking function for libcurl with openssl
*/
/**
* Gets thread id for libcurl with openssl
*/
- static unsigned long GetThreadId();
-
- static void ConfigureCurlOptions( void* curlHandle, const std::string& url );
-
- static void InitWriteFunction( void* curlHandle );
+ static void GetThreadId( CRYPTO_THREADID* tid );
private: