iface_len = strlen(iface) + 1;
signal_len = strlen(signal) + 1;
- if (strncmp(iface, STORAGE_EXT_IFACE, iface_len))
+ if (strncmp(iface, STORAGE_EXT_IFACE_MANAGER, iface_len))
return;
if (!strncmp(signal, STORAGE_EXT_DEVICE_CHANGED, signal_len))
block_id = g_dbus_connection_signal_subscribe(conn,
STORAGE_EXT_BUS_NAME,
- STORAGE_EXT_IFACE,
+ STORAGE_EXT_IFACE_MANAGER,
NULL,
NULL,
NULL,
result = dbus_method_call_sync(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_MANAGER,
STORAGE_EXT_IFACE_MANAGER,
- "GetDeviceInfoByID",
+ "GetDeviceInfo",
g_variant_new("(i)", storage_id));
if (!result) {
_E("There is no storage with the storage id (%d)", storage_id); //LCOV_EXCL_LINE
#include "list.h"
#define STORAGE_EXT_BUS_NAME "org.tizen.system.storage"
-#define STORAGE_EXT_PATH "/Org/Tizen/System/Storage/Block"
-#define STORAGE_EXT_PATH_DEVICES STORAGE_EXT_PATH"/Devices"
-#define STORAGE_EXT_PATH_MANAGER STORAGE_EXT_PATH"/Manager"
-#define STORAGE_EXT_IFACE STORAGE_EXT_BUS_NAME".Block"
+#define STORAGE_EXT_PATH_MANAGER "/Org/Tizen/System/Storage/Block/Manager"
#define STORAGE_EXT_IFACE_MANAGER STORAGE_EXT_BUS_NAME".BlockManager"
enum mount_state {