xref: /haiku/src/kits/bluetooth/KitSupport.cpp (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3  *
4  * All rights reserved. Distributed under the terms of the MIT License.
5  *
6  */
7 #include <bluetooth/bluetooth.h>
8 #include <bluetooth/DiscoveryAgent.h>
9 
10 #include <bluetoothserver_p.h>
11 
12 #include "KitSupport.h"
13 
14 BMessenger* _RetrieveBluetoothMessenger(void)
15 {
16 	// Fix/review: leaking memory here
17 	BMessenger* fMessenger = new BMessenger(BLUETOOTH_SIGNATURE);
18 
19 	if (fMessenger == NULL || !fMessenger->IsValid()) {
20 		delete fMessenger;
21 		return NULL;
22 	} else
23 		return fMessenger;
24 }
25 
26 
27 uint8 GetInquiryTime()
28 {
29 	return BT_DEFAULT_INQUIRY_TIME;
30 }
31 
32 
33 void SetInquiryTime(uint8 time)
34 {
35 	((void)(time));
36 }
37 
38