- 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 uint32 GetLocalDeviceCount();
|
||||
|
||||
static LocalDevice* GetLocalDevice(hci_id hid);
|
||||
static LocalDevice* GetLocalDevice(bdaddr_t bdaddr);
|
||||
static LocalDevice* GetLocalDevice(const hci_id hid);
|
||||
static LocalDevice* GetLocalDevice(const bdaddr_t bdaddr);
|
||||
|
||||
DiscoveryAgent* GetDiscoveryAgent();
|
||||
BString GetFriendlyName();
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
LocalDevice* GetLocalDeviceOwner();
|
||||
|
||||
RemoteDevice(const BString& address);
|
||||
RemoteDevice(bdaddr_t address);
|
||||
RemoteDevice(const bdaddr_t address);
|
||||
|
||||
protected:
|
||||
/* called by Discovery[Listener|Agent] */
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <bluetooth/bluetooth_error.h>
|
||||
|
||||
#include <bluetooth/HCI/btHCI_command.h>
|
||||
@@ -65,7 +63,7 @@ LocalDevice::GetLocalDevice()
|
||||
|
||||
|
||||
LocalDevice*
|
||||
LocalDevice::GetLocalDevice(hci_id hid)
|
||||
LocalDevice::GetLocalDevice(const hci_id hid)
|
||||
{
|
||||
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
||||
request.AddInt32("hci_id", hid);
|
||||
@@ -75,7 +73,7 @@ LocalDevice::GetLocalDevice(hci_id hid)
|
||||
|
||||
|
||||
LocalDevice*
|
||||
LocalDevice::GetLocalDevice(bdaddr_t bdaddr)
|
||||
LocalDevice::GetLocalDevice(const bdaddr_t bdaddr)
|
||||
{
|
||||
|
||||
BMessage request(BT_MSG_ACQUIRE_LOCAL_DEVICE);
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <bluetooth/DiscoveryAgent.h>
|
||||
#include <bluetooth/DiscoveryListener.h>
|
||||
#include <bluetooth/bdaddrUtils.h>
|
||||
@@ -23,7 +21,6 @@
|
||||
#include "KitSupport.h"
|
||||
|
||||
|
||||
|
||||
namespace Bluetooth {
|
||||
|
||||
|
||||
@@ -159,7 +156,7 @@ RemoteDevice::SetLocalDeviceOwner(LocalDevice* ld)
|
||||
|
||||
|
||||
/* Constructor */
|
||||
RemoteDevice::RemoteDevice(bdaddr_t address)
|
||||
RemoteDevice::RemoteDevice(const bdaddr_t address)
|
||||
{
|
||||
fBdaddr = address;
|
||||
fMessenger = _RetrieveBluetoothMessenger();
|
||||
|
||||
Reference in New Issue
Block a user