gecko-dev/toolkit/components/telemetry/dap/DAPTelemetry.cpp
Simon Friedberger d1ff36ab2f Bug 1775035 - Add Rust and XPCOM scaffolding for DAPTelemetry. r=emilio
Rust is required to use the external libprio-rs Rust library.
C++ XPCOM is added because writing XPCOM objects in Rust is still
difficult.

Differential Revision: https://phabricator.services.mozilla.com/D151805
2022-07-14 14:39:19 +00:00

25 lines
680 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "DAPTelemetry.h"
#include "mozilla/Logging.h"
#include "mozilla/dap_ffi_generated.h"
#include "nsPromiseFlatString.h"
static mozilla::LazyLogModule sLogger("DAPTelemetry");
#undef LOG
#define LOG(...) MOZ_LOG(sLogger, mozilla::LogLevel::Debug, (__VA_ARGS__))
namespace mozilla {
NS_IMPL_ISUPPORTS(DAPTelemetry, nsIDAPTelemetry)
NS_IMETHODIMP DAPTelemetry::Test() {
LOG("Calling dap_ffi wrapper");
dap_ffi_test();
return NS_OK;
}
} // namespace mozilla