/* * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com * * All rights reserved. Distributed under the terms of the MIT License. * */ #include #include #include #include "KitSupport.h" BMessenger* _RetrieveBluetoothMessenger(void) { // Fix/review: leaking memory here BMessenger* fMessenger = new BMessenger(BLUETOOTH_SIGNATURE); if (fMessenger == NULL || !fMessenger->IsValid()) { delete fMessenger; return NULL; } else return fMessenger; } uint8 GetInquiryTime() { return BT_DEFAULT_INQUIRY_TIME; } void SetInquiryTime(uint8 time) { ((void)(time)); }