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 #include <bluetooth/debug.h> 10 11 #include <bluetoothserver_p.h> 12 13 #include "KitSupport.h" 14 15 BMessenger* _RetrieveBluetoothMessenger(void) 16 { 17 CALLED(); 18 // Fix/review: leaking memory here 19 BMessenger* fMessenger = new BMessenger(BLUETOOTH_SIGNATURE); 20 21 if (fMessenger == NULL || !fMessenger->IsValid()) { 22 delete fMessenger; 23 return NULL; 24 } else 25 return fMessenger; 26 } 27 28 29 uint8 GetInquiryTime() 30 { 31 CALLED(); 32 return BT_DEFAULT_INQUIRY_TIME; 33 } 34 35 36 void SetInquiryTime(uint8 time) 37 { 38 CALLED(); 39 ((void)(time)); 40 } 41