#include <glib.h>
#include <sys/statvfs.h>
#include <tzplatform_config.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "log.h"
if (!list)
return -EINVAL;
- ret_dbus = dbus_handle_method_sync_with_reply_var(STORAGE_EXT_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_MANAGER,
STORAGE_EXT_IFACE_MANAGER,
STORAGE_EXT_GET_LIST,
memset(buf, 0, sizeof(struct statvfs_32));
- ret_dbus = dbus_handle_method_sync_with_reply_var(STORAGE_EXT_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_STORAGE,
STORAGE_EXT_IFACE_STORAGE,
STORAGE_EXT_GET_STATVFS,
memset(buf, 0, sizeof(struct statvfs));
- ret_dbus = dbus_handle_method_sync_with_reply_var(STORAGE_EXT_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_STORAGE,
STORAGE_EXT_IFACE_STORAGE,
STORAGE_EXT_GET_STATVFS,
return -EINVAL;
}
- ret_dbus = dbus_handle_method_sync_with_reply_var(STORAGE_EXT_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_STORAGE,
STORAGE_EXT_IFACE_STORAGE,
STORAGE_EXT_GET_STORAGE_LEVEL,
//LCOV_EXCL_STOP
}
- block_id = subscribe_dbus_signal(NULL, NULL,
+ block_id = gdbus_signal_subscribe(NULL, NULL,
STORAGE_EXT_IFACE_MANAGER,
NULL,
storage_ext_changed,
if (callback->func != func)
continue;
if (callback->block_id > 0)
- unsubscribe_dbus_signal(NULL, callback->block_id);
+ gdbus_signal_unsubscribe(NULL, callback->block_id);
SYS_G_LIST_REMOVE(changed_list, callback);
free(callback);
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(STORAGE_EXT_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(STORAGE_EXT_BUS_NAME,
STORAGE_EXT_PATH_MANAGER,
STORAGE_EXT_IFACE_MANAGER,
"GetDeviceInfo",