ADD_SUBDIRECTORY(src/plugin)
ADD_SUBDIRECTORY(src/notification-daemon)
ADD_SUBDIRECTORY(src/common)
-ADD_SUBDIRECTORY(src/ipc-lib)
+ADD_SUBDIRECTORY(src/ipc)
ADD_SUBDIRECTORY(src/client)
ADD_SUBDIRECTORY(src/capi)
INCLUDE_DIRECTORIES(SYSTEM ${PRIVACY_PRIVILEGE_MANAGER_DEP_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(
${ASKUSER_PATH}/common
- ${ASKUSER_PATH}/ipc-lib
+ ${ASKUSER_PATH}/ipc
${PRIVACY_PRIVILEGE_MANAGER_PATH}/include
${ASKUSER_PATH}/client/include
)
#include <unistd.h>
#include <attributes/attributes.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/connection-exception.h>
+#include <client-channel.h>
+#include <server-channel.h>
+#include <common-types.h>
+#include <connection-exception.h>
#include <privacy_privilege_manager.h>
using namespace AskUser::Protocol;
INCLUDE_DIRECTORIES(SYSTEM ${ASKUSER_NOTIFICATION_CLIENT_DEP_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(
${ASKUSER_PATH}/common
- ${ASKUSER_PATH}/ipc-lib
+ ${ASKUSER_PATH}/ipc
${ASKUSER_NOTIFICATION_CLIENT_PATH}/api
${ASKUSER_NOTIFICATION_CLIENT_PATH}/impl
${ASKUSER_NOTIFICATION_CLIENT_PATH}/include
#include <log/alog.h>
#include <policy/Policy.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include <client-channel.h>
+#include <common-types.h>
#include "ClientCallbacks.h"
#include "ApiInterfaceImpl.h"
#include <PopupCallbackClosure.h>
#include <StatusCallbackClosure.h>
-#include <askuser-notification/ask-user-client-channel.h>
+#include <client-channel.h>
#include <askuser-notification-client.h>
#pragma once
-#include <askuser-notification/ask-user-client-channel.h>
+#include <client-channel.h>
#include "ApiInterfaceImpl.h"
#include <functional>
#include <log/alog.h>
-#include <askuser-notification/connection-exception.h>
+#include <connection-exception.h>
#include <askuser-notification-client.h>
# @author Dariusz Michaluk <d.michaluk@samsung.com>
#
-SET(ASKUSER_NOTIFICATION_LIB_PATH ${ASKUSER_PATH}/ipc-lib)
+SET(ASKUSER_NOTIFICATION_LIB_PATH ${ASKUSER_PATH}/ipc)
PKG_CHECK_MODULES(ASKUSER_NOTIFICATION_LIB_DEP
REQUIRED
)
SET(ASKUSER_NOTIFICATION_LIB_SOURCES
- ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-channel.cpp
- ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-client-channel.cpp
- ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-server-channel.cpp
+ ${ASKUSER_NOTIFICATION_LIB_PATH}/channel.cpp
+ ${ASKUSER_NOTIFICATION_LIB_PATH}/client-channel.cpp
+ ${ASKUSER_NOTIFICATION_LIB_PATH}/server-channel.cpp
${ASKUSER_NOTIFICATION_LIB_PATH}/credentials.cpp
${ASKUSER_NOTIFICATION_LIB_PATH}/message-utils.cpp
${ASKUSER_NOTIFICATION_LIB_PATH}/sock.cpp
- ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-config.cpp
+ ${ASKUSER_NOTIFICATION_LIB_PATH}/config.cpp
)
SET(ASKUSER_NOTIFICATION_LIB_TEST_SOURCES
INSTALL(TARGETS ${TARGET_ASKUSER_NOTIFICATION_LIB}
DESTINATION ${LIB_INSTALL_DIR})
-FILE(GLOB HEADERS ${ASKUSER_NOTIFICATION_LIB_PATH}/askuser-notification/*.h)
+FILE(GLOB HEADERS ${ASKUSER_NOTIFICATION_LIB_PATH}/*.h)
INSTALL(FILES ${HEADERS}
DESTINATION ${INCLUDE_INSTALL_DIR}/askuser-notification)
#include <cstddef>
#include <log/alog.h>
-#include <askuser-notification/sock-desc.h>
-#include <askuser-notification/ask-user-channel.h>
-
-#include <ask-user-config.h>
#include <message-utils.h>
+#include "sock-desc.h"
+#include "channel.h"
+#include "config.h"
+
namespace AskUser {
namespace Protocol {
#include <string>
#include <vector>
-#include <askuser-notification/sock-desc.h>
-#include <askuser-notification/ask-user-types.h>
+#include "sock-desc.h"
+#include "common-types.h"
namespace AskUser {
namespace Protocol {
#include <sstream>
#include <attributes/attributes.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/connection-exception.h>
#include <log/alog.h>
-
-#include <ask-user-config.h>
#include <message-utils.h>
+#include "client-channel.h"
+#include "connection-exception.h"
+#include "config.h"
+
namespace AskUser {
namespace Protocol {
#include <string>
#include <vector>
-#include <askuser-notification/ask-user-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include "channel.h"
+#include "common-types.h"
namespace AskUser {
namespace Protocol {
* @author Bartlomiej Grzelewski <b.grzelewski@samsung.com>
* @brief The implementation of utility functions for getting sockets paths.
*/
-#include <ask-user-config.h>
+#include "config.h"
namespace {
const std::string USER_EXT_PATH("/run/user_ext/");
#include <sys/smack.h>
#include <sys/socket.h>
-#include <askuser-notification/credentials-exception.h>
-
-#include <askuser-notification/credentials.h>
+#include "credentials-exception.h"
+#include "credentials.h"
namespace {
#include <string>
#include <type_traits>
-#include <askuser-notification/ask-user-types.h>
+#include "common-types.h"
namespace AskUser {
namespace Protocol {
#include <sstream>
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/connection-exception.h>
#include <log/alog.h>
-#include <ask-user-config.h>
-#include <message-utils.h>
+#include "connection-exception.h"
+#include "config.h"
+#include "message-utils.h"
+#include "server-channel.h"
namespace AskUser {
namespace Protocol {
#include <string>
#include <vector>
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/ask-user-channel.h>
-#include <askuser-notification/credentials.h>
+#include "common-types.h"
+#include "channel.h"
+#include "credentials.h"
namespace AskUser {
namespace Protocol {
#include <map>
-#include <askuser-notification/sock.h>
-#include <askuser-notification/raw-buffer.h>
+#include "sock.h"
+#include "raw-buffer.h"
namespace AskUser {
namespace Protocol {
#include <stdexcept>
#include <sys/socket.h>
#include <sys/un.h>
+#include <string>
+#include <vector>
#include <unistd.h>
#ifdef BUILD_WITH_SYSTEMD_DAEMON
#include <systemd/sd-daemon.h>
#endif // BUILD_WITH_SYSTEMD_DAEMON
-#include <string>
-#include <vector>
-
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/sock.h>
#include <log/alog.h>
+#include "common-types.h"
+#include "sock.h"
+
namespace AskUser {
namespace Protocol {
#include <string>
#include <unistd.h>
-#include <askuser-notification/raw-buffer.h>
+#include "raw-buffer.h"
namespace AskUser {
namespace Protocol {
#include <stdlib.h>
#include <unistd.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include <client-channel.h>
+#include <server-channel.h>
+#include <common-types.h>
std::map<int, int> m_sockets;
INCLUDE_DIRECTORIES(
${ASKUSER_PATH}
${ASKUSER_PATH}/common
- ${ASKUSER_PATH}/ipc-lib
+ ${ASKUSER_PATH}/ipc
${NOTIF_PATH}
)
#include <map>
#include <deque>
-#include <askuser-notification/ask-user-server-channel.h>
+#include <server-channel.h>
#include <event/Event.h>
namespace AskUser {
#include <memory>
-#include <askuser-notification/ask-user-server-channel.h>
+#include <channel.h>
#include "Logic.h"
#include "ui/Popupper.h"