mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
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
25 lines
680 B
C++
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
|