Make references to crow less obvious
Recently, a number of people in the community have made the (admittedly
easy) mistake that we use a significant portion of crow.
Today, we use crow for the router, and the "app" structure, and even
those have been significantly modified to meet the bmc needs. All other
components have been replaced with Boost beast. This commit removes the
crow mentions from the Readme, and moves the crow folder to "http" to
camouflage it a little. No code content has changed.
Tested:
Code compiles. No functional change made to any executable code.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: Iceb57b26306cc8bdcfc77f3874246338864fd118
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp
index 8c46cf4..662d3c6 100644
--- a/include/dbus_monitor.hpp
+++ b/include/dbus_monitor.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <crow/app.h>
-#include <crow/websocket.h>
+#include <app.h>
+#include <websocket.h>
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
diff --git a/include/http_utility.hpp b/include/http_utility.hpp
index b20952b..6f55c59 100644
--- a/include/http_utility.hpp
+++ b/include/http_utility.hpp
@@ -1,7 +1,7 @@
#pragma once
#include <boost/algorithm/string.hpp>
-#include "crow/http_request.h"
+#include "http_request.h"
namespace http_helpers
{
diff --git a/include/image_upload.hpp b/include/image_upload.hpp
index 529e056..ba9c403 100644
--- a/include/image_upload.hpp
+++ b/include/image_upload.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <crow/app.h>
+#include <app.h>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp
index 9fc3926..817f7c4 100644
--- a/include/kvm_websocket.hpp
+++ b/include/kvm_websocket.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include <crow/app.h>
-#include <crow/websocket.h>
+#include <app.h>
#include <sys/socket.h>
+#include <websocket.h>
#include <boost/container/flat_map.hpp>
#include <webserver_common.hpp>
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index 25f3b39..b8afba6 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include <crow/app.h>
-#include <crow/websocket.h>
+#include <app.h>
#include <sys/socket.h>
+#include <websocket.h>
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 749e899..93c198e 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -13,7 +13,7 @@
// limitations under the License.
#pragma once
-#include <crow/app.h>
+#include <app.h>
#include <tinyxml2.h>
#include <async_resp.hpp>
diff --git a/include/persistent_data_middleware.hpp b/include/persistent_data_middleware.hpp
index 5d7e97c..c368ab2 100644
--- a/include/persistent_data_middleware.hpp
+++ b/include/persistent_data_middleware.hpp
@@ -1,8 +1,8 @@
#pragma once
-#include <crow/app.h>
-#include <crow/http_request.h>
-#include <crow/http_response.h>
+#include <app.h>
+#include <http_request.h>
+#include <http_response.h>
#include <boost/container/flat_map.hpp>
#include <boost/uuid/uuid.hpp>
diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp
index f1dbfd2..3e97ad1 100644
--- a/include/redfish_v1.hpp
+++ b/include/redfish_v1.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <crow/app.h>
+#include <app.h>
#include <boost/algorithm/string.hpp>
#include <dbus_singleton.hpp>
diff --git a/include/security_headers_middleware.hpp b/include/security_headers_middleware.hpp
index a89acaa..f60ce76 100644
--- a/include/security_headers_middleware.hpp
+++ b/include/security_headers_middleware.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include <crow/http_request.h>
-#include <crow/http_response.h>
+#include <http_request.h>
+#include <http_response.h>
namespace crow
{
diff --git a/include/sessions.hpp b/include/sessions.hpp
index b183a0e..df65d61 100644
--- a/include/sessions.hpp
+++ b/include/sessions.hpp
@@ -10,7 +10,7 @@
#include <random>
#include <sdbusplus/bus/match.hpp>
-#include "crow/logging.h"
+#include "logging.h"
namespace crow
{
diff --git a/include/token_authorization_middleware.hpp b/include/token_authorization_middleware.hpp
index 2ff3879..0a44050 100644
--- a/include/token_authorization_middleware.hpp
+++ b/include/token_authorization_middleware.hpp
@@ -1,9 +1,9 @@
#pragma once
-#include <crow/app.h>
-#include <crow/common.h>
-#include <crow/http_request.h>
-#include <crow/http_response.h>
+#include <app.h>
+#include <common.h>
+#include <http_request.h>
+#include <http_response.h>
#include <boost/container/flat_set.hpp>
#include <pam_authenticate.hpp>
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 6485920..57a690c 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -1,8 +1,8 @@
#pragma once
-#include <crow/app.h>
-#include <crow/websocket.h>
+#include <app.h>
#include <signal.h>
+#include <websocket.h>
#include <boost/beast/core/flat_static_buffer.hpp>
#include <boost/process.hpp>
diff --git a/include/webassets.hpp b/include/webassets.hpp
index daead98..aec7dba 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -1,9 +1,9 @@
#pragma once
-#include <crow/app.h>
-#include <crow/http_request.h>
-#include <crow/http_response.h>
-#include <crow/routing.h>
+#include <app.h>
+#include <http_request.h>
+#include <http_response.h>
+#include <routing.h>
#include <boost/algorithm/string/replace.hpp>
#include <boost/container/flat_set.hpp>