libgdbus: Move common gdbus interfaces to libsystem package
[platform/core/system/storaged.git] / src / auto-test / block.c
index bc2a7b2..265104c 100644 (file)
@@ -40,7 +40,7 @@ static bool request_block_method(const char *method, GVariant *param, int timeou
        int val;
        bool ret = FALSE;
 
-       msg = dbus_method_sync_with_reply_var_timeout(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var_timeout(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                method, param, timeout);
@@ -76,7 +76,7 @@ static int get_id()
        int val;
        int ret = -1;
 
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_GETMMCPRIMARY,
@@ -106,7 +106,7 @@ static bool block_showdevicelist()
 
        _D("----------------------------------------------------------------------------------");
 
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_SHOWDEVICELIST,
@@ -130,7 +130,7 @@ static bool block_getdevicelist(char *type)
        int ret = FALSE;
 
        _D("----------------------------------------------------------------------------------");
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_GETDEVICELIST,
@@ -161,7 +161,7 @@ static bool block_getdevicelist2(char *type)
        int ret = FALSE;
 
        _D("----------------------------------------------------------------------------------");
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_GETDEVICELIST2,
@@ -215,7 +215,7 @@ static bool block_getdeviceinfo(int id)
        int ret = FALSE;
 
        _D("----------------------------------------------------------------------------------");
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_GETDEVICEINFO,
@@ -249,7 +249,7 @@ static bool block_getmmcprimary()
        int ret = FALSE;
 
        _D("----------------------------------------------------------------------------------");
-       msg = dbus_method_sync_with_reply_var(STORAGED_BUS_NAME,
+       msg = dbus_handle_method_sync_with_reply_var(STORAGED_BUS_NAME,
                STORAGED_PATH_BLOCK_MANAGER,
                STORAGED_INTERFACE_BLOCK_MANAGER,
                METHOD_BLOCK_GETMMCPRIMARY,