aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/L2CAPComm.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-10 06:17:20 +0200
committerSven Gothel <[email protected]>2020-05-10 06:17:20 +0200
commitb784da70133b4b5859bb8b6f86ab48a48a6d87af (patch)
tree28f1baa5caf8e4ce1c3fb9b3592b33398e1e7c08 /api/direct_bt/L2CAPComm.hpp
parent0f53fde528dea4470d152d30f33f357dde1b2e10 (diff)
Converging Java/JNI and C++ API to match tinyb interface requirements (step-2)
- BasicTypes: Align exception names w/ Java. - BTTypes / EInfoReport: Add getDeviceIDModalias() - DBTManager: Add getConnectionInfo(..) and setLocalName(..) - OctetTypes: Fix put_octets(..), removed sizeof(). Adding put/get string methods +++ DBTTypes: - Fix Comments - DBTDevice: Add appearance, getConnectionInfo(), connectGATT(..) and disconnectGATT(). Last two GATT's ease association of GATTHandler w/ device for tinyb binding. - DBTDevice: Fix defaultConnect(): Differenciate le public/random - DBTDevice: New getConnectionInfo() - also may issue deviceUpdate callback on rssi/tx_power changes - DBTAdapter: Add missing DBTAdapterStatusListener list declaration of previous commit. - DBTAdapter: Add misc information access for tinyb binding. +++ Java - DBTAdapter: Adding more tinyb implementation code, sorting methods - ~90% complete - DBTDevice: Adding more tinyb implementation code, sorting methods - ~70% complete
Diffstat (limited to 'api/direct_bt/L2CAPComm.hpp')
-rw-r--r--api/direct_bt/L2CAPComm.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/direct_bt/L2CAPComm.hpp b/api/direct_bt/L2CAPComm.hpp
index 94eef5aa..1353d4ef 100644
--- a/api/direct_bt/L2CAPComm.hpp
+++ b/api/direct_bt/L2CAPComm.hpp
@@ -37,10 +37,11 @@
#include "UUID.hpp"
#include "BTTypes.hpp"
-#include "DBTTypes.hpp"
namespace direct_bt {
+ class DBTDevice; // forward
+
class L2CAPComm {
public:
enum State : int {
@@ -57,7 +58,7 @@ namespace direct_bt {
static int l2cap_close_dev(int dd);
State state;
- std::shared_ptr<DBTDevice> device = nullptr;
+ std::shared_ptr<DBTDevice> device;
const uint16_t psm;
const uint16_t cid;
const bool pubaddr;