Ticket #553 (new defect)
Add ability to call methods without doing introspection
| Reported by: | hrw | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | cornucopia/mdbus2 | Version: | milestone5.5 |
| Keywords: | Cc: |
Description
Maemo5 has objects which do not have introspection interface available. "dbus-send" allows to call methods on them, but mdbus2 fails:
Nokia-N900-:~# dbus-send --system --type=method_call --dest=com.nokia.phone.net --print-reply /com/nokia/phone/net Phone.Net.get_current_cell_info method return sender=:1.17 -> dest=:1.2740 reply_serial=2 byte 1 uint16 41007 uint32 31621 uint32 1 uint32 260 byte 0 byte 0 int32 0 Nokia-N900-:~# mdbus2 -s com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_current_cell_info [ERR]: object /com/nokia/phone/SIM doesn't have interface org.freedesktop.DBus.Introspectable [ERR]: object /com/nokia/phone/net doesn't have interface org.freedesktop.DBus.Introspectable [ERR]: object /com/nokia/phone/net doesn't have interface org.freedesktop.DBus.Introspectable Nokia-N900-:~#
Would be nice to have such option.
Change History
comment:2 Changed 3 years ago by mickey
First part of this is now implemented. Calling a method without parameters skips introspection:
Author: Michael 'Mickey' Lauer <mickey@…> Date: Tue Jun 1 20:41:37 2010 +0200
mdbus2: skip introspecting before calling a method, when method no parameters are given. Partly closes FSO #553
Note: See
TracTickets for help on using
tickets.

Calling methods without relying to introspection would mean that you have to specify the signature (which is what dbus-send requires, but which i often find cumbersome) -- perhaps we should make this an optional argument which is being used, when there is no introspection data available.