tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

MIDILog.h (849B)


      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/. */
      4 
      5 #ifndef mozilla_dom_MIDILog_h
      6 #define mozilla_dom_MIDILog_h
      7 
      8 #include <mozilla/Logging.h>
      9 #include <nsStringFwd.h>
     10 
     11 namespace mozilla::dom {
     12 class MIDIMessage;
     13 enum class MIDIPortType : uint8_t;
     14 }  // namespace mozilla::dom
     15 
     16 extern mozilla::LazyLogModule gWebMIDILog;
     17 
     18 #define LOG(...) MOZ_LOG(gWebMIDILog, mozilla::LogLevel::Debug, (__VA_ARGS__));
     19 #define LOGV(x, ...) \
     20  MOZ_LOG(gWebMIDILog, mozilla::LogLevel::Verbose, (__VA_ARGS__));
     21 
     22 void LogMIDIMessage(const mozilla::dom::MIDIMessage& aMessage,
     23                    const nsAString& aPortId,
     24                    mozilla::dom::MIDIPortType aDirection);
     25 
     26 #endif  // mozilla_dom_MIDILog_h