g_variant_get(parameters, "(ttti)", &prev_state, &next_state, &id, &reason);
- h->state_wait_callback(prev_state, next_state, id, reason, h->user_data);
+ h->state_wait_callback((unsigned int)prev_state, (unsigned int)next_state, id, reason, h->user_data);
}
static int __register_state_signal_callback(GDBusConnection *connection,
g_variant_get(parameters, "(ttti)", &prev_state, &next_state, &id, &reason);
- h->transient_state_wait_callback(next_state, id, reason, h->user_data);
+ h->transient_state_wait_callback((unsigned int)next_state, id, reason, h->user_data);
}
static int __register_transient_state_signal_callback(GDBusConnection *connection,
retval = -ETIMEDOUT;
_E("Failed to finish async call, %s(%d)", err->message, err->code);
- h->callback(h->state, retval, h->user_data);
+ h->callback((unsigned int)h->state, retval, h->user_data);
goto cleanup;
}
g_variant_get(retgv, "(i)", &retval);
- h->callback(h->state, retval, h->user_data);
+ h->callback((unsigned int)h->state, retval, h->user_data);
cleanup:
if (err)
DEVICED_PATH_POWER,
DEVICED_INTERFACE_POWER,
"PowerChangeState",
- g_variant_new("(t)", state),
+ g_variant_new("(t)", (uint64_t)state),
NULL,
G_DBUS_CALL_FLAGS_NONE,
timeout_sec * 1000,