Exclude symbol of mainloop/socket from common lib 13/73413/1
authorKyungwook Tak <k.tak@samsung.com>
Wed, 8 Jun 2016 05:27:42 +0000 (14:27 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Wed, 8 Jun 2016 05:27:42 +0000 (14:27 +0900)
Mainloop class and Socket class is used only as private member in other
classes in common lib so it could be hidden symbol.

Change-Id: Id32237cb00a9115fc84d95294e1846e3ddc341da
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/framework/common/connection.cpp
src/framework/common/connection.h
src/framework/common/mainloop.h
src/framework/common/service.cpp
src/framework/common/service.h
src/framework/common/socket.h
src/framework/ui/popup/popup-service.cpp
src/framework/ui/popup/popup-service.h

index a8c3ea8..19f4e32 100644 (file)
@@ -35,6 +35,10 @@ Connection::Connection(Connection &&other) noexcept :
 {
 }
 
+Connection::~Connection()
+{
+}
+
 Connection &Connection::operator=(Connection &&other) noexcept
 {
        if (this == &other)
index 842a511..2a31321 100644 (file)
@@ -34,7 +34,7 @@ namespace Csr {
 class API Connection {
 public:
        explicit Connection(Socket &&socket) noexcept;
-       virtual ~Connection() = default;
+       virtual ~Connection();
 
        Connection(const Connection &) = delete;
        Connection &operator=(const Connection &) = delete;
index 05b50cc..a4f438f 100644 (file)
@@ -29,7 +29,7 @@
 
 namespace Csr {
 
-class API Mainloop {
+class Mainloop {
 public:
        using Callback = std::function<void(uint32_t event)>;
 
index e8ab86f..a23aa01 100644 (file)
 
 namespace Csr {
 
+Service::Service() noexcept
+{
+}
+
+Service::~Service()
+{
+}
+
 void Service::setIdleChecker(std::function<bool()> &&idleChecker)
 {
        this->m_loop.setIdleChecker(std::move(idleChecker));
index 4b34894..a2d054b 100644 (file)
@@ -35,8 +35,8 @@ namespace Csr {
 
 class API Service {
 public:
-       Service() = default;
-       virtual ~Service() = default;
+       Service() noexcept;
+       virtual ~Service();
 
        Service(const Service &) = delete;
        Service &operator=(const Service &) = delete;
index c902902..52a6a8a 100644 (file)
@@ -29,7 +29,7 @@
 
 namespace Csr {
 
-class API Socket {
+class Socket {
 public:
        enum class Type : int {
                SERVER = 0x01,
index 6c86829..186b847 100644 (file)
@@ -58,10 +58,6 @@ PopupService::PopupService() : Service()
        this->add(SockId::POPUP);
 }
 
-PopupService::~PopupService()
-{
-}
-
 RawBuffer PopupService::process(const ConnShPtr &, RawBuffer &data)
 {
        BinaryQueue q;
index d3e569a..ee6d96a 100644 (file)
@@ -33,7 +33,7 @@ namespace Ui {
 class PopupService : public Service {
 public:
        PopupService();
-       virtual ~PopupService();
+       virtual ~PopupService() = default;
 
 private:
        virtual void onMessageProcess(const ConnShPtr &) override;