Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dbus] Fix introspect data for battery data method calls. JB#37492
Due to copy-pasting config slots from void method, the return type
information did not get included.

Add type information for method call return values.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jan 24, 2017
1 parent e26ce58 commit 6e988ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mce-common.c
Expand Up @@ -377,24 +377,32 @@ static mce_dbus_handler_t common_dbus_handlers[] =
.name = MCE_USB_CABLE_STATE_GET,
.type = DBUS_MESSAGE_TYPE_METHOD_CALL,
.callback = common_dbus_get_usb_cable_state_cb,
.args =
" <arg direction=\"out\" name=\"usb_cable_state\" type=\"s\"/>\n"
},
{
.interface = MCE_REQUEST_IF,
.name = MCE_CHARGER_STATE_GET,
.type = DBUS_MESSAGE_TYPE_METHOD_CALL,
.callback = common_dbus_get_charger_state_cb,
.args =
" <arg direction=\"out\" name=\"charger_state\" type=\"s\"/>\n"
},
{
.interface = MCE_REQUEST_IF,
.name = MCE_BATTERY_STATUS_GET,
.type = DBUS_MESSAGE_TYPE_METHOD_CALL,
.callback = common_dbus_get_battery_status_cb,
.args =
" <arg direction=\"out\" name=\"battery_status\" type=\"s\"/>\n"
},
{
.interface = MCE_REQUEST_IF,
.name = MCE_BATTERY_LEVEL_GET,
.type = DBUS_MESSAGE_TYPE_METHOD_CALL,
.callback = common_dbus_get_battery_level_cb,
.args =
" <arg direction=\"out\" name=\"battery_level\" type=\"i\"/>\n"
},
/* sentinel */
{
Expand Down

0 comments on commit 6e988ad

Please sign in to comment.