blob: d53e7d00fad09bd7f1063c929096f97177c4a447 [file] [log] [blame]
// Copyright 2022 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.
#include <wlan/drivers/log_instance.h>
namespace wlan::drivers::log {
// static
void Instance::Init(uint32_t filter) { get().filter_ = filter; }
// static
bool Instance::IsFilterOn(uint32_t filter) { return get().filter_ & filter; }
// static
Instance& Instance::get() {
static Instance w;
return w;
}
} // namespace wlan::drivers::log