Fix #ifndef guards, include paths and CMakeLists.
This patch should be verified together with previous one (Raw move).
Change-Id: I81640c5297c11435e2fe0e8b18c9d37ded5318a3
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(
#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 {
#include <string>
-#include <api/ApiInterface.h>
#include <sockets/SocketClient.h>
+#include <api/ApiInterface.h>
+
namespace Cynara {
class Logic : public ApiInterface {
${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
)
#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>
* @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 {
} // namespace Cynara
-#endif /* SRC_CLIENT_SOCKETS_SOCKET_H_ */
+#endif /* SRC_COMMON_SOCKETS_SOCKET_H_ */
#include <request/Request.h>
#include <request/RequestContext.h>
#include <response/pointers.h>
-
#include <sockets/Socket.h>
#include "SocketClient.h"
* @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 {
} // namespace Cynara
-#endif /* SRC_CLIENT_SOCKETS_SOCKETCLIENT_H_ */
+#endif /* SRC_COMMON_SOCKETS_SOCKETCLIENT_H_ */