From 3dfa1212663b7a444a3d21f29ad0dcc05e09b51e Mon Sep 17 00:00:00 2001 From: Oliver Ruiz Dorantes Date: Sun, 21 Oct 2007 17:58:38 +0000 Subject: [PATCH] Dummy implementation of the LocalDevice class git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22642 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/Jamfile | 1 + src/kits/bluetooth/Jamfile | 6 ++ src/kits/bluetooth/LocalDevice.cpp | 113 +++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 src/kits/bluetooth/Jamfile create mode 100644 src/kits/bluetooth/LocalDevice.cpp diff --git a/src/kits/Jamfile b/src/kits/Jamfile index 07815021c9..9a46a337c7 100644 --- a/src/kits/Jamfile +++ b/src/kits/Jamfile @@ -82,6 +82,7 @@ SEARCH on [ FGristFiles syslog.cpp ] SubInclude HAIKU_TOP src kits app ; +SubInclude HAIKU_TOP src kits bluetooth ; SubInclude HAIKU_TOP src kits debug ; SubInclude HAIKU_TOP src kits device ; SubInclude HAIKU_TOP src kits game ; diff --git a/src/kits/bluetooth/Jamfile b/src/kits/bluetooth/Jamfile new file mode 100644 index 0000000000..bad908d4cc --- /dev/null +++ b/src/kits/bluetooth/Jamfile @@ -0,0 +1,6 @@ +SubDir HAIKU_TOP src kits bluetooth ; + +SharedLibrary libbluetooth.so : + LocalDevice.cpp + : be +; diff --git a/src/kits/bluetooth/LocalDevice.cpp b/src/kits/bluetooth/LocalDevice.cpp new file mode 100644 index 0000000000..328075e592 --- /dev/null +++ b/src/kits/bluetooth/LocalDevice.cpp @@ -0,0 +1,113 @@ +/* + * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com + * + * All rights reserved. Distributed under the terms of the MIT License. + * + */ + + +#include +#include + +namespace Bluetooth { + + + LocalDevice* + LocalDevice::getLocalDevice() { + + return NULL; + + } + + + LocalDevice* + LocalDevice::getLocalDevice(uint8 dev) { + + return NULL; + + } + + + LocalDevice* + LocalDevice::getLocalDevice(bdaddr_t bdaddr){ + + return NULL; + + } + + + DiscoveryAgent* + LocalDevice::getDiscoveryAgent() { + + return NULL; + } + + + BString + LocalDevice::getFriendlyName() { + + return NULL; + } + + + DeviceClass + LocalDevice::getDeviceClass() { + + return NULL; + } + + + bool + LocalDevice::setDiscoverable(int mode) { + + return false; + } + + + BString + LocalDevice::getProperty(const char* property) { + + return NULL; + + } + + + void + LocalDevice::getProperty(const char* property, uint32* value) { + + *value = 0; + + } + + + int + LocalDevice::getDiscoverable() { + + return 0; + } + + + BString + LocalDevice::getBluetoothAddress() { + + return NULL; + } + + + /* + ServiceRecord + LocalDevice::getRecord(Connection notifier) { + + } + + void + LocalDevice::updateRecord(ServiceRecord srvRecord) { + + } + */ + LocalDevice::LocalDevice() { + + } + + +}