blob: 57e8396c4076f4cb817be6b07646cdda92a73a07 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "garnet/bin/bluetooth_tools/lib/command_dispatcher.h"
#include "garnet/drivers/bluetooth/lib/hci/command_channel.h"
#include "lib/fxl/memory/ref_ptr.h"
#include "lib/fxl/tasks/task_runner.h"
namespace bt_intel {
class CommandData final {
public:
CommandData(bluetooth::hci::CommandChannel* cmd_channel,
fxl::RefPtr<fxl::TaskRunner> task_runner)
: cmd_channel_(cmd_channel), task_runner_(task_runner) {}
bluetooth::hci::CommandChannel* cmd_channel() const { return cmd_channel_; }
fxl::RefPtr<fxl::TaskRunner> task_runner() const { return task_runner_; }
private:
bluetooth::hci::CommandChannel* cmd_channel_;
fxl::RefPtr<fxl::TaskRunner> task_runner_;
};
void RegisterCommands(const CommandData* data,
bluetooth::tools::CommandDispatcher* dispatcher);
} // namespace bt_intel