Skip to contentSkip to conversation

hci_for_each_dev() return value?

Bluez-devel Michal Sojka x 2 participants 2 messages Mar 11, 2006 – Mar 17, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello all,

I'm writing a simple application that uses HCI layer for communication. I have a question on what is the meaning of return value of hci_for_each_dev()? It seems to me that there is a bug, because even when everything goes well, then the return value is -1 and errno is set to ENODEV.

Please CC me when replying. I'm not subscribed to the list.

Regards
Michal Sojka

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Michal,

Quoted 4 lines

I'm writing a simple application that uses HCI layer for communication. I have a question on what is the meaning of return value of hci_for_each_dev()? It seems to me that there is a bug, because even when everything goes well, then the return value is -1 and errno is set to ENODEV.

it returns the dev_id of the first device that return where func() return a non 0 value.

Quoted 1 line

Please CC me when replying. I'm not subscribed to the list.

Then subscibe ;)

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel