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

Re: [Vala] dbus-glib-1.vapi Proxy Class



On Mon, 2008-03-17 at 10:50 +0100, Alexander Werle wrote:
> Hi,
> 
> I'm trying to use the 
> 
> "Proxy.for_name (Connection! connection, string! name, string! path,
> string! interface_)" 
> 
> constructor of the Proxy class from dbus-glib-1.vapi. I want to call a
> method from openobex dbus-api.
> This is my code to create the Proxy object:
<snip>
> I can't find "dbus_g_proxy_free" in any of the underlying c code files.
> Has anybody had the same problem and can help me?

Is there a reason you aren't using the built-in Vala syntax for DBus?
eg.
	using OpenOBEX;
	
	[DBusInterface (name = "org.openobex.Manager")]
	interface OpenOBEX.Interface;
	
	DBus.Connection conn = DBus.Bus.get(DBus.BusType.SYSTEM);
	
	OpenOBEX.Interface proxy =
conn.get_object<OpenOBEX.Interface>("org.openobex", "/org/openobex");

And then compiling that the same way that you did your manual version?

- Ethan Osten



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