From 88511caff61d59ff92df7b1327cd366261ac11b9 Mon Sep 17 00:00:00 2001 From: Adam Gu Date: Fri, 6 Jul 2018 13:59:16 +0800 Subject: [PATCH] Reorganize folder structure. --- CMakeLists.txt | 18 +++++++++--------- example/http/async_client/CMakeLists.txt | 4 ---- example/http/client/CMakeLists.txt | 4 ---- example/http_hello_async_client/CMakeLists.txt | 4 ++++ .../main.cc | 0 example/http_hello_client/CMakeLists.txt | 4 ++++ .../{http/client => http_hello_client}/main.cc | 0 .../CMakeLists.txt | 0 .../main.cc | 0 .../CMakeLists.txt | 0 .../book_client => rest_book_client}/main.cc | 0 .../CMakeLists.txt | 2 +- .../book_services.cc | 4 ++-- .../book_services.h | 0 .../book_server => rest_book_server}/main.cc | 2 +- .../CMakeLists.txt | 2 +- .../calc_client.cc | 5 ++--- .../calc_client.h | 1 + .../calculator.wsdl | 0 .../calc_client => soap_calc_client}/main.cc | 2 +- .../CMakeLists.txt | 2 +- .../calc_service.cc | 6 ++---- .../calc_service.h | 3 +-- .../calc_server => soap_calc_server}/main.cc | 6 +----- unittest/rest_service_manager_test.cc | 17 +++++++---------- {src/webcc => webcc}/CMakeLists.txt | 0 {src/webcc => webcc}/async_http_client.cc | 0 {src/webcc => webcc}/async_http_client.h | 0 {src/webcc => webcc}/async_rest_client.cc | 0 {src/webcc => webcc}/async_rest_client.h | 0 {src/webcc => webcc}/globals.cc | 0 {src/webcc => webcc}/globals.h | 0 {src/webcc => webcc}/http_client.cc | 0 {src/webcc => webcc}/http_client.h | 0 {src/webcc => webcc}/http_connection.cc | 0 {src/webcc => webcc}/http_connection.h | 0 {src/webcc => webcc}/http_message.cc | 0 {src/webcc => webcc}/http_message.h | 0 {src/webcc => webcc}/http_parser.cc | 0 {src/webcc => webcc}/http_parser.h | 0 {src/webcc => webcc}/http_request.cc | 0 {src/webcc => webcc}/http_request.h | 0 {src/webcc => webcc}/http_request_handler.cc | 0 {src/webcc => webcc}/http_request_handler.h | 0 {src/webcc => webcc}/http_request_parser.cc | 0 {src/webcc => webcc}/http_request_parser.h | 0 {src/webcc => webcc}/http_response.cc | 0 {src/webcc => webcc}/http_response.h | 0 {src/webcc => webcc}/http_response_parser.cc | 0 {src/webcc => webcc}/http_response_parser.h | 0 {src/webcc => webcc}/http_server.cc | 0 {src/webcc => webcc}/http_server.h | 0 {src/webcc => webcc}/logger.cc | 0 {src/webcc => webcc}/logger.h | 0 {src/webcc => webcc}/queue.h | 0 {src/webcc => webcc}/rest_client.cc | 0 {src/webcc => webcc}/rest_client.h | 0 {src/webcc => webcc}/rest_request_handler.cc | 0 {src/webcc => webcc}/rest_request_handler.h | 0 {src/webcc => webcc}/rest_server.h | 0 {src/webcc => webcc}/rest_service.cc | 0 {src/webcc => webcc}/rest_service.h | 0 {src/webcc => webcc}/rest_service_manager.cc | 0 {src/webcc => webcc}/rest_service_manager.h | 0 {src/webcc => webcc}/soap_client.cc | 0 {src/webcc => webcc}/soap_client.h | 0 {src/webcc => webcc}/soap_message.cc | 0 {src/webcc => webcc}/soap_message.h | 0 {src/webcc => webcc}/soap_request.cc | 0 {src/webcc => webcc}/soap_request.h | 0 {src/webcc => webcc}/soap_request_handler.cc | 0 {src/webcc => webcc}/soap_request_handler.h | 0 {src/webcc => webcc}/soap_response.cc | 0 {src/webcc => webcc}/soap_response.h | 0 {src/webcc => webcc}/soap_server.h | 0 {src/webcc => webcc}/soap_service.h | 0 {src/webcc => webcc}/soap_xml.cc | 0 {src/webcc => webcc}/soap_xml.h | 0 {src/webcc => webcc}/url.cc | 0 {src/webcc => webcc}/url.h | 0 {src/webcc => webcc}/utility.cc | 0 {src/webcc => webcc}/utility.h | 0 82 files changed, 38 insertions(+), 48 deletions(-) delete mode 100644 example/http/async_client/CMakeLists.txt delete mode 100644 example/http/client/CMakeLists.txt create mode 100644 example/http_hello_async_client/CMakeLists.txt rename example/{http/async_client => http_hello_async_client}/main.cc (100%) create mode 100644 example/http_hello_client/CMakeLists.txt rename example/{http/client => http_hello_client}/main.cc (100%) rename example/{rest/book_async_client => rest_book_async_client}/CMakeLists.txt (100%) rename example/{rest/book_async_client => rest_book_async_client}/main.cc (100%) rename example/{rest/book_client => rest_book_client}/CMakeLists.txt (100%) rename example/{rest/book_client => rest_book_client}/main.cc (100%) rename example/{rest/book_server => rest_book_server}/CMakeLists.txt (78%) rename example/{rest/book_server => rest_book_server}/book_services.cc (99%) rename example/{rest/book_server => rest_book_server}/book_services.h (100%) rename example/{rest/book_server => rest_book_server}/main.cc (96%) rename example/{soap/calc_client => soap_calc_client}/CMakeLists.txt (79%) rename example/{soap/calc_client => soap_calc_client}/calc_client.cc (95%) rename example/{soap/calc_client => soap_calc_client}/calc_client.h (99%) rename example/{soap/calc_client => soap_calc_client}/calculator.wsdl (100%) rename example/{soap/calc_client => soap_calc_client}/main.cc (92%) rename example/{soap/calc_server => soap_calc_server}/CMakeLists.txt (78%) rename example/{soap/calc_server => soap_calc_server}/calc_service.cc (95%) rename example/{soap/calc_server => soap_calc_server}/calc_service.h (86%) rename example/{soap/calc_server => soap_calc_server}/main.cc (93%) rename {src/webcc => webcc}/CMakeLists.txt (100%) rename {src/webcc => webcc}/async_http_client.cc (100%) rename {src/webcc => webcc}/async_http_client.h (100%) rename {src/webcc => webcc}/async_rest_client.cc (100%) rename {src/webcc => webcc}/async_rest_client.h (100%) rename {src/webcc => webcc}/globals.cc (100%) rename {src/webcc => webcc}/globals.h (100%) rename {src/webcc => webcc}/http_client.cc (100%) rename {src/webcc => webcc}/http_client.h (100%) rename {src/webcc => webcc}/http_connection.cc (100%) rename {src/webcc => webcc}/http_connection.h (100%) rename {src/webcc => webcc}/http_message.cc (100%) rename {src/webcc => webcc}/http_message.h (100%) rename {src/webcc => webcc}/http_parser.cc (100%) rename {src/webcc => webcc}/http_parser.h (100%) rename {src/webcc => webcc}/http_request.cc (100%) rename {src/webcc => webcc}/http_request.h (100%) rename {src/webcc => webcc}/http_request_handler.cc (100%) rename {src/webcc => webcc}/http_request_handler.h (100%) rename {src/webcc => webcc}/http_request_parser.cc (100%) rename {src/webcc => webcc}/http_request_parser.h (100%) rename {src/webcc => webcc}/http_response.cc (100%) rename {src/webcc => webcc}/http_response.h (100%) rename {src/webcc => webcc}/http_response_parser.cc (100%) rename {src/webcc => webcc}/http_response_parser.h (100%) rename {src/webcc => webcc}/http_server.cc (100%) rename {src/webcc => webcc}/http_server.h (100%) rename {src/webcc => webcc}/logger.cc (100%) rename {src/webcc => webcc}/logger.h (100%) rename {src/webcc => webcc}/queue.h (100%) rename {src/webcc => webcc}/rest_client.cc (100%) rename {src/webcc => webcc}/rest_client.h (100%) rename {src/webcc => webcc}/rest_request_handler.cc (100%) rename {src/webcc => webcc}/rest_request_handler.h (100%) rename {src/webcc => webcc}/rest_server.h (100%) rename {src/webcc => webcc}/rest_service.cc (100%) rename {src/webcc => webcc}/rest_service.h (100%) rename {src/webcc => webcc}/rest_service_manager.cc (100%) rename {src/webcc => webcc}/rest_service_manager.h (100%) rename {src/webcc => webcc}/soap_client.cc (100%) rename {src/webcc => webcc}/soap_client.h (100%) rename {src/webcc => webcc}/soap_message.cc (100%) rename {src/webcc => webcc}/soap_message.h (100%) rename {src/webcc => webcc}/soap_request.cc (100%) rename {src/webcc => webcc}/soap_request.h (100%) rename {src/webcc => webcc}/soap_request_handler.cc (100%) rename {src/webcc => webcc}/soap_request_handler.h (100%) rename {src/webcc => webcc}/soap_response.cc (100%) rename {src/webcc => webcc}/soap_response.h (100%) rename {src/webcc => webcc}/soap_server.h (100%) rename {src/webcc => webcc}/soap_service.h (100%) rename {src/webcc => webcc}/soap_xml.cc (100%) rename {src/webcc => webcc}/soap_xml.h (100%) rename {src/webcc => webcc}/url.cc (100%) rename {src/webcc => webcc}/url.h (100%) rename {src/webcc => webcc}/utility.cc (100%) rename {src/webcc => webcc}/utility.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index feb68e8..17e0d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ if(Boost_FOUND) endif() # For including its own headers as "webcc/http_client.h". -include_directories(${PROJECT_SOURCE_DIR}/src) +include_directories(${PROJECT_SOURCE_DIR}) if(WIN32) include_directories(${PROJECT_SOURCE_DIR}/third_party/win32/include) @@ -116,23 +116,23 @@ if(WEBCC_ENABLE_SOAP) include_directories(${PROJECT_SOURCE_DIR}/third_party/src) endif() -add_subdirectory(src/webcc) +add_subdirectory(webcc) if(WEBCC_BUILD_EXAMPLE) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/http/client) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/http/async_client) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/http_hello_client) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/http_hello_async_client) # REST example needs jsoncpp to parse and create JSON. add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/src/jsoncpp) include_directories(${PROJECT_SOURCE_DIR}/third_party/src/jsoncpp) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest/book_server) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest/book_client) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest/book_async_client) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest_book_server) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest_book_client) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/rest_book_async_client) if(WEBCC_ENABLE_SOAP) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/soap/calc_server) - add_subdirectory(${PROJECT_SOURCE_DIR}/example/soap/calc_client) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/soap_calc_server) + add_subdirectory(${PROJECT_SOURCE_DIR}/example/soap_calc_client) endif() endif() diff --git a/example/http/async_client/CMakeLists.txt b/example/http/async_client/CMakeLists.txt deleted file mode 100644 index 819bd02..0000000 --- a/example/http/async_client/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -add_executable(http_async_client main.cc) - -target_link_libraries(http_async_client webcc ${Boost_LIBRARIES}) -target_link_libraries(http_async_client "${CMAKE_THREAD_LIBS_INIT}") diff --git a/example/http/client/CMakeLists.txt b/example/http/client/CMakeLists.txt deleted file mode 100644 index 723ef64..0000000 --- a/example/http/client/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -add_executable(http_client main.cc) - -target_link_libraries(http_client webcc ${Boost_LIBRARIES}) -target_link_libraries(http_client "${CMAKE_THREAD_LIBS_INIT}") diff --git a/example/http_hello_async_client/CMakeLists.txt b/example/http_hello_async_client/CMakeLists.txt new file mode 100644 index 0000000..a797ab4 --- /dev/null +++ b/example/http_hello_async_client/CMakeLists.txt @@ -0,0 +1,4 @@ +add_executable(http_hello_async_client main.cc) + +target_link_libraries(http_hello_async_client webcc ${Boost_LIBRARIES}) +target_link_libraries(http_hello_async_client "${CMAKE_THREAD_LIBS_INIT}") diff --git a/example/http/async_client/main.cc b/example/http_hello_async_client/main.cc similarity index 100% rename from example/http/async_client/main.cc rename to example/http_hello_async_client/main.cc diff --git a/example/http_hello_client/CMakeLists.txt b/example/http_hello_client/CMakeLists.txt new file mode 100644 index 0000000..9f0bf4c --- /dev/null +++ b/example/http_hello_client/CMakeLists.txt @@ -0,0 +1,4 @@ +add_executable(http_hello_client main.cc) + +target_link_libraries(http_hello_client webcc ${Boost_LIBRARIES}) +target_link_libraries(http_hello_client "${CMAKE_THREAD_LIBS_INIT}") diff --git a/example/http/client/main.cc b/example/http_hello_client/main.cc similarity index 100% rename from example/http/client/main.cc rename to example/http_hello_client/main.cc diff --git a/example/rest/book_async_client/CMakeLists.txt b/example/rest_book_async_client/CMakeLists.txt similarity index 100% rename from example/rest/book_async_client/CMakeLists.txt rename to example/rest_book_async_client/CMakeLists.txt diff --git a/example/rest/book_async_client/main.cc b/example/rest_book_async_client/main.cc similarity index 100% rename from example/rest/book_async_client/main.cc rename to example/rest_book_async_client/main.cc diff --git a/example/rest/book_client/CMakeLists.txt b/example/rest_book_client/CMakeLists.txt similarity index 100% rename from example/rest/book_client/CMakeLists.txt rename to example/rest_book_client/CMakeLists.txt diff --git a/example/rest/book_client/main.cc b/example/rest_book_client/main.cc similarity index 100% rename from example/rest/book_client/main.cc rename to example/rest_book_client/main.cc diff --git a/example/rest/book_server/CMakeLists.txt b/example/rest_book_server/CMakeLists.txt similarity index 78% rename from example/rest/book_server/CMakeLists.txt rename to example/rest_book_server/CMakeLists.txt index 54d1dda..a848101 100644 --- a/example/rest/book_server/CMakeLists.txt +++ b/example/rest_book_server/CMakeLists.txt @@ -1,4 +1,4 @@ -file(GLOB SRCS *.cc *.h) +set(SRCS book_services.cc book_services.h main.cc) add_executable(rest_book_server ${SRCS}) diff --git a/example/rest/book_server/book_services.cc b/example/rest_book_server/book_services.cc similarity index 99% rename from example/rest/book_server/book_services.cc rename to example/rest_book_server/book_services.cc index 39e916a..a561630 100644 --- a/example/rest/book_server/book_services.cc +++ b/example/rest_book_server/book_services.cc @@ -1,7 +1,7 @@ -#include "book_services.h" +#include "example/rest_book_server/book_services.h" -#include #include +#include #include "boost/thread/thread.hpp" #include "json/json.h" diff --git a/example/rest/book_server/book_services.h b/example/rest_book_server/book_services.h similarity index 100% rename from example/rest/book_server/book_services.h rename to example/rest_book_server/book_services.h diff --git a/example/rest/book_server/main.cc b/example/rest_book_server/main.cc similarity index 96% rename from example/rest/book_server/main.cc rename to example/rest_book_server/main.cc index 02c03a0..0433bd8 100644 --- a/example/rest/book_server/main.cc +++ b/example/rest_book_server/main.cc @@ -3,7 +3,7 @@ #include "webcc/logger.h" #include "webcc/rest_server.h" -#include "book_services.h" +#include "example/rest_book_server/book_services.h" // In order to run with VLD, please copy the following files to the example // output folder from "third_party\win32\bin": diff --git a/example/soap/calc_client/CMakeLists.txt b/example/soap_calc_client/CMakeLists.txt similarity index 79% rename from example/soap/calc_client/CMakeLists.txt rename to example/soap_calc_client/CMakeLists.txt index 60745be..a94250e 100644 --- a/example/soap/calc_client/CMakeLists.txt +++ b/example/soap_calc_client/CMakeLists.txt @@ -1,4 +1,4 @@ -file(GLOB SRCS *.cc *.h) +set(SRCS calc_client.cc calc_client.h main.cc) add_executable(soap_calc_client ${SRCS}) diff --git a/example/soap/calc_client/calc_client.cc b/example/soap_calc_client/calc_client.cc similarity index 95% rename from example/soap/calc_client/calc_client.cc rename to example/soap_calc_client/calc_client.cc index e6e59ca..2c9eedc 100644 --- a/example/soap/calc_client/calc_client.cc +++ b/example/soap_calc_client/calc_client.cc @@ -1,4 +1,4 @@ -#include "calc_client.h" +#include "example/soap_calc_client/calc_client.h" #include @@ -73,8 +73,7 @@ bool CalcClient::Calc(const std::string& operation, // Error handling if any. if (error != webcc::kNoError) { - LOG_ERRO("Operation '%s' failed: %s", - operation.c_str(), + LOG_ERRO("Operation '%s' failed: %s", operation.c_str(), webcc::DescribeError(error)); return false; } diff --git a/example/soap/calc_client/calc_client.h b/example/soap_calc_client/calc_client.h similarity index 99% rename from example/soap/calc_client/calc_client.h rename to example/soap_calc_client/calc_client.h index 9ab8be7..aacb45b 100644 --- a/example/soap/calc_client/calc_client.h +++ b/example/soap_calc_client/calc_client.h @@ -2,6 +2,7 @@ #define CALC_CLIENT_H_ #include + #include "webcc/soap_client.h" class CalcClient : public webcc::SoapClient { diff --git a/example/soap/calc_client/calculator.wsdl b/example/soap_calc_client/calculator.wsdl similarity index 100% rename from example/soap/calc_client/calculator.wsdl rename to example/soap_calc_client/calculator.wsdl diff --git a/example/soap/calc_client/main.cc b/example/soap_calc_client/main.cc similarity index 92% rename from example/soap/calc_client/main.cc rename to example/soap_calc_client/main.cc index 61d8f2e..ace8d45 100644 --- a/example/soap/calc_client/main.cc +++ b/example/soap_calc_client/main.cc @@ -2,7 +2,7 @@ #include "webcc/logger.h" -#include "calc_client.h" +#include "example/soap_calc_client/calc_client.h" int main() { WEBCC_LOG_INIT("", webcc::LOG_CONSOLE); diff --git a/example/soap/calc_server/CMakeLists.txt b/example/soap_calc_server/CMakeLists.txt similarity index 78% rename from example/soap/calc_server/CMakeLists.txt rename to example/soap_calc_server/CMakeLists.txt index 616776b..6c82984 100644 --- a/example/soap/calc_server/CMakeLists.txt +++ b/example/soap_calc_server/CMakeLists.txt @@ -1,4 +1,4 @@ -file(GLOB SRCS *.cc *.h) +set(SRCS calc_service.cc calc_service.h main.cc) add_executable(soap_calc_server ${SRCS}) diff --git a/example/soap/calc_server/calc_service.cc b/example/soap_calc_server/calc_service.cc similarity index 95% rename from example/soap/calc_server/calc_service.cc rename to example/soap_calc_server/calc_service.cc index 0148241..52770e8 100644 --- a/example/soap/calc_server/calc_service.cc +++ b/example/soap_calc_server/calc_service.cc @@ -1,4 +1,4 @@ -#include "calc_service.h" +#include "example/soap_calc_server/calc_service.h" #include #include @@ -80,12 +80,10 @@ bool CalcService::Handle(const webcc::SoapRequest& soap_request, } bool CalcService::GetParameters(const webcc::SoapRequest& soap_request, - double* x, - double* y) { + double* x, double* y) { try { *x = std::stod(soap_request.GetParameter("x")); *y = std::stod(soap_request.GetParameter("y")); - } catch (const std::exception& e) { LOG_ERRO("Parameter cast error: %s", e.what()); return false; diff --git a/example/soap/calc_server/calc_service.h b/example/soap_calc_server/calc_service.h similarity index 86% rename from example/soap/calc_server/calc_service.h rename to example/soap_calc_server/calc_service.h index 16c4c62..615dd86 100644 --- a/example/soap/calc_server/calc_service.h +++ b/example/soap_calc_server/calc_service.h @@ -13,8 +13,7 @@ public: private: bool GetParameters(const webcc::SoapRequest& soap_request, - double* x, - double* y); + double* x, double* y); }; #endif // CALC_SERVICE_H_ diff --git a/example/soap/calc_server/main.cc b/example/soap_calc_server/main.cc similarity index 93% rename from example/soap/calc_server/main.cc rename to example/soap_calc_server/main.cc index a1584d8..8ef21a5 100644 --- a/example/soap/calc_server/main.cc +++ b/example/soap_calc_server/main.cc @@ -3,7 +3,7 @@ #include "webcc/logger.h" #include "webcc/soap_server.h" -#include "calc_service.h" +#include "example/soap_calc_server/calc_service.h" static void Help(const char* argv0) { std::cout << "Usage: " << argv0 << " " << std::endl; @@ -20,16 +20,12 @@ int main(int argc, char* argv[]) { WEBCC_LOG_INIT("", webcc::LOG_CONSOLE); std::uint16_t port = static_cast(std::atoi(argv[1])); - std::size_t workers = 2; try { webcc::SoapServer server(port, workers); - server.Bind(std::make_shared(), "/calculator"); - server.Run(); - } catch (const std::exception& e) { std::cerr << "Exception: " << e.what() << std::endl; return 1; diff --git a/unittest/rest_service_manager_test.cc b/unittest/rest_service_manager_test.cc index c2f4177..f111da6 100644 --- a/unittest/rest_service_manager_test.cc +++ b/unittest/rest_service_manager_test.cc @@ -1,9 +1,7 @@ #include "webcc/rest_service_manager.h" #include "gtest/gtest.h" -using namespace webcc; - -class TestRestService : public RestService { +class TestRestService : public webcc::RestService { public: bool Handle(const std::string& http_method, const std::vector& url_sub_matches, @@ -15,10 +13,10 @@ public: }; TEST(RestServiceManager, URL_RegexBasic) { - RestServiceManager service_manager; + webcc::RestServiceManager service_manager; { - RestServicePtr service = std::make_shared(); + webcc::RestServicePtr service = std::make_shared(); service_manager.AddService(service, "/instances/(\\d+)", true); } @@ -26,7 +24,7 @@ TEST(RestServiceManager, URL_RegexBasic) { std::vector sub_matches; std::string url = "/instances/12345"; - RestServicePtr service = service_manager.GetService(url, &sub_matches); + webcc::RestServicePtr service = service_manager.GetService(url, &sub_matches); EXPECT_TRUE(!!service); @@ -41,17 +39,16 @@ TEST(RestServiceManager, URL_RegexBasic) { } TEST(RestServiceManager, URL_NonRegex) { - RestServiceManager service_manager; + webcc::RestServiceManager service_manager; { - RestServicePtr service = std::make_shared(); - + webcc::RestServicePtr service = std::make_shared(); service_manager.AddService(service, "/instances", false); } std::vector sub_matches; std::string url = "/instances"; - RestServicePtr service = service_manager.GetService(url, &sub_matches); + webcc::RestServicePtr service = service_manager.GetService(url, &sub_matches); EXPECT_TRUE(!!service); EXPECT_EQ(0, sub_matches.size()); diff --git a/src/webcc/CMakeLists.txt b/webcc/CMakeLists.txt similarity index 100% rename from src/webcc/CMakeLists.txt rename to webcc/CMakeLists.txt diff --git a/src/webcc/async_http_client.cc b/webcc/async_http_client.cc similarity index 100% rename from src/webcc/async_http_client.cc rename to webcc/async_http_client.cc diff --git a/src/webcc/async_http_client.h b/webcc/async_http_client.h similarity index 100% rename from src/webcc/async_http_client.h rename to webcc/async_http_client.h diff --git a/src/webcc/async_rest_client.cc b/webcc/async_rest_client.cc similarity index 100% rename from src/webcc/async_rest_client.cc rename to webcc/async_rest_client.cc diff --git a/src/webcc/async_rest_client.h b/webcc/async_rest_client.h similarity index 100% rename from src/webcc/async_rest_client.h rename to webcc/async_rest_client.h diff --git a/src/webcc/globals.cc b/webcc/globals.cc similarity index 100% rename from src/webcc/globals.cc rename to webcc/globals.cc diff --git a/src/webcc/globals.h b/webcc/globals.h similarity index 100% rename from src/webcc/globals.h rename to webcc/globals.h diff --git a/src/webcc/http_client.cc b/webcc/http_client.cc similarity index 100% rename from src/webcc/http_client.cc rename to webcc/http_client.cc diff --git a/src/webcc/http_client.h b/webcc/http_client.h similarity index 100% rename from src/webcc/http_client.h rename to webcc/http_client.h diff --git a/src/webcc/http_connection.cc b/webcc/http_connection.cc similarity index 100% rename from src/webcc/http_connection.cc rename to webcc/http_connection.cc diff --git a/src/webcc/http_connection.h b/webcc/http_connection.h similarity index 100% rename from src/webcc/http_connection.h rename to webcc/http_connection.h diff --git a/src/webcc/http_message.cc b/webcc/http_message.cc similarity index 100% rename from src/webcc/http_message.cc rename to webcc/http_message.cc diff --git a/src/webcc/http_message.h b/webcc/http_message.h similarity index 100% rename from src/webcc/http_message.h rename to webcc/http_message.h diff --git a/src/webcc/http_parser.cc b/webcc/http_parser.cc similarity index 100% rename from src/webcc/http_parser.cc rename to webcc/http_parser.cc diff --git a/src/webcc/http_parser.h b/webcc/http_parser.h similarity index 100% rename from src/webcc/http_parser.h rename to webcc/http_parser.h diff --git a/src/webcc/http_request.cc b/webcc/http_request.cc similarity index 100% rename from src/webcc/http_request.cc rename to webcc/http_request.cc diff --git a/src/webcc/http_request.h b/webcc/http_request.h similarity index 100% rename from src/webcc/http_request.h rename to webcc/http_request.h diff --git a/src/webcc/http_request_handler.cc b/webcc/http_request_handler.cc similarity index 100% rename from src/webcc/http_request_handler.cc rename to webcc/http_request_handler.cc diff --git a/src/webcc/http_request_handler.h b/webcc/http_request_handler.h similarity index 100% rename from src/webcc/http_request_handler.h rename to webcc/http_request_handler.h diff --git a/src/webcc/http_request_parser.cc b/webcc/http_request_parser.cc similarity index 100% rename from src/webcc/http_request_parser.cc rename to webcc/http_request_parser.cc diff --git a/src/webcc/http_request_parser.h b/webcc/http_request_parser.h similarity index 100% rename from src/webcc/http_request_parser.h rename to webcc/http_request_parser.h diff --git a/src/webcc/http_response.cc b/webcc/http_response.cc similarity index 100% rename from src/webcc/http_response.cc rename to webcc/http_response.cc diff --git a/src/webcc/http_response.h b/webcc/http_response.h similarity index 100% rename from src/webcc/http_response.h rename to webcc/http_response.h diff --git a/src/webcc/http_response_parser.cc b/webcc/http_response_parser.cc similarity index 100% rename from src/webcc/http_response_parser.cc rename to webcc/http_response_parser.cc diff --git a/src/webcc/http_response_parser.h b/webcc/http_response_parser.h similarity index 100% rename from src/webcc/http_response_parser.h rename to webcc/http_response_parser.h diff --git a/src/webcc/http_server.cc b/webcc/http_server.cc similarity index 100% rename from src/webcc/http_server.cc rename to webcc/http_server.cc diff --git a/src/webcc/http_server.h b/webcc/http_server.h similarity index 100% rename from src/webcc/http_server.h rename to webcc/http_server.h diff --git a/src/webcc/logger.cc b/webcc/logger.cc similarity index 100% rename from src/webcc/logger.cc rename to webcc/logger.cc diff --git a/src/webcc/logger.h b/webcc/logger.h similarity index 100% rename from src/webcc/logger.h rename to webcc/logger.h diff --git a/src/webcc/queue.h b/webcc/queue.h similarity index 100% rename from src/webcc/queue.h rename to webcc/queue.h diff --git a/src/webcc/rest_client.cc b/webcc/rest_client.cc similarity index 100% rename from src/webcc/rest_client.cc rename to webcc/rest_client.cc diff --git a/src/webcc/rest_client.h b/webcc/rest_client.h similarity index 100% rename from src/webcc/rest_client.h rename to webcc/rest_client.h diff --git a/src/webcc/rest_request_handler.cc b/webcc/rest_request_handler.cc similarity index 100% rename from src/webcc/rest_request_handler.cc rename to webcc/rest_request_handler.cc diff --git a/src/webcc/rest_request_handler.h b/webcc/rest_request_handler.h similarity index 100% rename from src/webcc/rest_request_handler.h rename to webcc/rest_request_handler.h diff --git a/src/webcc/rest_server.h b/webcc/rest_server.h similarity index 100% rename from src/webcc/rest_server.h rename to webcc/rest_server.h diff --git a/src/webcc/rest_service.cc b/webcc/rest_service.cc similarity index 100% rename from src/webcc/rest_service.cc rename to webcc/rest_service.cc diff --git a/src/webcc/rest_service.h b/webcc/rest_service.h similarity index 100% rename from src/webcc/rest_service.h rename to webcc/rest_service.h diff --git a/src/webcc/rest_service_manager.cc b/webcc/rest_service_manager.cc similarity index 100% rename from src/webcc/rest_service_manager.cc rename to webcc/rest_service_manager.cc diff --git a/src/webcc/rest_service_manager.h b/webcc/rest_service_manager.h similarity index 100% rename from src/webcc/rest_service_manager.h rename to webcc/rest_service_manager.h diff --git a/src/webcc/soap_client.cc b/webcc/soap_client.cc similarity index 100% rename from src/webcc/soap_client.cc rename to webcc/soap_client.cc diff --git a/src/webcc/soap_client.h b/webcc/soap_client.h similarity index 100% rename from src/webcc/soap_client.h rename to webcc/soap_client.h diff --git a/src/webcc/soap_message.cc b/webcc/soap_message.cc similarity index 100% rename from src/webcc/soap_message.cc rename to webcc/soap_message.cc diff --git a/src/webcc/soap_message.h b/webcc/soap_message.h similarity index 100% rename from src/webcc/soap_message.h rename to webcc/soap_message.h diff --git a/src/webcc/soap_request.cc b/webcc/soap_request.cc similarity index 100% rename from src/webcc/soap_request.cc rename to webcc/soap_request.cc diff --git a/src/webcc/soap_request.h b/webcc/soap_request.h similarity index 100% rename from src/webcc/soap_request.h rename to webcc/soap_request.h diff --git a/src/webcc/soap_request_handler.cc b/webcc/soap_request_handler.cc similarity index 100% rename from src/webcc/soap_request_handler.cc rename to webcc/soap_request_handler.cc diff --git a/src/webcc/soap_request_handler.h b/webcc/soap_request_handler.h similarity index 100% rename from src/webcc/soap_request_handler.h rename to webcc/soap_request_handler.h diff --git a/src/webcc/soap_response.cc b/webcc/soap_response.cc similarity index 100% rename from src/webcc/soap_response.cc rename to webcc/soap_response.cc diff --git a/src/webcc/soap_response.h b/webcc/soap_response.h similarity index 100% rename from src/webcc/soap_response.h rename to webcc/soap_response.h diff --git a/src/webcc/soap_server.h b/webcc/soap_server.h similarity index 100% rename from src/webcc/soap_server.h rename to webcc/soap_server.h diff --git a/src/webcc/soap_service.h b/webcc/soap_service.h similarity index 100% rename from src/webcc/soap_service.h rename to webcc/soap_service.h diff --git a/src/webcc/soap_xml.cc b/webcc/soap_xml.cc similarity index 100% rename from src/webcc/soap_xml.cc rename to webcc/soap_xml.cc diff --git a/src/webcc/soap_xml.h b/webcc/soap_xml.h similarity index 100% rename from src/webcc/soap_xml.h rename to webcc/soap_xml.h diff --git a/src/webcc/url.cc b/webcc/url.cc similarity index 100% rename from src/webcc/url.cc rename to webcc/url.cc diff --git a/src/webcc/url.h b/webcc/url.h similarity index 100% rename from src/webcc/url.h rename to webcc/url.h diff --git a/src/webcc/utility.cc b/webcc/utility.cc similarity index 100% rename from src/webcc/utility.cc rename to webcc/utility.cc diff --git a/src/webcc/utility.h b/webcc/utility.h similarity index 100% rename from src/webcc/utility.h rename to webcc/utility.h