- Proper const use
- Styling git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26802 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,8 +28,8 @@ public:
|
|||||||
static LocalDevice* GetLocalDevice();
|
static LocalDevice* GetLocalDevice();
|
||||||
static uint32 GetLocalDeviceCount();
|
static uint32 GetLocalDeviceCount();
|
||||||
|
|
||||||
static LocalDevice* GetLocalDevice(hci_id hid);
|
static LocalDevice* GetLocalDevice(const hci_id hid);
|
||||||
static LocalDevice* GetLocalDevice(bdaddr_t bdaddr);
|
static LocalDevice* GetLocalDevice(const bdaddr_t bdaddr);
|
||||||
|
|
||||||
DiscoveryAgent* GetDiscoveryAgent();
|
DiscoveryAgent* GetDiscoveryAgent();
|
||||||
BString GetFriendlyName();
|
BString GetFriendlyName();
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public:
|
|||||||
LocalDevice* GetLocalDeviceOwner();
|
LocalDevice* GetLocalDeviceOwner();
|
||||||
|
|
||||||
RemoteDevice(const BString& address);
|
RemoteDevice(const BString& address);
|
||||||
RemoteDevice(bdaddr_t address);
|
RemoteDevice(const bdaddr_t address);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/* called by Discovery[Listener|Agent] */
|
/* called by Discovery[Listener|Agent] */
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
* Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
||||||
*
|
* Copyright 2008 Mika Lindqvist, monni1995_at_gmail.com
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <bluetooth/bluetooth_error.h>
|
#include <bluetooth/bluetooth_error.h>
|
||||||
|
|
||||||
#include <bluetooth/HCI/btHCI_command.h>
|
#include <bluetooth/HCI/btHCI_command.h>
|
||||||
@@ -65,7 +63,7 @@ LocalDevice::GetLocalDevice()
|
|||||||
|
|
||||||
|
|
||||||
LocalDevice*
|
LocalDevice*
|
||||||
LocalDevice::GetLocalDevice(hci_id hid)
|
LocalDevice::GetLocalDevice(const hci_id hid)
|
||||||
{
|
{
|
||||||
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
||||||
request.AddInt32("hci_id", hid);
|
request.AddInt32("hci_id", hid);
|
||||||
@@ -75,7 +73,7 @@ LocalDevice::GetLocalDevice(hci_id hid)
|
|||||||
|
|
||||||
|
|
||||||
LocalDevice*
|
LocalDevice*
|
||||||
LocalDevice::GetLocalDevice(bdaddr_t bdaddr)
|
LocalDevice::GetLocalDevice(const bdaddr_t bdaddr)
|
||||||
{
|
{
|
||||||
|
|
||||||
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
* Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
||||||
*
|
* Copyright 2008 Mika Lindqvist, monni1995_at_gmail.com
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <bluetooth/DiscoveryAgent.h>
|
#include <bluetooth/DiscoveryAgent.h>
|
||||||
#include <bluetooth/DiscoveryListener.h>
|
#include <bluetooth/DiscoveryListener.h>
|
||||||
#include <bluetooth/bdaddrUtils.h>
|
#include <bluetooth/bdaddrUtils.h>
|
||||||
@@ -23,7 +21,6 @@
|
|||||||
#include "KitSupport.h"
|
#include "KitSupport.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace Bluetooth {
|
namespace Bluetooth {
|
||||||
|
|
||||||
|
|
||||||
@@ -159,7 +156,7 @@ RemoteDevice::SetLocalDeviceOwner(LocalDevice* ld)
|
|||||||
|
|
||||||
|
|
||||||
/* Constructor */
|
/* Constructor */
|
||||||
RemoteDevice::RemoteDevice(bdaddr_t address)
|
RemoteDevice::RemoteDevice(const bdaddr_t address)
|
||||||
{
|
{
|
||||||
fBdaddr = address;
|
fBdaddr = address;
|
||||||
fMessenger = _RetrieveBluetoothMessenger();
|
fMessenger = _RetrieveBluetoothMessenger();
|
||||||
|
|||||||
Reference in New Issue
Block a user