Zitat von "Alex Kanavin" <[email protected]>:
> 2010/9/14 Hendrik Sattler <[email protected]>:
>> * Add a new OBEX_QueryInterface() that can do IAS, SDP query or USB setting
>> search. For IAS, it's based on a string, SDP and USB use a 128bit UUID.
>> -> USB enumeration needs to be reworked, then. I already have tested this
>> solution with IAS and SDP (except *BSD). I didn't adapt USB to it.
>> However, the application cannot get a list of ports, it has to know the
>> UUID.
>
> The 128bit UUID feature has been added by latest OBEX-on-USB spec, but
> I haven't yet seen any devices that use it. Enumerate/iterate is still
> the best approach for USB.
>
>> * Let the threee transports be different. Bluetooth behaves like USB.
>> What do you think?
>
> Do we really need BT interface discovery/search API in openobex? I
> think Bluez covers that pretty well, no?
Even Linux(Bluez) and *BSD have a complete different code how to do
this just for bluetooth device enumeration. Windows is also totally
different. The patch[0] is _only_ for HCI enumeration!
SDP is a different beast (again, each a differnt implementation).
That this functionality is kind of needed can be seen in obexftp which
does it's own abstraction layer for this. Any other application either
copies that one or creates its own. That's not good.
For querying a device for services, maybe two functions
int IrOBEX_QueryIAS(uint32_t local, uint32_t remote, const char *service);
which returns a boolean and
int BtOBEX_QuerySDP(const bdaddr *local, const bdaddr_t *remote,
obex_uuid_t uuid);
which returns the channel or -1 would be better that a generic function.
HS
[0]: http://gitorious.org/openobex/mainline/commit/95746f4c
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users