[Filesystem] - new deviced API applied 45/83345/2
authorAndrzej Popowski <a.popowski@samsung.com>
Wed, 10 Aug 2016 07:57:27 +0000 (09:57 +0200)
committerAndrzej Popowski <a.popowski@samsung.com>
Wed, 10 Aug 2016 08:26:49 +0000 (10:26 +0200)
Change-Id: I3093b99841ff1e77f4b01db9956d20c03be49cbf
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/common/filesystem/filesystem_provider_deviced.cc

index e8613a8f88b8e14246a92946d82dbfc8bf2e0ed9..f3bb5a06288fc07b1781286b708a671475ceeac1 100644 (file)
 #include <algorithm>
 #include <memory>
 #include <utility>
-
 #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,