Return-Path: Message-ID: <2a9506370811192003u1c3d7f27qe50472922b7b33@mail.gmail.com> Date: Thu, 20 Nov 2008 01:03:29 -0300 From: "Vinicius Gomes" To: "Liu, Raymond" In-Reply-To: <0463F45F3606F4428ED35AC8C709F92E0217A025@pdsmsx502.ccr.corp.intel.com> MIME-Version: 1.0 References: <0463F45F3606F4428ED35AC8C709F92E0217A025@pdsmsx502.ccr.corp.intel.com> Cc: "bluez-devel@lists.sourceforge.net" , "johan.hedberg@nokia.com" Subject: Re: [Bluez-devel] could not uses introspect in obexd client for session or ftp from the root path. Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Raymond, On Wed, Nov 19, 2008 at 11:57 PM, Liu, Raymond wrote: > Hi Vinicius > > I am trying to use the obex-client for ftp recent days. > I found that after I call the CreateSession method. The data return by introspect method is not updated in the root path. > Say, I can only use dbus-send --print-reply --dest=org.openobex.client /org/openobex/session0 org.freedesktop.DBus.Introspectable.Introspect to find out the ftp method. Or taking a look at the documentation at doc/client-api.txt ;-) > But dbus-send --print-reply --dest=org.openobex.client / org.freedesktop.DBus.Introspectable.Introspect will not show that there are a /org/openobex node under this path. So it might not be easy for a user to know what kind of interfaces is provided for the whole org.openobex.client service. Since they will not know what's the right node path name. > They will know the right path name, because CreateSession returned it. I find d-feet very useful when I am exploring some app DBus interface. Just be aware that d-feet doesn't like very much the "/" root path, you might find it useful to change the root path (client/main.c:41) to something other than "/" ("/client" for example). Using this trick I was able to verify that the "/org/openobex/session0" node is being added to the bus, it is just not being added as a child of the "/" node, but in parallel to it. > I guess we can add a node, or child field, and a parent field in the generic_data structure, and update these information during the interface register operation, so that the introspect method can show the child node under a certain path? > We really could, but as this way has been working very well for BlueZ, I don't really see this as a bug. > Best Regards, > Raymond Liu > > Cheers, -- Vinicius Gomes INdT - Instituto Nokia de Tecnologia P.S.: http://pastebin.com/m49d7d516 an example ftp test script, it isn't very clean, but it works ;-) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel