Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Ticket #553 (new defect)

Opened 3 years ago

Last modified 3 years ago

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:1 Changed 3 years ago by mickey

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.

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.