From: Andrzej Popowski Date: Wed, 10 Aug 2016 07:57:27 +0000 (+0200) Subject: [Filesystem] - new deviced API applied X-Git-Tag: submit/tizen/20160817.044034~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c86d9b07077321e1891270c05c2f9afd3c59b40c;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Filesystem] - new deviced API applied Change-Id: I3093b99841ff1e77f4b01db9956d20c03be49cbf Signed-off-by: Andrzej Popowski --- 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,