}
tizen_base::Bundle result = it->second.GetHandler()->OnRequest(cmd, b);
- reply_body = g_variant_new("(s)", result.ToRaw().first.get());
+ reply_body =
+ g_variant_new("(is)", Command::RESULT, result.ToRaw().first.get());
g_dbus_method_invocation_return_value(invocation, reply_body);
}
" <method name='SendData'>"
" <arg type='i' name='command' direction='in'/>"
" <arg type='s' name='serialized' direction='in'/>"
+ " <arg type='i' name='command' direction='out'/>"
" <arg type='s' name='serialized' direction='out'/>"
" </method>"
" </interface>"
connection_, msg, G_DBUS_SEND_MESSAGE_FLAGS_NONE,
-1, nullptr, nullptr, &err);
GVariant *reply_body = g_dbus_message_get_body(reply);
- char *raw;
- g_variant_get(reply_body, "(s)", &raw);
- tizen_base::Bundle result(raw);
+ int command;
+ char *serialized = nullptr;
+ g_variant_get(reply_body, "(i&s)", &command, &serialized);
+ tizen_base::Bundle result(serialized);
return result;
}