aboutsummaryrefslogtreecommitdiff
path: root/gd/l2cap/le/fixed_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'gd/l2cap/le/fixed_channel.h')
-rw-r--r--gd/l2cap/le/fixed_channel.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gd/l2cap/le/fixed_channel.h b/gd/l2cap/le/fixed_channel.h
index 6d3cc423b..7a7cc947f 100644
--- a/gd/l2cap/le/fixed_channel.h
+++ b/gd/l2cap/le/fixed_channel.h
@@ -19,6 +19,7 @@
#include "common/callback.h"
#include "hci/acl_manager.h"
#include "l2cap/cid.h"
+#include "l2cap/le/link_options.h"
#include "os/handler.h"
#include "packet/base_packet_builder.h"
#include "packet/packet_view.h"
@@ -49,13 +50,6 @@ class FixedChannel {
hci::AddressWithType GetDevice() const;
/**
- * Return the role we have in the associated link
- */
- hci::Role GetRole() const;
-
- hci::AclConnection* GetAclConnection() const;
-
- /**
* Register close callback. If close callback is registered, when a channel is closed, the channel's resource will
* only be freed after on_close callback is invoked. Otherwise, if no on_close callback is registered, the channel's
* resource will be freed immediately after closing.
@@ -87,6 +81,13 @@ class FixedChannel {
*/
common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQueueUpEnd() const;
+ /**
+ * Get the Proxy for L2CAP Link Options.
+ * Only few special L2CAP users need to use it, including
+ * GATT, HID Device, Security Manager, and Java API.
+ */
+ LinkOptions* GetLinkOptions();
+
private:
std::shared_ptr<internal::FixedChannelImpl> impl_;
os::Handler* l2cap_handler_;