Help with DBusCall

Matthew Johnson dbus at matthew.ath.cx
Sun Feb 24 15:23:04 PST 2008


On Sun Feb 24 18:56, mohammad rizk wrote:
> I am new to dbus, I downloaded the latest release of dbus-java and tried to
> use the DBusCall function to call a method. if the method does not take
> arguments, I do not face any problem; however i face problems when the
> method takes arguments. I do not know if i am using it in the wrong way or
> there is a bug in the code.
> 
> I am using it in the following way:
> DBusCall org.freedesktop.DBus.Examples.Echo
> /org/freedesktop/DBus/Examples/Echo org.freedesktop.DBus.EchoDemo Hello
> 
> where Hello is the method name, when I append [world] to the above command
> where "world" is a string argument , it starts giving errors like

You need to give it the type signature of the arguments before the
arguments. For example, with a string argument it would be:

   $ DBusCall org.freedesktop.DBus / org.freedesktop.DBus GetNameOwner s ":1.0"
   [:1.0]

Matt

-- 
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080224/274c4a62/attachment.pgp 


More information about the dbus mailing list