Re: could not uses introspect in obexd client for session or ftp from the root path.

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

 



Hi Vinicius
>
>
>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.

OK, I see. However, what if the other one who not want to create the session by themselves. They just want to know is there already a session exist and can be used through Dbus interface? They might probably not read the client-api doc 8 )

>
>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.

Yes, I try it out. It a good tool, Thanks!
However, as you said, it will not recognize the node under "/", I am wondering, is that because we do not provide the introspect info for child node , or just the bad of this tool? So user who use d-feet still could not find our secret interface :)

>
>>        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.

OK, I just think that to support child node info in introspect from the root path might be more friend to the end user. If you think it's ok, it is :)

>
>P.S.: http://pastebin.com/m49d7d516 an example ftp test script,
>it isn't very clean, but it works ;-)

Got it! Thanks. 

Raymond

-------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux