Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/telemetry/dap/nsIDAPTelemetry.idl
*/
#ifndef __gen_nsIDAPTelemetry_h__
#define __gen_nsIDAPTelemetry_h__
#include "nsISupports.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDAPTelemetry */
#define NS_IDAPTELEMETRY_IID_STR "58a4c579-d2dd-46b7-9c3b-6881a1c36c6a"
#define NS_IDAPTELEMETRY_IID \
{0x58a4c579, 0xd2dd, 0x46b7, \
{ 0x9c, 0x3b, 0x68, 0x81, 0xa1, 0xc3, 0x6c, 0x6a }}
class NS_NO_VTABLE nsIDAPTelemetry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDAPTELEMETRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDAPTelemetry;
/* void GetReportU8 (in Array<uint8_t> leaderHpkeConfig, in Array<uint8_t> helperHpkeConfig, in uint8_t measurement, in Array<uint8_t> task_id, in uint64_t time_precision, out Array<uint8_t> report); */
NS_IMETHOD GetReportU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, uint8_t measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) = 0;
/* void GetReportVecU8 (in Array<uint8_t> leaderHpkeConfig, in Array<uint8_t> helperHpkeConfig, in Array<uint8_t> measurement, in Array<uint8_t> task_id, in uint64_t time_precision, out Array<uint8_t> report); */
NS_IMETHOD GetReportVecU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint8_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) = 0;
/* void GetReportVecU16 (in Array<uint8_t> leaderHpkeConfig, in Array<uint8_t> helperHpkeConfig, in Array<uint16_t> measurement, in Array<uint8_t> task_id, in uint64_t time_precision, out Array<uint8_t> report); */
NS_IMETHOD GetReportVecU16(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint16_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDAPTelemetry, NS_IDAPTELEMETRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDAPTELEMETRY \
NS_IMETHOD GetReportU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, uint8_t measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override; \
NS_IMETHOD GetReportVecU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint8_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override; \
NS_IMETHOD GetReportVecU16(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint16_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDAPTELEMETRY \
nsresult GetReportU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, uint8_t measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report); \
nsresult GetReportVecU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint8_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report); \
nsresult GetReportVecU16(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint16_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDAPTELEMETRY(_to) \
NS_IMETHOD GetReportU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, uint8_t measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return _to GetReportU8(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); } \
NS_IMETHOD GetReportVecU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint8_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return _to GetReportVecU8(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); } \
NS_IMETHOD GetReportVecU16(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint16_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return _to GetReportVecU16(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDAPTELEMETRY(_to) \
NS_IMETHOD GetReportU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, uint8_t measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReportU8(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); } \
NS_IMETHOD GetReportVecU8(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint8_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReportVecU8(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); } \
NS_IMETHOD GetReportVecU16(const nsTArray<uint8_t >& leaderHpkeConfig, const nsTArray<uint8_t >& helperHpkeConfig, const nsTArray<uint16_t >& measurement, const nsTArray<uint8_t >& task_id, uint64_t time_precision, nsTArray<uint8_t >& report) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReportVecU16(leaderHpkeConfig, helperHpkeConfig, measurement, task_id, time_precision, report); }
#endif /* __gen_nsIDAPTelemetry_h__ */