blob: 5a721c91c45695a2a9963c510a78c1c45ec09f20 [file] [log] [blame]
// Copyright 2018 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.
#ifndef GARNET_DRIVERS_BLUETOOTH_LIB_SM_STATUS_H_
#define GARNET_DRIVERS_BLUETOOTH_LIB_SM_STATUS_H_
#include <lib/fit/function.h>
#include "garnet/drivers/bluetooth/lib/common/status.h"
#include "garnet/drivers/bluetooth/lib/sm/smp.h"
namespace btlib {
namespace common {
template <>
struct ProtocolErrorTraits<sm::ErrorCode> {
static std::string ToString(sm::ErrorCode ecode);
};
} // namespace common
namespace sm {
using Status = common::Status<ErrorCode>;
using StatusCallback = fit::function<void(Status)>;
} // namespace sm
} // namespace btlib
#endif // GARNET_DRIVERS_BLUETOOTH_LIB_SM_STATUS_H_