History log of /haiku/src/kits/bluetooth/RemoteDevice.cpp
Revision Date Author Comments
# 19733b44 12-Apr-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

kits/bluetooth: Style cleanup, add additional vendors

Change-Id: I33ac709fe1dc759bf9b98fe94bd1820278ef33d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2471
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# fef016ca 10-Jan-2013 Fredrik Modéen <fredrik@modeen.se>

Adding more debug info to bluetooth.

* more changes will come.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 269ebc04 19-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix #6373, second try
* make BDADDR_* macros refer to value types instead of addresses
* adjust all interfaces using bdaddr_t* to use (mostly const) refs instead,
which IMHO makes the interface & code clearer
* that got rid of a couple of const incorrectness casts
* some cleanup along the way


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38265 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a3bada8 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Jorma Karvonnen with updates by me : localize libbluetooth


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37339 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a5bf1237 14-Jun-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

*Incorrect endianess handling from bdaddr at parsing from string.
*Remove bluetooth_util deprecated header
*Issue conn_req for socket connect() call



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddbc9a0f 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- I expected once Haiku sets a connection with a remote device, such connection
was to expire in a couple of minutes, but not, seems to stay forever.
- Implement a Disconnect button in prefrences&kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37c7d5d8 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

LocalDevice:
- Implement REading of the default timeouts
- Retrieval of all possible LinkKeys stored inside the dongle
- Provided function to force an authentication process with remote devices
RemoteDevice:
- Allow Haiku initiate a fully authenticated connection



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36445 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9068dbf 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change LocalDevice getter for HCI id
- Fix some new some std::nothrow on critical allocations among kit and server
- Some styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3fdaa5bf 21-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Drop R5 compatibility by removing first 4 bytes in the IOCTLs containing the size of the command.
- Implement mechanism GetProperty to retrieve detailed information about the LocalDevice
- Generic BluetoothDevice interface changed and adapted
- Implement ReadLocalVersion to be aware of the bluetooth specification supported by our localdevice



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29639 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33fe7b32 13-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement retrieval of Device Classes.
- Implement DeviceClass for easy analisys of discovered devices's type.
- Make harder the intantiation of RemoteDevices.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28809 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20a51138 04-Aug-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Proper const use
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26802 a95241bf-73f2-0310-859d-f6bbb57e9c96


# af9ccaf2 04-Aug-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Use const reference as input parameter as suggested by julun

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26801 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 585f2ec6 25-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

In some cases the remote name request is never returning us the event containing the name. It fails, the reason could be that the command has some differences in the fields depending on the BT version. This is handling the error code properly in this fail case avoiding the wait.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bfe62f9 02-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Cleapups, Fix memory leaks,

Patch by Mika Lindqvist. Could we give give him Commit access?
I am getting daily patches from him with fixes and new features.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b94e1751 02-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement RemoteDevice contructor by String



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26224 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18dbcd22 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Handle the command status sent before the arrival of a remote name request.
Avoid unhandled event in the bluetooth_server
by Mika Lindqvist



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78163ba3 01-Jul-2008 Rene Gollent <anevilyak@gmail.com>

That should've been eol-style :/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26194 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 24f4a20d 18-Jun-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Add UI classes to the build.
Adding some helper methods to the Local and remote devices



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26011 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd585f3c 21-May-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement/stub the mandatory parent methods from the BluetoothDevice Class



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39399f65 19-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement RemoteDevice::GetFriendlyName() in kit and handle the required reply in the server.
- Now a discovery process is nicer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25053 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b81bac2 16-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change again the api... Strings are not for everything


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2154bbe8 08-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Added copyright



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24867 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d581ede6 30-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implementation of the discovery classes & RemoteDevice
. Support for StartInquiry method



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24699 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fef016caf6d8ecd012f9685144368c4fbdbf7217 10-Jan-2013 Fredrik Modéen <fredrik@modeen.se>

Adding more debug info to bluetooth.

