Remove Boost Link Dependency
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <curl/curl.h>
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
#ifndef UTIL_HTTPCLIENTHELPERS_H
|
||||
#define UTIL_HTTPCLIENTHELPERS_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Util {
|
||||
|
||||
static std::vector<boost::shared_ptr<boost::mutex> > g_mutexes;
|
||||
static std::vector<std::shared_ptr<std::mutex> > g_mutexes;
|
||||
|
||||
static void LockCallback(int mode, int type, const char* /*file*/, int /*line*/)
|
||||
{
|
||||
@@ -28,7 +29,7 @@ static void InitializeLocks(void)
|
||||
{
|
||||
g_mutexes.resize(CRYPTO_num_locks());
|
||||
for (int i = 0; i < CRYPTO_num_locks(); ++i)
|
||||
g_mutexes[i] = boost::shared_ptr<boost::mutex>(new boost::mutex());
|
||||
g_mutexes[i] = std::shared_ptr<std::mutex>(new std::mutex());
|
||||
|
||||
CRYPTO_set_id_callback(ThreadId);
|
||||
CRYPTO_set_locking_callback(LockCallback);
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
#ifndef UTIL_INIH_H
|
||||
#define UTIL_INIH_H
|
||||
|
||||
#include "Libraries/INIh/INIReader.h"
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Util {
|
||||
|
||||
using ::INIReader;
|
||||
|
||||
} // namespace Util
|
||||
} // namespace DomoticaServer
|
||||
|
||||
#endif // UTIL_INIH_H
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef UTIL_CLIPP_H
|
||||
#define UTIL_CLIPP_H
|
||||
|
||||
#include "Libraries/clipp/clipp.h"
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Util {
|
||||
|
||||
using namespace clipp;
|
||||
|
||||
} // namespace Util
|
||||
} // namespace DomoticaServer
|
||||
|
||||
#endif // UTIL_CLIPP_H
|
||||
Reference in New Issue
Block a user