brt = DATA_VALUE_INT(data);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"Brightness",
if (lock_type) {
/* power lock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
if (lock_type) {
/* power unlock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
#include <assert.h>
#include <vconf.h>
#include <sys/types.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <linux/input.h>
#include "ambient-mode.h"
static inline void broadcast_lcdon_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDON_BY_POWERKEY,
static inline void broadcast_lcdoff_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDOFF_BY_POWERKEY,
/* device notify(vibrator) */
/* sound(dbus) */
/* Need to notify to deviced-vibrator. deviced-vibrator receives ChangedHardKey signal */
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_KEY,
DEVICED_INTERFACE_KEY,
SIGNAL_CHANGE_HARDKEY,
_E("Same key(%d, %d) is polled [%d,%d]",
code, value, old_fd, fd);
}
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_INPUT,
DEVICED_INTERFACE_INPUT,
"key",
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "apps/apps.h"
#include "core/log.h"
/* remove waring notiid*/
noti_id = noti_crit;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
METHOD_LOW_NOTI_OFF,
}
prev_level = battery_info.warning;
if (battery->charge_now)
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
noti_type,
g_variant_new("(ss)", pa[0], pa[1]));
else
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
noti_type,
/* remove waring notiid*/
noti_id = noti_low;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
METHOD_CRITICAL_NOTI_OFF,
}
prev_level = battery_info.critical;
if (battery->charge_now)
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
noti_type,
g_variant_new("(ss)", pa[0], pa[1]));
else
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
noti_type,
/* remove critical notiid */
noti_id = noti_crit;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
METHOD_CRITICAL_NOTI_OFF,
/* remove waring notiid*/
noti_id = noti_low;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async(POPUP_BUS_NAME,
POPUP_PATH_BATTERY,
POPUP_INTERFACE_BATTERY,
METHOD_LOW_NOTI_OFF,
plugin->display_changed = display_changed;
- ret = subscribe_dbus_signal(NULL, DEVICED_PATH_SYSNOTI,
+ ret = gdbus_signal_subscribe(NULL, DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI, SIGNAL_CHARGEERR_RESPONSE, abnormal_popup_dbus_signal_handler, NULL, NULL);
if (ret <= 0)
_E("Failed to init dbus signal: %d", ret);
brt = DATA_VALUE_INT(data);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"Brightness",
if (lock_type) {
/* power lock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
if (lock_type) {
/* power unlock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
#include <assert.h>
#include <vconf.h>
#include <sys/types.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <linux/input.h>
#include "ambient-mode.h"
static inline void broadcast_lcdon_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDON_BY_POWERKEY,
static inline void broadcast_lcdoff_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDOFF_BY_POWERKEY,
/* device notify(vibrator) */
/* sound(dbus) */
/* Need to notify to deviced-vibrator. deviced-vibrator receives ChangedHardKey signal */
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_KEY,
DEVICED_INTERFACE_KEY,
SIGNAL_CHANGE_HARDKEY,
brt = DATA_VALUE_INT(data);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"Brightness",
if (lock_type) {
/* power lock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
if (lock_type) {
/* power unlock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
#include <assert.h>
#include <vconf.h>
#include <sys/types.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <linux/input.h>
#include "ambient-mode.h"
static inline void broadcast_lcdon_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDON_BY_POWERKEY,
static inline void broadcast_lcdoff_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDOFF_BY_POWERKEY,
/* device notify(vibrator) */
/* sound(dbus) */
/* Need to notify to deviced-vibrator. deviced-vibrator receives ChangedHardKey signal */
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_KEY,
DEVICED_INTERFACE_KEY,
SIGNAL_CHANGE_HARDKEY,
if (get_pm_cur_state() == S_STANDBY) {
_I("send pre state change NORMAL");
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_PRE_CHANGE_STATE,
{
int ret;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_CHANGE_STATE,
int ret;
/* broadcast to other application */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_CHANGE_STATE,
int ret;
/* broadcast to other application */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_CHANGE_STATE,
_E("Fail to change state to next_state(%s)", state_st(cond)->name);
/* Broadcast pre-wakeup signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_POWER,
DEVICED_INTERFACE_POWER,
SIGNAL_PRE_WAKEUP,
brt = DATA_VALUE_INT(data);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"Brightness",
if (lock_type) {
/* power lock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerLock",
if (lock_type) {
/* power unlock signal */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"PowerUnlock",
if (!fnmatch(SEC_DSIM_PATH, devpath, 0)) {
action = udev_device_get_action(dev);
if (!strcmp(action, UDEV_CHANGE)) {
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
DISPLAY_DETACH_STR,
register_notifier(DEVICE_NOTIFIER_LCD, display_state_changed);
aod_clock_displayed = false;
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DEVICED_OBJECT_PATH,
DEVICED_INTERFACE_NAME,
SIGNAL_HOMESCREEN,
if (ret < 0)
_E("Can't write %s node.", CHARGER_LCD_NODE);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
if (ret < 0)
_E("Failed to register dbus object.");
}
#include <stdbool.h>
#include <vconf.h>
#include <hal/device/hal-display.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "display/core.h"
#include "display/display-ops.h"
state = enhance_update_state();
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"Enhance",
static void broadcast_hbm_state(char *state)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
state,
_I("HBM node: %s.", hbm_path);
}
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
if (ret < 0)
_E("Failed to register dbus object.");
#include <assert.h>
#include <vconf.h>
#include <sys/types.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <linux/input.h>
#include "ambient-mode.h"
static inline void broadcast_lcdon_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDON_BY_POWERKEY,
static inline void broadcast_lcdoff_by_powerkey(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
SIGNAL_LCDOFF_BY_POWERKEY,
else
str = SIGNAL_LBM_OFF;
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
str,
vconf_notify_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_AUTOMATIC_LOW_BRIGHTNESS, lbm_mode_changed, NULL);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method, %d.", ret);
#include "display/display-ops.h"
#include "shared/plugin.h"
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#define DBUS_COREAPPS_SWIMMODE_PATH "/Org/Tizen/Coreapps/home/swimmode"
#define DBUS_COREAPPS_SWIMMODE_INTERFACE "org.tizen.coreapps.home.swimmode"
return;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Sender(%d) does not exist.", pid);
return;
touchscreen_ops = find_device("touchscreen");
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DBUS_COREAPPS_SWIMMODE_PATH,
DBUS_COREAPPS_SWIMMODE_INTERFACE,
DBUS_SWIMMODE_MEMBER_STATUS,
va_start(args, num);
- ret = dbus_handle_method_async_pairs_with_reply(app_match[match].bus,
+ ret = gdbus_call_pairs_async_with_reply(app_match[match].bus,
app_match[match].path,
app_match[match].iface,
app_match[match].method,
if (!type)
return -EINVAL;
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
"MessagePostOn",
if (!type)
return -EINVAL;
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
type,
if (!type || id < 0)
return -EINVAL;
- return dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ return gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
type, g_variant_new("(i)", id),
#define __APPS_H__
#include <string.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/common.h"
#include "display/poll.h"
#include "display/display-ops.h"
char* health = NULL;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
method, NULL, &reply);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
method, NULL, &reply);
int ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
METHOD_BATTERY_SETLOWBATLEVEL, g_variant_new("(i)", newlevel),
bool ret = FALSE;
char *reply_argv[3];
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
METHOD_BATTERY_GETINFO, NULL, &reply);
power_supply_types[index].current_avg,
power_supply_types[index].temperature);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
POWER_SUBSYSTEM, var, &reply);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
METHOD_BATTERY_GET_POWERSUPPLY, NULL, &reply);
static void start_udev(void)
{
- dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
"udev",
static void stop_udev(void)
{
- dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
"udev",
static int call_display_method_sync(const char *method, GVariant *param)
{
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
method, param, NULL);
bool match_current;
GVariant *reply;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"GetBrightnessInfo", NULL, &reply);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
method, param, &reply);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
method, param, &reply);
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
method, var, &reply);
int reply_val = 0, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_DISPLAY_SETAUTOBRIGHTNESSMIN,
char *ret_req_id;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_DISPLAY_LOCKTIMEOUT_EXPIRED, g_variant_new("(s)", req_id),
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_EXTCON,
DEVICED_INTERFACE_EXTCON,
method,
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
method, NULL, &reply);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_EXTCON,
DEVICED_INTERFACE_EXTCON,
METHOD_EXTCON_GETSTATUS,
GVariant *var = NULL;
if (sig && g_variant_type_is_array(G_VARIANT_TYPE(sig))) {
- var = dbus_handle_make_simple_array(sig, param);
+ var = gdbus_make_simple_array(sig, param);
} else if (!sig && !param) {
var = NULL;
} else {
return FALSE;
}
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_IR,
DEVICED_INTERFACE_IR,
method,
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
METHOD_IR_SETIRCOMMAND,
int val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
method, NULL, &msg);
int val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
method, param, &msg);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_POWEROFF,
DEVICED_INTERFACE_POWEROFF,
method,
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
METHOD_SYSNOTI_GETREVISION, NULL, &reply);
#include <stdarg.h>
#include <errno.h>
#include <sys/stat.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include <device-error.h>
#include <device/booting-internal.h>
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Tzip",
"org.tizen.system.deviced.Tzip",
"IsMounted",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Tzip",
"org.tizen.system.deviced.Tzip",
"UnmountSync",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Tzip",
"org.tizen.system.deviced.Tzip",
"MountSync",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Tzip",
"org.tizen.system.deviced.Tzip",
"Unmount",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Tzip",
"org.tizen.system.deviced.Tzip",
"Mount",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/ExtCon",
"org.tizen.system.deviced.ExtCon",
"disable",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/ExtCon",
"org.tizen.system.deviced.ExtCon",
"enable",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/ExtCon",
"org.tizen.system.deviced.ExtCon",
"GetStatus",
{
int ret_dbus;
GVariant *reply;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/UsbHostTest",
"org.tizen.system.deviced.UsbHostTest",
"stop",
{
int ret_dbus;
GVariant *reply;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/UsbHostTest",
"org.tizen.system.deviced.UsbHostTest",
"start",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/LowPower",
"org.tizen.system.deviced.lowpower",
"GetState",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/LowPower",
"org.tizen.system.deviced.lowpower",
"Stop",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/LowPower",
"org.tizen.system.deviced.lowpower",
"Start",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Ir",
"org.tizen.system.deviced.ir",
"TransmitIR",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Ir",
"org.tizen.system.deviced.ir",
"IRIsAvailable",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PowerOff",
"org.tizen.system.deviced.PowerOff",
"RemovePowerOffWait",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PowerOff",
"org.tizen.system.deviced.PowerOff",
"AddPowerOffWait",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PowerOff",
"org.tizen.system.deviced.PowerOff",
"PowerOffWithOption",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PowerOff",
"org.tizen.system.deviced.PowerOff",
"PowerOff",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"MiscEvent",
{
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"BatteryProperties",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"ChargerCharging",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"ChargerType",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"GetBatteryInfo",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"power_supply",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"GetHealth",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"IsFull",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"GetPercentRaw",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"GetPercent",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"BatteryStatusLow",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"ChargeNow",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"ChargerStatus",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"GetLowbatLevel",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"SetLowbatLevel",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"TimeToEmpty",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Battery",
"org.tizen.system.deviced.Battery",
"TimeToFull",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Temperature",
"org.tizen.system.deviced.temperature",
"GetTemperature",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/BatteryMonitor",
"org.tizen.system.deviced.BatteryMonitor",
"GetBMData",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Core",
"org.tizen.system.deviced.core",
"DeviceList",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usbhost",
"org.tizen.system.deviced.Usbhost",
"OpenDevice",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usbhost",
"org.tizen.system.deviced.Usbhost",
"GetDeviceListCount",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usbhost",
"org.tizen.system.deviced.Usbhost",
"GetDeviceList",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usbhost",
"org.tizen.system.deviced.Usbhost",
"PrintPolicy",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usbhost",
"org.tizen.system.deviced.Usbhost",
"PrintDeviceList",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usb",
"org.tizen.system.deviced.Usb",
"GetMode",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Usb",
"org.tizen.system.deviced.Usb",
"GetState",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"GetHDMI",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"GetCradle",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"set_timezone",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"set_datetime",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"GetRevision",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"udev",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"EventStop",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"EventStart",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"getcontrol",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/SysNoti",
"org.tizen.system.deviced.SysNoti",
"control",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Led",
"org.tizen.system.deviced.Led",
"SetIrCommand",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Led",
"org.tizen.system.deviced.Led",
"SetBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Led",
"org.tizen.system.deviced.Led",
"GetMaxBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Led",
"org.tizen.system.deviced.Led",
"GetBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Led",
"org.tizen.system.deviced.Led",
"GetBrightnessForCamera",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"LockTimeoutInput",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"LockTimeoutExpired",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"CurrentBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"CustomBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"ActorControl",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"LCDPanelOffMode",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"StayTouchScreenOff",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"PlatformLCDControl",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"CustomLCDOff",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"CustomLCDOn",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"PowerKeyLCDOff",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"PowerKeyIgnore",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"SaveLog",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"Dumpmode",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"SetRefreshRate",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"ReleaseBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"HoldBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"SetBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"GetBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"SetMaxBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"GetMaxBrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"GetDisplayCount",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"LockScreenBgOn",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"setlcdtimeout",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"setautobrightnessmin",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"setframerate",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"setbrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"getbrightness",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"ChangeState",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"changestate",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"unlockstate",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"lockstate",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"stop",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Display",
"org.tizen.system.deviced.display",
"start",
{
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Board",
"org.tizen.system.deviced.Board",
"GetNum",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Board",
"org.tizen.system.deviced.Board",
"GetHWRev",
{
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/Board",
"org.tizen.system.deviced.Board",
"GetSerial",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"MyfilesScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CallLogScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"TizenStoreScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ContactScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"EmailScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"VideoScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"FileScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"MusicScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"UgLaunch",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"SensorWakeup",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"WebAppFlick",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"WebAppDrag",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"PowerOff",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"WifiThroughput",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"WebappLaunch",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"SVoice",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"SmemoZoom",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ScreenMirroring",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ReservedMode",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ProcessCrashed",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"PowerSaving",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"MusicPlayLcdOn",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"MtpSendFile",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"LowBattery",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"LockScreen",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"IMEInput",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ImageViewer",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"HomeScreen",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GpuWakeup",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GpuBoost",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GpsSerialCno",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GetDefaultLockTime",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GalleryRotation",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"GalleryScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"Emergency",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"ContactSearch",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CameraSoundAndShot",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CameraRecording",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CameraPreview",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CameraCaptureAtRec",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CameraBurstShot",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"CallSound",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"BrowserScroll",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"BrowserLoading",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"BrowserJavaScript",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"BrowserDash",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"Browser",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"BeautyShot",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"AppLaunchHome",
GVariant *reply;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
+ ret_dbus = gdbus_call_sync_with_reply("org.tizen.system.deviced",
"/Org/Tizen/System/DeviceD/PmQos",
"org.tizen.system.deviced.PmQos",
"AppLaunch",
g_variant_unref(reply);
return val1;
-}
\ No newline at end of file
+}
#ifndef __TEST_DBUS_INTERFACE_H__
#define __TEST_DBUS_INTERFACE_H__
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
// headers
gint test_deviced_Tzip_IsMounted(const gchar *param1);
int reply_val, ret_dbus;
bool ret = FALSE;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
method,
GVariant *reply;
int ret = 0, reply_val = 0, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
"udev",
#include <sys/time.h>
#include <unistd.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "battery-monitor.h"
if (!ht_apptime)
_E("Failed to init hash table");
- ret = dbus_handle_add_dbus_object(NULL, DBUS_DEVICED_BM_PATH, &bm_dbus_interface);
+ ret = gdbus_add_object(NULL, DBUS_DEVICED_BM_PATH, &bm_dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
- dbus_sub_id = subscribe_dbus_signal(NULL,
+ dbus_sub_id = gdbus_signal_subscribe(NULL,
"/Org/Tizen/Aul/AppStatus",
"org.tizen.aul.AppStatus",
"AppStatusChange",
{
int ret;
- ret = dbus_handle_unregister_dbus_object(NULL, DBUS_DEVICED_BM_PATH);
+ ret = gdbus_unregister_object(NULL, DBUS_DEVICED_BM_PATH);
if (ret < 0)
_E("Failed to unregister dbus object: %d", ret);
if (dbus_sub_id > 0)
- unsubscribe_dbus_signal(NULL, dbus_sub_id);
+ gdbus_signal_unsubscribe(NULL, dbus_sub_id);
dbus_sub_id = 0;
bm_data_init();
#include <errno.h>
#include "core/common.h"
#include "power-supply.h"
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
struct battery_ops {
char *name;
#include <stdlib.h>
#include <vconf.h>
#include <hal/device/hal-battery.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/common.h"
#include "core/devices.h"
if (!signal)
return;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
signal,
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <bundle.h>
#include <eventsystem.h>
#include <hal/device/hal-battery.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "lowbat-handler.h"
register_notifier(DEVICE_NOTIFIER_BOOTING_DONE, booting_done);
register_notifier(DEVICE_NOTIFIER_POWER_SUPPLY, lowbat_monitor_init);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
str = status;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
sig,
static void health_status_broadcast(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
SIGNAL_TEMP_GOOD,
switch (state) {
case CHARGING_FULL:
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
METHOD_FULL_NOTI_ON,
if (noti_id <= 0)
return -EPERM;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
METHOD_FULL_NOTI_OFF,
int retry;
for (retry = RETRY_MAX; retry > 0; retry--) {
- ret = dbus_handle_method_async_with_reply_var(POPUP_BUS_NAME,
+ ret = gdbus_call_async_with_reply(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
METHOD_CHARGE_NOTI_ON,
snprintf(sig_old, sizeof(sig_old), "%s", sig);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_BATTERY,
DEVICED_INTERFACE_BATTERY,
sig,
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Process(%d) does not exist, dbus ignored.", pid);
ret = -ESRCH;
register_notifier(DEVICE_NOTIFIER_BOOTING_DONE, booting_done);
register_notifier(DEVICE_NOTIFIER_EVENT_HANDLER, event_handler_state_changed);
- ret_dbus = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
+ ret_dbus = gdbus_add_object(NULL, DEVICED_PATH_BATTERY, &dbus_interface);
if (ret_dbus < 0)
_E("Failed to init dbus method: %d", ret_dbus);
*/
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/devices.h"
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_BOARD, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_BOARD, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
#include <assert.h>
#include <sys/types.h>
#include <dd-control.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/common.h"
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Process(%d) does not exist. Dbus ignored.", pid);
ret = -ESRCH;
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Process(%d) does not exist. Dbus ignored.", pid);
ret = -ESRCH;
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include "device-notifier.h"
#include "common.h"
#include "core/devices.h"
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
struct device_notifier {
#include <stdio.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "log.h"
#include "common.h"
dev->init(data);
}
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_CORE, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_CORE, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
/* register every objects */
- if (dbus_handle_register_dbus_object_all(NULL) < 0)
+ if (gdbus_register_object_all(NULL) < 0)
_E("Failed to register dbus method: %d", ret);
}
#include <stdio.h>
#include <errno.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "common.h"
#include "devices.h"
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &eh_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &eh_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <sys/reboot.h>
#include <systemd/sd-daemon.h>
#include <glib.h>
-#include <libsyscommon/dbus-system.h>
-#include <libsyscommon/systemd-state.h>
+#include <libsyscommon/libgdbus.h>
+#include <libsyscommon/libsystemd.h>
#include <device/booting-internal.h>
#include <argos.h>
return 0;
}
- handle = dbus_handle_get_connection(G_BUS_TYPE_SYSTEM, FALSE);
+ handle = gdbus_get_connection(G_BUS_TYPE_SYSTEM, FALSE);
if (!handle)
_E("Failed to get dbus connection.");
devices_init(NULL);
- ret = dbus_handle_request_bus_name(handle, DEVICED_BUS_NAME, deviced_dbus_name_acquired, NULL);
+ ret = gdbus_request_name(handle, DEVICED_BUS_NAME, deviced_dbus_name_acquired, NULL);
if (ret <= 0) {
_E("Failed to request bus name.");
- dbus_handle_check_owner_name(NULL, DEVICED_BUS_NAME);
+ gdbus_check_name_owner(NULL, DEVICED_BUS_NAME);
}
signal(SIGTERM, sig_quit);
#include <stdio.h>
#include <errno.h>
#include <assert.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "log.h"
#include <limits.h>
#include <glib.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "core/log.h"
if (val > 0) {
_D("Set pm scenario. Lock %s.", name);
- ret = dbus_handle_method_async_var(PASS_BUS_NAME,
+ ret = gdbus_call_async(PASS_BUS_NAME,
PASS_PATH_PMQOS,
PASS_INTERFACE_PMQOS,
PASS_METHOD_SET_SCENARIO,
goto out;
_I("Booting done.");
- ret = dbus_handle_register_dbus_object_all(NULL);
+ ret = gdbus_register_object_all(NULL);
if (ret < 0)
_E("Failed to register dbus method: %d", ret);
int ret;
/* register dbus methods */
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_PMQOS, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_PMQOS, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <string.h>
#include <errno.h>
#include <fcntl.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <core/common.h>
#include "usb.h"
printf("Start %s device.\n", args[1]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"start",
printf("Stop %s device.\n", args[1]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"stop",
printf("%s (%s %s).\n", args[1], args[2], args[3]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"Dumpmode",
printf("%s (%s %s)!\n", args[1], args[2], args[3]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"changestate",
printf("Save log %s device.\n", args[1]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"SaveLog",
printf("Save dbus name.\n");
- ret_dbus = dbus_handle_method_sync_with_reply_var(DBUS_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DBUS_BUS_NAME,
DBUS_OBJECT_PATH,
DBUS_INTERFACE_NAME,
"ListNames",
printf("%" G_GSIZE_FORMAT " connections.\n", g_variant_iter_n_children(iter));
while (g_variant_iter_loop(iter, "s", &str)) {
- pid = dbus_handle_get_sender_pid(NULL, str);
+ pid = gdbus_get_sender_pid(NULL, str);
get_pname(pid, pname);
printf("%6d %6s %s\n", pid, str, pname);
}
printf("Print %s to dlog.\n", args[1]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"DeviceList",
printf("Enable %s device.\n", args[3]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"enable",
printf("Disable %s device.\n", args[3]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"disable",
printf("Power %s device.\n", args[2]);
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
devices[arg_id].path,
devices[arg_id].iface,
"PowerOff",
#include <stdbool.h>
#include <fcntl.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "util.h"
#include "core.h"
char *signal;
signal = (state == true ? SIGNAL_ALPM_ON : SIGNAL_ALPM_OFF);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
signal,
}
_D("screen : %s", screen);
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (!strncmp(screen, CLOCK_START, strlen(CLOCK_START)))
ambient_start_clock();
vconf_notify_key_changed("db/starter/always_on_display",
ambient_set_condition, NULL);
}
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DEVICED_OBJECT_PATH,
DEVICED_INTERFACE_NAME,
SIGNAL_HOMESCREEN,
if (ret <= 0)
_E("Failed to register signal handler: %d", ret);
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DEVICED_OBJECT_PATH,
DEVICED_INTERFACE_NAME,
SIGNAL_ALPMLCDOFF,
#include <error.h>
#include <stdbool.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <device/display.h>
#include "ambient-mode.h"
display_device_ops->start(CORE_LOGIC_MODE);
out:
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static GVariant *dbus_stop(GDBusConnection *conn,
display_device_ops->stop(CORE_LOGIC_MODE);
out:
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static GVariant *dbus_lockstate(GDBusConnection *conn,
if (!strcmp(state_str, "privilege check"))
goto out;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
if (!strcmp(state_str, "privilege check"))
goto out;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
if (!strcmp(state_str, "privilege check"))
goto out;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
} else
ret = -EINVAL;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Set brightness pid=%d brt=%d ret=%d", pid, brt, ret);
error:
_E("Failed to set vconf value for automatic brightness: %d", vconf_get_ext_errno());
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Hold brightness pid=%d brt=%d ret=%d", pid, brt, ret);
error:
int bat, charger, changed, setting, brt, autobrt, ret = 0;
pid_t pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Release brightness pid=%d", pid);
ret = vconf_get_int(VCONFKEY_SYSMAN_BATTERY_STATUS_LOW, &bat);
}
g_variant_get(param, "(i)", &val);
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
goto error;
}
if (display_info.reset_autobrightness_min) {
- id = dbus_handle_watch_name(sender, display_info.reset_autobrightness_min, NULL, NULL, NULL);
+ id = gdbus_watch_name(sender, display_info.reset_autobrightness_min, NULL, NULL, NULL);
if (id <= 0) {
_E("failed to watch name %s, id %d", sender, id);
//todo: set return value
g_variant_get(param, "(iii)", &on, &dim, &holdkey_block);
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
if (ret) {
_W("fail to set lcd timeout %d by %d", ret, pid);
} else {
- id = dbus_handle_watch_name(sender, reset_lcd_timeout, NULL, NULL, NULL);
+ id = gdbus_watch_name(sender, reset_lcd_timeout, NULL, NULL, NULL);
if (id <= 0) {
_E("failed to watch name %s, id %d", sender, id);
//todo: set return value
GVariant *param, GDBusMethodInvocation *invocation, gpointer user_data)
{
pm_save_logdump();
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static GVariant *dbus_powerkeyignore(GDBusConnection *conn,
int timeout, lcdon_blocked;
pid_t pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Change state to S_LCDON pid=%d", pid);
g_variant_get(param, "(i)", &timeout);
char *reason_str = NULL;
pid_t pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Change state to S_LCDOFF pid=%d", pid);
g_variant_get(param, "(s)", &reason_str);
ret = -EINVAL;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Change state pid=%d state=%s reason=%s ret=%d", pid, state, reason, ret);
g_free(reason);
int val;
pid_t pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Stay touchscreen off pid=%d", pid);
g_variant_get(param, "(i)", &val);
int val;
pid_t pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
_I("Set lcd panel off mode pid=%d", pid);
g_variant_get(param, "(i)", &val);
g_variant_get(param, "(s)", &req_id);
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("%d process does not exist, dbus ignored!", pid);
ret = -ESRCH;
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (dimstay) {
_I("Set DIM_FLAG pid=%d", pid);
set_pm_status_flag(DIM_FLAG);
display_add_actor(&display_api_actor);
display_add_actor(&display_gesture_actor);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_DISPLAY, &dbus_interface);
if (ret < 0)
_E("fail to init dbus method(%d)", ret);
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
AUL_APPSTATUS_PATH,
AUL_APPSTATUS_INTERFACE,
APP_CHANGE_STATE,
if (ret <= 0)
_E("Failed to register signal handler: %d", ret);
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
AUL_APPSTATUS_PATH,
AUL_APPSTATUS_INTERFACE,
APP_TERMINATED,
CRITICAL_LOG("%s(%d) has held %s lock for a long time(%.0f s).",
appid ? appid : "NULL", pid, state_st(state)->name + 2, diff);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"pmlock_expired",
return G_SOURCE_REMOVE;
}
- ret = dbus_handle_method_async_with_reply_var(RESOURCED_BUS_NAME,
+ ret = gdbus_call_async_with_reply(RESOURCED_BUS_NAME,
RESOURCED_PATH_PROCESS,
RESOURCED_INTERFACE_PROCESS,
METHOD_APP_STATUS,
if (diff > LOCK_TIME_WARNING) {
if (diff > LOCK_TIME_WARNING * 60 && n->pid < INTERNAL_LOCK_BASE && n->broadcast_warning) {
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"pmlock_over",
pmstate_suspend = PM_SUSPEND;
now = clock_gettime_to_long();
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"sleep",
pmstate_suspend = PM_WAKEUP;
now = clock_gettime_to_long();
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
"wakeup",
signal = lcdon_sig_lookup[type];
_I("lcdstep : Broadcast signal(%s:%s).", signal, str);
- ret = dbus_handle_emit_dbus_signal_sync(NULL,
+ ret = gdbus_signal_emit_sync(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
signal,
str = disp_plgn->device_flags_to_string(flags);
_I("lcdstep : Broadcast signal(%s).", signal);
- ret = dbus_handle_emit_dbus_signal_sync(NULL,
+ ret = gdbus_signal_emit_sync(NULL,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
signal,
return;
/* Send dbus signal to resourced */
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
RESOURCED_PATH_PROCESS,
RESOURCED_INTERFACE_PROCESS,
RESOURCED_METHOD_ACTIVE,
#define __DISPLAY_SIGNAL_H__
#include <time.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "util.h"
#include "core/devices.h"
#define __PM_POLL_H__
#include <glib.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
/**
* @addtogroup POWER_MANAGER
* @{
#include "core/log.h"
#include "core/common.h"
#include "core/devices.h"
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#define SERVICE_NAME "deviced"
pid = getpid();
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DUMP_SERVICE_OBJECT_PATH,
DUMP_SERVICE_INTERFACE_NAME,
signal,
int ret;
/* register dump signal */
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DUMP_SERVICE_OBJECT_PATH,
DUMP_SERVICE_INTERFACE_NAME,
DUMP_SIGNAL,
#include <stdio.h>
#include <vconf.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/device-notifier.h"
_I("Broadcast cradle status(%d).", status);
old = status;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
SIGNAL_CRADLE_STATE,
register_notifier(DEVICE_NOTIFIER_LCD, display_changed);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
_I("Broadcast earjack status(%d).", status);
old = status;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
SIGNAL_EARJACK_STATE,
#include <stdio.h>
#include <hal/device/hal-external_connection.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/ini-parser.h>
#include "core/log.h"
if (dev->enabled == false && strncmp(name, "USB", strlen("USB")) == 0) {
if (status > 0) {
snprintf(buf, BUF_MAX, "usb-client");
- ret_dbus = dbus_handle_method_sync_var(DEVICEMANAGER_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICEMANAGER_BUS_NAME,
DEVICEMANAGER_PATH_POPUP,
DEVICEMANAGER_INTERFACE_POPUP,
METHOD_SYSPOPUP_SHOW,
return -ENODEV;
snprintf(buf, BUF_MAX, "usb-client");
- ret_dbus = dbus_handle_method_sync_var(DEVICEMANAGER_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICEMANAGER_BUS_NAME,
DEVICEMANAGER_PATH_POPUP,
DEVICEMANAGER_INTERFACE_POPUP,
METHOD_SYSPOPUP_SHOW,
event_handler_state_changed((void *)&state);
- ret_dbus = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_EXTCON, &dbus_interface);
+ ret_dbus = gdbus_add_object(NULL, DEVICED_PATH_EXTCON, &dbus_interface);
if (ret_dbus < 0)
_E("Failed to init dbus method: %d", ret_dbus);
#include <vconf.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "core/log.h"
#include "core/bitmap.h"
_I("Broadcast hdmi status(%d)", status);
old = status;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
SIGNAL_HDMI_STATE,
register_notifier(DEVICE_NOTIFIER_LCD, display_changed);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <assert.h>
#include <stdbool.h>
#include <hal/device/hal-ir.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/devices.h"
#include "core/common.h"
#include "core/log.h"
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_IR, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_IR, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_LED, &dbus_interface_legacy);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_LED, &dbus_interface_legacy);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <stdio.h>
#include <unistd.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
return 0;
}
- ret_dbus = dbus_handle_method_sync_var(POPUP_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(POPUP_BUS_NAME,
POPUP_PATH_NOTI,
POPUP_INTERFACE_NOTI,
METHOD_TORCH_NOTI_ON,
return 0;
}
- ret_dbus = dbus_handle_method_sync_var(POPUP_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(POPUP_BUS_NAME,
POPUP_PATH_LED,
POPUP_INTERFACE_LED,
METHOD_TORCH_NOTI_OFF,
#include <vconf.h>
#include <hal/device/hal-led.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "core/log.h"
g_variant_get(param, "(iiuu)", &on, &off, &color, &flags);
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Sender(%d) does not exist.", pid);
ret = -EINVAL;
pid_t pid;
static pid_t old_pid;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Sender(%d) does not exist.", pid);
ret = -EINVAL;
static pid_t old_pid;
struct led_state state;
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Sender(%d) does not exist.", pid);
ret = -EINVAL;
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_LED, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_LED, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <assert.h>
#include <vconf.h>
#include <hal/device/hal-led.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/devices.h"
{
int ret;
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
SIGNAL_FLASH_STATE,
int ret;
/* init dbus interface */
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_LED, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_LED, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
#include <stdio.h>
#include <vconf.h>
#include <hal/device/hal-led.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/devices.h"
#include <vconf.h>
#include <vconf-keys.h>
#include <limits.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "dd-deviced.h"
#include "deviced-priv.h"
GVariant *reply;
int reply_val, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_PROCESS,
DEVICED_INTERFACE_PROCESS,
type,
GVariant *reply;
int reply_val, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_POWEROFF,
DEVICED_INTERFACE_POWEROFF,
"PowerOff",
if (ret_val != 0)
snprintf(name, sizeof(name), "%d", pid);
- ret_val = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_val = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
type,
snprintf(name, sizeof(name), "%d", pid);
_SI("[%s]start %s %ld.", name, ALARM_INTERFACE_NAME, timet);
- ret_val = dbus_handle_method_sync_with_reply_var(ALARM_BUS_NAME,
+ ret_val = gdbus_call_sync_with_reply(ALARM_BUS_NAME,
ALARM_PATH_NAME,
ALARM_INTERFACE_NAME,
ALARM_SET_TIME_METHOD,
GVariant *reply;
int reply_val, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_SYSNOTI,
DEVICED_INTERFACE_SYSNOTI,
type,
#include <stdio.h>
#include <errno.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "log.h"
#include "common.h"
{
int reply, ret_dbus;
- ret_dbus = dbus_handle_method_sync_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_GET_MAX_BRIGHTNESS,
if (val < 0 || val > 100)
return -EINVAL;
- ret = dbus_handle_method_async_var(DEVICED_BUS_NAME,
+ ret = gdbus_call_async(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_SET_BRIGHTNESS,
if (!lcd_str)
return -EINVAL;
- ret = dbus_handle_method_async_with_reply_var(DEVICED_BUS_NAME,
+ ret = gdbus_call_async_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_CHANGE_STATE,
p = STR_NULL;
pa[2] = p;
- ret = dbus_handle_method_async_with_reply_var(DEVICED_BUS_NAME,
+ ret = gdbus_call_async_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_LOCK_STATE,
}
pa[1] = p;
- ret = dbus_handle_method_async_with_reply_var(DEVICED_BUS_NAME,
+ ret = gdbus_call_async_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_DISPLAY,
DEVICED_INTERFACE_DISPLAY,
METHOD_UNLOCK_STATE,
#include <fcntl.h>
#include <dlfcn.h>
#include <vconf.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "log.h"
#include "dd-haptic.h"
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "log.h"
#include "common.h"
int reply_val = 0;
int ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
METHOD_GET_BRIGHTNESS,
GVariant *reply = NULL;
int reply_val, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
METHOD_GET_MAX_BRIGHTNESS,
GVariant *reply = NULL;
int reply_val, ret_dbus;
- ret_dbus = dbus_handle_method_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_LED,
DEVICED_INTERFACE_LED,
METHOD_SET_BRIGHTNESS,
#include <stdio.h>
#include <errno.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "log.h"
handler->name = name;
handler->action = action;
handler->data = data;
- handler->id = subscribe_dbus_signal(NULL, path, iface, name, cb, NULL, NULL);
+ handler->id = gdbus_signal_subscribe(NULL, path, iface, name, cb, NULL, NULL);
if (!handler->id) {
_E("Failed to add dbus handler.");
ret = -1;
SYS_G_LIST_FOREACH_SAFE(handlers, n, next, handler) {
SYS_G_LIST_REMOVE(handlers, handler);
if (handler->id) {
- unsubscribe_dbus_signal(NULL, handler->id);
+ gdbus_signal_unsubscribe(NULL, handler->id);
handler->id = 0;
}
API int request_usb_storage_info(void)
{
int reply, ret_dbus;
- ret_dbus = dbus_handle_method_sync_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
METHOD_REQUEST_STORAGE_INFO_ALL,
if (handler->id == 0)
continue;
- unsubscribe_dbus_signal(NULL, handler->id);
+ gdbus_signal_unsubscribe(NULL, handler->id);
SYS_G_LIST_REMOVE(handlers, handler);
free(handler);
}
if (handler->action.device != device_changed)
continue;
- unsubscribe_dbus_signal(NULL, handler->id);
+ gdbus_signal_unsubscribe(NULL, handler->id);
SYS_G_LIST_REMOVE(handlers, handler);
free(handler);
}
if (!path)
return -1;
- ret_dbus = dbus_handle_method_sync_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
METHOD_REQUEST_STORAGE_MOUNT,
if (!path)
return -1;
- ret_dbus = dbus_handle_method_sync_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
METHOD_REQUEST_STORAGE_UNMOUNT,
if (!path)
return -1;
- ret_dbus = dbus_handle_method_sync_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
METHOD_REQUEST_STORAGE_FORMAT,
if (!out_fd || !path)
return -EINVAL;
- ret_dbus = dbus_handle_method_with_unix_fd_list_sync_with_reply_var(DEVICED_BUS_NAME,
+ ret_dbus = gdbus_call_unix_fd_list_sync_with_reply(DEVICED_BUS_NAME,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
METHOD_OPEN_DEVICE,
*/
#include <getopt.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <stdio.h>
#include <stdbool.h>
#include <core/common.h>
int call_deviced_poweroff(const char *type, const char *extra_option, const char *message)
{
int ret_dbus = extra_option
- ? dbus_handle_method_sync_var(DEVICED_BUS_NAME, DEVICED_PATH_POWEROFF, DEVICED_INTERFACE_POWEROFF, "PowerOffWithOption", g_variant_new("(ss)", type, extra_option), NULL)
- : dbus_handle_method_sync_var(DEVICED_BUS_NAME, DEVICED_PATH_POWEROFF, DEVICED_INTERFACE_POWEROFF, "PowerOff", g_variant_new("(s)", type), NULL)
+ ? gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME, DEVICED_PATH_POWEROFF, DEVICED_INTERFACE_POWEROFF, "PowerOffWithOption", g_variant_new("(ss)", type, extra_option), NULL)
+ : gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME, DEVICED_PATH_POWEROFF, DEVICED_INTERFACE_POWEROFF, "PowerOff", g_variant_new("(s)", type), NULL)
;
if (ret_dbus < 0) {
fprintf(stderr, "Error: %d", ret_dbus);
#include <unistd.h>
#include <bundle.h>
#include <eventsystem.h>
-#include <libsyscommon/dbus-system.h>
-#include <libsyscommon/dbus-systemd.h>
-#include <libsyscommon/systemd-state.h>
+#include <libsyscommon/libgdbus.h>
+#include <libsyscommon/libsystemd.h>
#include "core/log.h"
#include "core/device-notifier.h"
void remove_booting_done_handler(void *data)
{
- unsubscribe_dbus_signal(NULL, sig_id[0]);
- unsubscribe_dbus_signal(NULL, sig_id[1]);
+ gdbus_signal_unsubscribe(NULL, sig_id[0]);
+ gdbus_signal_unsubscribe(NULL, sig_id[1]);
}
static void booting_done_received(GDBusConnection *conn,
{
/* System Session is loaded completely */
/*ret = */
- sig_id[0] = subscribe_dbus_signal(NULL,
+ sig_id[0] = gdbus_signal_subscribe(NULL,
SYSTEMD_DBUS_PATH,
SYSTEMD_DBUS_IFACE_MANAGER,
SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED,
_E("Failed to init dbus signal(%s).", SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED);
/* User Session is loaded completely */
- sig_id[1] = subscribe_dbus_signal(NULL,
+ sig_id[1] = gdbus_signal_subscribe(NULL,
SYSTEMD_DBUS_PATH,
SYSTEMD_DBUS_IFACE_MANAGER,
SYSTEMD_DBUS_SIGNAL_USER_STARTUP_FINISHED,
{
int ret = 0;
- ret = dbus_handle_method_async_var(PASS_BUS_NAME,
+ ret = gdbus_call_async(PASS_BUS_NAME,
PASS_PATH_PMQOS,
PASS_INTERFACE_PMQOS,
PASS_METHOD_SET_SCENARIO,
#include <assert.h>
#include <errno.h>
#include <dlfcn.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/devices.h"
return ret;
if (type == VITAL_SLEEP) {
- dbus_handle_method_sync_with_reply_var_timeout(RESOURCED_BUS_NAME,
+ gdbus_call_sync_with_reply_timeout(RESOURCED_BUS_NAME,
RESOURCED_PATH_FREEZER,
RESOURCED_INTERFACE_FREEZER,
"SetSuspend",
SET_SUSPEND_TIME*1000);
vital_sleep = true;
} else if (type == VITAL_WAKEUP) {
- ret = dbus_handle_method_async_var(RESOURCED_BUS_NAME,
+ ret = gdbus_call_async(RESOURCED_BUS_NAME,
RESOURCED_PATH_FREEZER,
RESOURCED_INTERFACE_FREEZER,
"SetSuspend",
g_variant_new("(s)", "wakeup"));
} else if (type == VITAL_EXIT) {
- ret = dbus_handle_method_async_var(RESOURCED_BUS_NAME,
+ ret = gdbus_call_async(RESOURCED_BUS_NAME,
RESOURCED_PATH_FREEZER,
RESOURCED_INTERFACE_FREEZER,
"SetSuspend",
#include <stdbool.h>
#include <signal.h>
#include <systemd/sd-daemon.h>
-#include <libsyscommon/dbus-system.h>
-#include <libsyscommon/dbus-systemd.h>
+#include <libsyscommon/libgdbus.h>
+#include <libsyscommon/libsystemd.h>
#include <libsyscommon/ini-parser.h>
#include "dd-deviced.h"
static void poweroff_notify_resourced(void)
{
_I("Request to stop systemd service to resourced.");
- dbus_handle_method_sync_with_reply_var_timeout(RESOURCED_BUS_NAME,
+ gdbus_call_sync_with_reply_timeout(RESOURCED_BUS_NAME,
RESOURCED_PATH_PROCESS,
RESOURCED_INTERFACE_PROCESS,
"PrePoweroff",
}
CRITICAL_LOG("Requested %s via systemd.", method);
- dbus_handle_method_sync_with_reply_var_timeout(SYSTEMD_DBUS_DEST,
+ gdbus_call_sync_with_reply_timeout(SYSTEMD_DBUS_DEST,
SYSTEMD_DBUS_PATH,
SYSTEMD_DBUS_IFACE_MANAGER,
method,
old = status;
/* Need to notify to deviced-vibrator. deviced-vibrator receives ChangeState signal for POWEROFF_TYPE_DIRECT and POWEROFF_TYPE_RESTART */
- ret_dbus = dbus_handle_emit_dbus_signal(NULL,
+ ret_dbus = gdbus_signal_emit(NULL,
DEVICED_PATH_POWEROFF,
DEVICED_INTERFACE_POWEROFF,
SIGNAL_POWEROFF_STATE,
return -EINVAL;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Process(%d) does not exist, dbus ignored.", pid);
return -ESRCH;
int ret_val;
/* init dbus interface */
- ret_val = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_POWEROFF, &dbus_interface);
+ ret_val = gdbus_add_object(NULL, DEVICED_PATH_POWEROFF, &dbus_interface);
if (ret_val < 0)
_E("Failed to init dbus method: %d", ret_val);
#include <fcntl.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/log.h"
#include "core/devices.h"
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
#include <stdbool.h>
#include <hal/device/hal-thermal.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "apps/apps.h"
#include "core/devices.h"
if (ret < 0)
_E("Failed to register booting done notifier.");
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_TEMPERATURE, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_TEMPERATURE, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
}
#include <linux/rtc.h>
#include <fcntl.h>
#include <sys/timerfd.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <dlfcn.h>
#include "core/log.h"
static void time_changed_broadcast(void)
{
- dbus_handle_emit_dbus_signal(NULL,
+ gdbus_signal_emit(NULL,
DEVICED_PATH_TIME, DEVICED_INTERFACE_TIME,
TIME_CHANGE_SIGNAL, NULL);
}
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (pid == -1 || kill(pid, 0) == -1) {
_E("Process(%d) does not exist, dbus ignored.", pid);
ret = -ESRCH;
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_SYSNOTI, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <stdbool.h>
#include <vconf.h>
#include <hal/device/hal-touchscreen.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include "core/devices.h"
#include "core/common.h"
_I("Touch sensitivity device structure load success.");
/* init dbus interface */
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_TOUCH, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_TOUCH, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
- ret = subscribe_dbus_signal(NULL,
+ ret = gdbus_signal_subscribe(NULL,
DEVICED_PATH_TOUCH,
DEVICED_INTERFACE_TOUCH,
DISABLE_SENSITIVITY_SIGNAL,
#include <assert.h>
#include <stdbool.h>
#include <hal/device/hal-touchscreen.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <vconf.h>
#include <dlfcn.h>
#include "core/devices.h"
display_conf->touch_wakeup = val;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_TOUCH, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_TOUCH, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method. (%d)", ret);
#include <sys/xattr.h>
#include <linux/limits.h>
#include <tzplatform_config.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "core/log.h"
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (is_app(pid) != 0) {
_E("PID(%d) is not privileged to use tzip.", pid);
ret = -EPERM;
goto out;
}
- pid = dbus_connection_get_sender_pid(conn, sender);
+ pid = gdbus_connection_get_sender_pid(conn, sender);
if (is_app(pid) != 0) {
_E("PID(%d) is not privileged to use tzip.", pid);
ret = -EPERM;
register_notifier(DEVICE_NOTIFIER_BOOTING_DONE, booting_done);
register_notifier(DEVICE_NOTIFIER_POWEROFF, tzip_poweroff);
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_TZIP, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_TZIP, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method: %d", ret);
#include <sys/types.h>
#include <sys/mount.h>
#include <unistd.h>
-#include <libsyscommon/dbus-system.h>
-#include <libsyscommon/dbus-systemd.h>
+#include <libsyscommon/libgdbus.h>
+#include <libsyscommon/libsystemd.h>
#include <libsyscommon/list.h>
#include <libsyscommon/ini-parser.h>
_I("Start");
if (sigid_start) {
- unsubscribe_dbus_signal(NULL, sigid_start);
+ gdbus_signal_unsubscribe(NULL, sigid_start);
sigid_start = 0;
}
/*unregister_dbus_signal_handler(SYSTEMD_DBUS_PATH,
usbg_cleanup(s);
out1:
if (sigid_stop) {
- unsubscribe_dbus_signal(NULL, sigid_stop);
+ gdbus_signal_unsubscribe(NULL, sigid_stop);
sigid_stop = 0;
}
}
goto out;
}
- ret = subscribe_dbus_signal(NULL, SYSTEMD_DBUS_PATH,
+ ret = gdbus_signal_subscribe(NULL, SYSTEMD_DBUS_PATH,
JOB_MANAGER_INTERFACE, JOB_REMOVED,
service_started_handler, NULL, NULL);
if (ret <= 0)
/*unregister_dbus_signal_handler(SYSTEMD_DBUS_PATH,
JOB_MANAGER_INTERFACE, JOB_REMOVED);*/
if (sigid_start) {
- unsubscribe_dbus_signal(NULL, sigid_start);
+ gdbus_signal_unsubscribe(NULL, sigid_start);
sigid_start = 0;
}
goto out;
/*unregister_dbus_signal_handler(SYSTEMD_DBUS_PATH,
JOB_MANAGER_INTERFACE, JOB_REMOVED);*/
if (sigid_start)
- unsubscribe_dbus_signal(NULL, sigid_start);
+ gdbus_signal_unsubscribe(NULL, sigid_start);
return ret;
}
{
int ret = 0;
- ret = subscribe_dbus_signal(NULL, SYSTEMD_DBUS_PATH,
+ ret = gdbus_signal_subscribe(NULL, SYSTEMD_DBUS_PATH,
JOB_MANAGER_INTERFACE, JOB_REMOVED,
service_stopped_handler, NULL, NULL);
if (ret <= 0) {
/*unregister_dbus_signal_handler(SYSTEMD_DBUS_PATH,
JOB_MANAGER_INTERFACE, JOB_REMOVED);*/
if (sigid_stop) {
- unsubscribe_dbus_signal(NULL, sigid_stop);
+ gdbus_signal_unsubscribe(NULL, sigid_stop);
sigid_stop = 0;
}
return ret;
if (ret != 0 && ret != -EALREADY)
_E("Failed to start usb-host-test : %d", ret);
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static GVariant *dbus_stop(GDBusConnection *conn,
if (ret != 0 && ret != -EALREADY)
_E("Failed to stop usb-host-test : %d", ret);
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static int usb_host_test_start(enum device_flags flags)
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_USB_HOST_TEST, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_USB_HOST_TEST, &dbus_interface);
if (ret < 0) {
_E("Failed to register dbus method! %d", ret);
return;
#include <stdbool.h>
#include <vconf.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <hal/device/hal-usb_gadget-interface.h>
#include "core/log.h"
_I("USB state(%u) changed.", state);
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_USB,
DEVICED_INTERFACE_USB,
SIGNAL_STATE_CHANGED,
{
int ret;
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_USB, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_USB, &dbus_interface);
if (ret < 0)
_E("Failed to init dbus method for USB: %d", ret);
- ret = subscribe_dbus_signal(NULL, DEVICED_PATH_USB,
+ ret = gdbus_signal_subscribe(NULL, DEVICED_PATH_USB,
DEVICED_INTERFACE_USB, "ChangeUsbMode",
change_usb_client_mode, NULL, NULL);
if (ret <= 0) {
#include <vconf.h>
-#include <libsyscommon/dbus-systemd.h>
+#include <libsyscommon/libsystemd.h>
#include <hal/device/hal-usb_gadget.h>
#include <hal/device/hal-usb_gadget-interface.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <tzplatform_config.h>
-#include <libsyscommon/dbus-system.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/list.h>
#include "core/log.h"
(usbhost->product ? usbhost->product : ""),
(usbhost->serial ? usbhost->serial : ""));
- ret = dbus_handle_emit_dbus_signal(NULL,
+ ret = gdbus_signal_emit(NULL,
DEVICED_PATH_USBHOST,
DEVICED_INTERFACE_USBHOST,
SIGNAL_USB_HOST_CHANGED,
print_usbhost(usbhost);
}
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
#define nullstr(x) (x ? x : "")
static GVariant *get_device_list(GDBusConnection *conn,
_I("\t%s", line);
}
- return dbus_handle_new_g_variant_tuple();
+ return gdbus_new_g_variant_tuple();
}
static int store_policy(void)
req->invocation = invocation;
- ret = dbus_handle_get_sender_credentials(NULL, sender, &req->cred);
+ ret = gdbus_get_sender_credentials(NULL, sender, &req->cred);
if (ret < 0) {
_E("Unable to get credentials for caller: %d", ret);
goto out;
_E("Failed to register usb uevent: %d", ret);
/* register usbhost interface and method */
- ret = dbus_handle_add_dbus_object(NULL, DEVICED_PATH_USBHOST, &dbus_interface);
+ ret = gdbus_add_object(NULL, DEVICED_PATH_USBHOST, &dbus_interface);
if (ret < 0)
_E("Failed to register dbus interface and method: %d", ret);
return;
}
- ret = subscribe_dbus_signal(NULL, POPUP_PATH_SYSTEM,
+ ret = gdbus_signal_subscribe(NULL, POPUP_PATH_SYSTEM,
POPUP_INTERFACE_SYSTEM, USB_HOST_RESULT_SIGNAL,
popup_result_signal_handler, NULL, NULL);
if (ret < 0) {