* more changes will come.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 269ebc04b9082e0081f3660bd727d9a6bc4a683d 19-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix #6373, second try
* make BDADDR_* macros refer to value types instead of addresses
* adjust all interfaces using bdaddr_t* to use (mostly const) refs instead,
which IMHO makes the interface & code clearer
* that got rid of a couple of const incorrectness casts
* some cleanup along the way


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38265 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a3bada8dcd6db96a6fad80e79e74286cc8e000a 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Jorma Karvonnen with updates by me : localize libbluetooth


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37339 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a5bf12376daeded4049521eb17a6cc41192250d9 14-Jun-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

*Incorrect endianess handling from bdaddr at parsing from string.
*Remove bluetooth_util deprecated header
*Issue conn_req for socket connect() call



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddbc9a0f2a1f3d8cee26566a6a2f5aaf33cbac24 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- I expected once Haiku sets a connection with a remote device, such connection
was to expire in a couple of minutes, but not, seems to stay forever.
- Implement a Disconnect button in prefrences&kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37c7d5d83a2372a6971e383411d5bacbeef0ebdc 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

LocalDevice:
- Implement REading of the default timeouts
- Retrieval of all possible LinkKeys stored inside the dongle
- Provided function to force an authentication process with remote devices
RemoteDevice:
- Allow Haiku initiate a fully authenticated connection



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36445 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9068dbf95e05818c251ab36f8cb1d8619d2c9be 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change LocalDevice getter for HCI id
- Fix some new some std::nothrow on critical allocations among kit and server
- Some styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3fdaa5bf72a0bb3d751cb7c82a22c09aa2b2af46 21-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Drop R5 compatibility by removing first 4 bytes in the IOCTLs containing the size of the command.
- Implement mechanism GetProperty to retrieve detailed information about the LocalDevice
- Generic BluetoothDevice interface changed and adapted
- Implement ReadLocalVersion to be aware of the bluetooth specification supported by our localdevice



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29639 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33fe7b32dbd27350f238446ce69e4221766f3588 13-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement retrieval of Device Classes.
- Implement DeviceClass for easy analisys of discovered devices's type.
- Make harder the intantiation of RemoteDevices.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28809 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20a5113818c72a1f2d8e39ad9c96288a038c801e 04-Aug-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Proper const use
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26802 a95241bf-73f2-0310-859d-f6bbb57e9c96


# af9ccaf25479a4d3ebcbe01c6a2d8a715d6c1b79 04-Aug-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Use const reference as input parameter as suggested by julun

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26801 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 585f2ec6815f217f3b7ea633366ec94c53acdf0a 25-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

In some cases the remote name request is never returning us the event containing the name. It fails, the reason could be that the command has some differences in the fields depending on the BT version. This is handling the error code properly in this fail case avoiding the wait.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bfe62f9aab2b54ec3704a2fd29d341c8e54dd64 02-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Cleapups, Fix memory leaks,

Patch by Mika Lindqvist. Could we give give him Commit access?
I am getting daily patches from him with fixes and new features.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b94e17518b9d7d4806c81a2c42e9ff89780ef2bc 02-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement RemoteDevice contructor by String



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26224 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18dbcd22a0435edeb9d9a115f807149dcdd6dd36 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Handle the command status sent before the arrival of a remote name request.
Avoid unhandled event in the bluetooth_server
by Mika Lindqvist



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 78163ba34ddc38b7b0320f8f166a90f27e8f26db 01-Jul-2008 Rene Gollent <anevilyak@gmail.com>

That should've been eol-style :/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26194 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 24f4a20d25a51043faab4e1c69ca3ee5d8118625 18-Jun-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Add UI classes to the build.
Adding some helper methods to the Local and remote devices



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26011 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd585f3c8bbecf50d313420b8273728f7272a296 21-May-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement/stub the mandatory parent methods from the BluetoothDevice Class



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39399f65f0111be87adf699f2b43edc5a81ee42d 19-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement RemoteDevice::GetFriendlyName() in kit and handle the required reply in the server.
- Now a discovery process is nicer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25053 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6b81bac2bf0a99844c023b4aa80b07e79fff5f1a 16-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change again the api... Strings are not for everything


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2154bbe8d665e6e47bc7eb3ab31fedde741cd63c 08-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Added copyright



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24867 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d581ede6e216d8348c7c47830b890bc96097f60f 30-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implementation of the discovery classes & RemoteDevice
. Support for StartInquiry method



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24699 a95241bf-73f2-0310-859d-f6bbb57e9c96