From c86d9b07077321e1891270c05c2f9afd3c59b40c Mon Sep 17 00:00:00 2001 From: Andrzej Popowski Date: Wed, 10 Aug 2016 09:57:27 +0200 Subject: [PATCH] [Filesystem] - new deviced API applied Change-Id: I3093b99841ff1e77f4b01db9956d20c03be49cbf Signed-off-by: Andrzej Popowski --- src/common/filesystem/filesystem_provider_deviced.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index e8613a8f..f3bb5a06 100644 --- a/src/common/filesystem/filesystem_provider_deviced.cc +++ b/src/common/filesystem/filesystem_provider_deviced.cc @@ -23,14 +23,12 @@ #include #include #include - #include "common/filesystem/filesystem_storage.h" #include "common/logger.h" namespace { static const char* kBus = "org.tizen.system.storage"; -static const char* kBlockIface = "org.tizen.system.storage.BlockManager"; -static const char* kBlackManagerIface = "org.tizen.system.storage.BlockManager"; +static const char* kBlockManagerIface = "org.tizen.system.storage.BlockManager"; static const char* kPath = "/Org/Tizen/System/Storage/Block/Manager"; static const char* kDeviceChangedMethod = "DeviceChanged"; static const char* kGetDeviceListMethod = "GetDeviceList"; @@ -173,7 +171,7 @@ void FilesystemProviderDeviced::RegisterDeviceChangeState( if (device_changed_callback_ == nullptr) { LoggerD("Registering dbus signal subscription"); block_signal_subscribe_id_ = g_dbus_connection_signal_subscribe( - dbus_, nullptr, kBlockIface, kDeviceChangedMethod, + dbus_, nullptr, kBlockManagerIface, kDeviceChangedMethod, nullptr, nullptr, G_DBUS_SIGNAL_FLAGS_NONE, BlockSignalProxy, this, nullptr); } @@ -240,7 +238,7 @@ Storages FilesystemProviderDeviced::GetStorages() { GVariant* variant = g_dbus_connection_call_sync(dbus_, kBus, kPath, - kBlackManagerIface, + kBlockManagerIface, kGetDeviceListMethod, g_variant_new("(s)", "all"), NULL, -- 2.34.1