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



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]