#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";
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);
}
GVariant* variant = g_dbus_connection_call_sync(dbus_,
kBus,
kPath,
- kBlackManagerIface,
+ kBlockManagerIface,
kGetDeviceListMethod,
g_variant_new("(s)", "all"),
NULL,