Backed out changeset b09d48d2b473 (bug 1655101) for causing mochitest webgl failures...
[gecko.git] / dom / midi / MIDILog.h
blobee2cae3dfcccbd092300b722e0d3250d1e59a904
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_MIDILog_h
6 #define mozilla_dom_MIDILog_h
8 #include <mozilla/Logging.h>
9 #include <nsStringFwd.h>
11 namespace mozilla::dom {
12 class MIDIMessage;
13 enum class MIDIPortType : uint8_t;
14 } // namespace mozilla::dom
16 extern mozilla::LazyLogModule gWebMIDILog;
18 #define LOG(...) MOZ_LOG(gWebMIDILog, mozilla::LogLevel::Debug, (__VA_ARGS__));
19 #define LOGV(x, ...) \
20 MOZ_LOG(gWebMIDILog, mozilla::LogLevel::Verbose, (__VA_ARGS__));
22 void LogMIDIMessage(const mozilla::dom::MIDIMessage& aMessage,
23 const nsAString& aPortId,
24 mozilla::dom::MIDIPortType aDirection);
26 #endif // mozilla_dom_MIDILog_h