aboutsummaryrefslogtreecommitdiffstats
path: root/http-server/common.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-06-05 18:43:52 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-06-05 20:32:17 +0200
commit4da1b7955fb3190c0e0646cfde99436aa140d271 (patch)
treebb9518b7aaf0c0493de03da83753d6a50f0aa9bf /http-server/common.h
parente8a980e1bc33adacb763066dc263f447656cb351 (diff)
- Added proxy function
- Changed interface between library and application - Support for different build type Change-Id: I34ae75057490eb887d353e53c6d013f88bead04f Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'http-server/common.h')
-rw-r--r--http-server/common.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/http-server/common.h b/http-server/common.h
index e69706e6..580f8a41 100644
--- a/http-server/common.h
+++ b/http-server/common.h
@@ -16,6 +16,18 @@
#ifndef ICN_WEB_SERVER_COMMON_H_
#define ICN_WEB_SERVER_COMMON_H_
+#include "config.h"
+
+#if defined(HICNET)
+ #include <hicnet/hicnet_http_facade.h>
+ #include <hicnet/hicnet_utils_hash.h>
+#elif defined(ICNET)
+ #include <icnet/icnet_http_facade.h>
+ #include <icnet/icnet_utils_hash.h>
+#else
+ #error "No ICN tranport library to which link against."
+#endif
+
#include <boost/asio.hpp>
#include <boost/regex.hpp>
#include <boost/algorithm/string/predicate.hpp>
@@ -31,9 +43,6 @@
#include <sstream>
#include <string>
-// ICN extensions
-#include <icnet/icnet_socket_producer.h>
-
typedef boost::asio::ip::tcp::socket socket_type;
typedef std::function<void(const boost::system::error_code &)> SendCallback;