Re: [Vala] complication error: Unbable to serialize a callback(by delegate) for Dbus(using GDBus)




This doesn't make any sense...
Take a look in this example: http://live.gnome.org/Vala/DBusClientSamples/Waiting
This method is a callback when the list of names is ready(because it's asyns method).
Also, it doesn't make any sense that DBus ask the client for the list of addresses...

Date: Wed, 13 Jul 2011 20:17:24 +0100
Subject: Re: [Vala] complication error: Unbable to serialize a callback(by delegate) for Dbus(using GDBus)
From: a kitouni gmail com
To: tal_hd hotmail com
CC: vala-list gnome org

Hello,

2011/7/13 Tal Hadad <tal_hd hotmail com>:

I'm trying to write a client for MPRIS 2.0 specs, and one of my TODO list is to get all Media players 
which activated.
This is done by passing all DBus addresses and check if it's in the format of "org.mpris.MediaPlayer2.*".
For doing this, I need to add callback to method "list_names" in interface "/org/freedesktop/DBus"(which 
I called MasterDBus) in "org.freedesktop.DBus".
This is a relevant part of my code:

[DBus (name = "org.freedesktop.DBus")]
public interface MasterDBus {
   public abstract void list_names (MDBusCallBack cb);

After a quick look at the specification, I think this method takes no
argument and returns a string[]. That's probably the problem.

HTH,
Abderrahim
                                          


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]