Iain Hibbert wrote:
On Tue, 4 Nov 2008, Guido Falsi wrote:
Guido Falsi wrote:
As I said, that was my mistake. Anyway I thank you a lot because you gave me
the idea where to look for mistakes. I should be able to get gnokii to work
now. Thank you a lot again!
I've just submitted a PR for the gnokii port. If someone feels like checking
my work(it does need checking I think) it's here:
The attribute ID list should be in ascending order according to the
specification. This means though that some logic could be wrong because
the protocol descriptor list for any given service class would likely
appear before the service name in the response attribute list and you
would use the wrong channel..
Uhm, I did not get this detail in the specification.
probably you should do it like:
channel = -1;
switch (attribute) {
case PROTOCOL_DESCRIPTOR_LIST
channel = <...>;
break;
case SERVICE_NAME
if (channel == -1)
break;
str = <...>;
if (strncmp(str, "...")) {
channel = -1;
break;
}
return success;
}
?
I'll check it.
also, instead of providing two calls to the find_service_channel()
function, just put
#ifdef SDP_SERVICE_CLASS_SERIAL_PORT
#define SERIAL_PORT_SVCLASS_ID SDP_SERVICE_CLASS_SERIAL_PORT
#endif
at the top which cuts down on unreadable alternatives?
Gnokii author also required this before importing the patch upstream, so
I've already fixed this.
The original software also has some glue functions put there for
compatibility which are not needed, so I'm going to remove them.
can you or Maksim confirm FreeBSD has always had(expecially in 6.x)
bt_aton(), str2ba() and bacpy() ?
--
Guido Falsi <[EMAIL PROTECTED]>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth
To unsubscribe, send any mail to "[EMAIL PROTECTED]"