Adjust client socket classes after move to common library
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Wed, 2 Jul 2014 07:49:41 +0000 (09:49 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 3 Jul 2014 12:19:11 +0000 (14:19 +0200)
Fix #ifndef guards, include paths and CMakeLists.

This patch should be verified together with previous one (Raw move).

Change-Id: I81640c5297c11435e2fe0e8b18c9d37ded5318a3

src/client/CMakeLists.txt
src/client/logic/Logic.cpp
src/client/logic/Logic.h
src/common/CMakeLists.txt
src/common/sockets/Socket.cpp
src/common/sockets/Socket.h
src/common/sockets/SocketClient.cpp
src/common/sockets/SocketClient.h

index 2f51764..89fe001 100644 (file)
@@ -24,8 +24,6 @@ SET(CYNARA_LIB_CYNARA_PATH ${CYNARA_PATH}/client)
 SET(LIB_CYNARA_SOURCES
     ${CYNARA_LIB_CYNARA_PATH}/api/client-api.cpp
     ${CYNARA_LIB_CYNARA_PATH}/logic/Logic.cpp
-    ${CYNARA_LIB_CYNARA_PATH}/sockets/Socket.cpp
-    ${CYNARA_LIB_CYNARA_PATH}/sockets/SocketClient.cpp
     )
 
 INCLUDE_DIRECTORIES(
index 6b04973..aa62511 100644 (file)
 #include <request/pointers.h>
 #include <response/CheckResponse.h>
 #include <response/pointers.h>
+#include <sockets/SocketClient.h>
 #include <types/PolicyKey.h>
 #include <types/PolicyResult.h>
 
-#include <sockets/SocketClient.h>
 #include "Logic.h"
 
 namespace Cynara {
index 512b313..e16a451 100644 (file)
 
 #include <string>
 
-#include <api/ApiInterface.h>
 #include <sockets/SocketClient.h>
 
+#include <api/ApiInterface.h>
+
 namespace Cynara {
 
 class Logic : public ApiInterface {
index dbc5c3a..a689435 100644 (file)
@@ -32,6 +32,8 @@ SET(COMMON_SOURCES
     ${COMMON_PATH}/request/RequestTaker.cpp
     ${COMMON_PATH}/response/CheckResponse.cpp
     ${COMMON_PATH}/response/ResponseTaker.cpp
+    ${COMMON_PATH}/sockets/Socket.cpp
+    ${COMMON_PATH}/sockets/SocketClient.cpp
     ${COMMON_PATH}/types/PolicyBucket.cpp
     ${COMMON_PATH}/types/PolicyKey.cpp
     )
index cddd05f..81be8d4 100644 (file)
@@ -31,6 +31,8 @@
 #include <sys/un.h>
 #include <unistd.h>
 
+#include <containers/BinaryQueue.h>
+#include <containers/RawBuffer.h>
 #include <exceptions/InitException.h>
 #include <exceptions/ServerConnectionErrorException.h>
 #include <exceptions/UnexpectedErrorException.h>
index 7c6a286..7ea8c61 100644 (file)
  * @brief       This file contains definition of UNIX client socket class
  */
 
-#ifndef SRC_CLIENT_SOCKETS_SOCKET_H_
-#define SRC_CLIENT_SOCKETS_SOCKET_H_
+#ifndef SRC_COMMON_SOCKETS_SOCKET_H_
+#define SRC_COMMON_SOCKETS_SOCKET_H_
 
 #include <string>
 
-#include <common.h>
+#include <containers/BinaryQueue.h>
 
 namespace Cynara {
 
@@ -76,4 +76,4 @@ public:
 
 } // namespace Cynara
 
-#endif /* SRC_CLIENT_SOCKETS_SOCKET_H_ */
+#endif /* SRC_COMMON_SOCKETS_SOCKET_H_ */
index 90f89de..6eff9f5 100644 (file)
@@ -29,7 +29,6 @@
 #include <request/Request.h>
 #include <request/RequestContext.h>
 #include <response/pointers.h>
-
 #include <sockets/Socket.h>
 
 #include "SocketClient.h"
index d3e16a1..04f0436 100644 (file)
  * @brief       This file contains definition of cynara's socket client
  */
 
-#ifndef SRC_CLIENT_SOCKETS_SOCKETCLIENT_H_
-#define SRC_CLIENT_SOCKETS_SOCKETCLIENT_H_
+#ifndef SRC_COMMON_SOCKETS_SOCKETCLIENT_H_
+#define SRC_COMMON_SOCKETS_SOCKETCLIENT_H_
 
 #include <memory>
 
-#include <common.h>
+#include <containers/BinaryQueue.h>
 #include <protocol/Protocol.h>
 #include <request/pointers.h>
 #include <response/pointers.h>
 #include <response/ResponseTaker.h>
-
 #include <sockets/Socket.h>
 
 namespace Cynara {
@@ -56,4 +55,4 @@ public:
 
 } // namespace Cynara
 
-#endif /* SRC_CLIENT_SOCKETS_SOCKETCLIENT_H_ */
+#endif /* SRC_COMMON_SOCKETS_SOCKETCLIENT_H_ */