xref: /haiku/src/kits/bluetooth/KitSupport.cpp (revision 4b3b81da9e459443d75329cfd08bc9a57ad02653)
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 
8 
9 #include <bluetooth/bluetooth.h>
10 #include <bluetoothserver_p.h>
11 
12 #include "KitSupport.h"
13 
14 
15 
16 
17 BMessenger* _RetrieveBluetoothMessenger(void)
18 {
19 	// Fix/review: leaking memory here
20 	BMessenger* fMessenger = new BMessenger(BLUETOOTH_SIGNATURE);
21 
22     if (fMessenger == NULL || !fMessenger->IsValid())
23     	return NULL;
24     else
25     	return fMessenger;
26 }
27