blob: 55f98e249baf4e540a19c78bf79ed7a705cfbad5 [file] [log] [blame]
Hansong Zhangb0960762019-11-14 17:57:10 -08001/*
2 * Copyright 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "l2cap/internal/enhanced_retransmission_mode_channel_data_controller.h"
18
19namespace bluetooth {
20namespace l2cap {
21namespace internal {
22ErtmController::ErtmController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channel_queue_end, os::Handler* handler,
23 Scheduler* scheduler)
24 : cid_(cid), enqueue_buffer_(channel_queue_end), handler_(handler), scheduler_(scheduler) {}
25
26void ErtmController::OnSdu(std::unique_ptr<packet::BasePacketBuilder> sdu) {
27 LOG_ERROR("Not implemented");
28}
29
30void ErtmController::OnPdu(BasicFrameView pdu) {
31 LOG_ERROR("Not implemented");
32}
33
34std::unique_ptr<BasicFrameBuilder> ErtmController::GetNextPacket() {
35 auto next = std::move(pdu_queue_.front());
36 pdu_queue_.pop();
37 return next;
38}
39
40} // namespace internal
41} // namespace l2cap
42} // namespace bluetooth