btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / kits / bluetooth / KitSupport.cpp
blobda9eef11360d251b046710525f992a7af9da714f
1 /*
2 * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
4 * All rights reserved. Distributed under the terms of the MIT License.
6 */
7 #include <bluetooth/bluetooth.h>
8 #include <bluetooth/DiscoveryAgent.h>
9 #include <bluetooth/debug.h>
11 #include <bluetoothserver_p.h>
13 #include "KitSupport.h"
15 BMessenger* _RetrieveBluetoothMessenger(void)
17 CALLED();
18 // Fix/review: leaking memory here
19 BMessenger* fMessenger = new BMessenger(BLUETOOTH_SIGNATURE);
21 if (fMessenger == NULL || !fMessenger->IsValid()) {
22 delete fMessenger;
23 return NULL;
24 } else
25 return fMessenger;
29 uint8 GetInquiryTime()
31 CALLED();
32 return BT_DEFAULT_INQUIRY_TIME;
36 void SetInquiryTime(uint8 time)
38 CALLED();
39 ((void)(time));