Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/dns/nsIDNSRecord.idl
*/
#ifndef __gen_nsIDNSRecord_h__
#define __gen_nsIDNSRecord_h__
#include "nsISupports.h"
#include "nsIRequest.h"
#include "nsITRRSkipReason.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
namespace mozilla {
namespace net {
union NetAddr;
}
}
#include "nsTArrayForwardDeclare.h"
class nsINetAddr; /* forward declaration */
/* starting interface: nsIDNSRecord */
#define NS_IDNSRECORD_IID_STR "f92228ae-c417-4188-a604-0830a95e7eb9"
#define NS_IDNSRECORD_IID \
{0xf92228ae, 0xc417, 0x4188, \
{ 0xa6, 0x04, 0x08, 0x30, 0xa9, 0x5e, 0x7e, 0xb9 }}
class NS_NO_VTABLE nsIDNSRecord : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSRECORD_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDNSRecord;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSRecord, NS_IDNSRECORD_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDNSRECORD \
/* no methods! */
/* 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_NSIDNSRECORD \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDNSRECORD(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDNSRECORD(_to) \
/* no methods! */
/* starting interface: nsIDNSAddrRecord */
#define NS_IDNSADDRRECORD_IID_STR "cb260e20-943f-4309-953b-78c90d3a7638"
#define NS_IDNSADDRRECORD_IID \
{0xcb260e20, 0x943f, 0x4309, \
{ 0x95, 0x3b, 0x78, 0xc9, 0x0d, 0x3a, 0x76, 0x38 }}
class NS_NO_VTABLE nsIDNSAddrRecord : public nsIDNSRecord {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSADDRRECORD_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDNSAddrRecord;
/* readonly attribute ACString canonicalName; */
NS_IMETHOD GetCanonicalName(nsACString& aCanonicalName) = 0;
/* [noscript] NetAddr getNextAddr (in uint16_t aPort); */
NS_IMETHOD GetNextAddr(uint16_t aPort, mozilla::net::NetAddr * _retval) = 0;
/* [noscript] void getAddresses (out nsNetAddrTArrayRef aAddressArray); */
NS_IMETHOD GetAddresses(nsTArray<mozilla::net::NetAddr> & aAddressArray) = 0;
/* nsINetAddr getScriptableNextAddr (in uint16_t aPort); */
NS_IMETHOD GetScriptableNextAddr(uint16_t aPort, nsINetAddr **_retval) = 0;
/* ACString getNextAddrAsString (); */
NS_IMETHOD GetNextAddrAsString(nsACString& _retval) = 0;
/* boolean hasMore (); */
NS_IMETHOD HasMore(bool *_retval) = 0;
/* void rewind (); */
NS_IMETHOD Rewind(void) = 0;
/* void reportUnusable (in uint16_t aPort); */
NS_IMETHOD ReportUnusable(uint16_t aPort) = 0;
/* boolean IsTRR (); */
NS_IMETHOD IsTRR(bool *_retval) = 0;
/* boolean resolvedInSocketProcess (); */
NS_IMETHOD ResolvedInSocketProcess(bool *_retval) = 0;
/* readonly attribute double trrFetchDuration; */
NS_IMETHOD GetTrrFetchDuration(double *aTrrFetchDuration) = 0;
/* readonly attribute double trrFetchDurationNetworkOnly; */
NS_IMETHOD GetTrrFetchDurationNetworkOnly(double *aTrrFetchDurationNetworkOnly) = 0;
/* readonly attribute nsIRequest_TRRMode effectiveTRRMode; */
NS_IMETHOD GetEffectiveTRRMode(nsIRequest::TRRMode *aEffectiveTRRMode) = 0;
/* readonly attribute nsITRRSkipReason_value trrSkipReason; */
NS_IMETHOD GetTrrSkipReason(nsITRRSkipReason::value *aTrrSkipReason) = 0;
/* readonly attribute uint32_t ttl; */
NS_IMETHOD GetTtl(uint32_t *aTtl) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSAddrRecord, NS_IDNSADDRRECORD_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDNSADDRRECORD \
NS_IMETHOD GetCanonicalName(nsACString& aCanonicalName) override; \
NS_IMETHOD GetNextAddr(uint16_t aPort, mozilla::net::NetAddr * _retval) override; \
NS_IMETHOD GetAddresses(nsTArray<mozilla::net::NetAddr> & aAddressArray) override; \
NS_IMETHOD GetScriptableNextAddr(uint16_t aPort, nsINetAddr **_retval) override; \
NS_IMETHOD GetNextAddrAsString(nsACString& _retval) override; \
NS_IMETHOD HasMore(bool *_retval) override; \
NS_IMETHOD Rewind(void) override; \
NS_IMETHOD ReportUnusable(uint16_t aPort) override; \
NS_IMETHOD IsTRR(bool *_retval) override; \
NS_IMETHOD ResolvedInSocketProcess(bool *_retval) override; \
NS_IMETHOD GetTrrFetchDuration(double *aTrrFetchDuration) override; \
NS_IMETHOD GetTrrFetchDurationNetworkOnly(double *aTrrFetchDurationNetworkOnly) override; \
NS_IMETHOD GetEffectiveTRRMode(nsIRequest::TRRMode *aEffectiveTRRMode) override; \
NS_IMETHOD GetTrrSkipReason(nsITRRSkipReason::value *aTrrSkipReason) override; \
NS_IMETHOD GetTtl(uint32_t *aTtl) 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_NSIDNSADDRRECORD \
nsresult GetCanonicalName(nsACString& aCanonicalName); \
nsresult GetNextAddr(uint16_t aPort, mozilla::net::NetAddr * _retval); \
nsresult GetAddresses(nsTArray<mozilla::net::NetAddr> & aAddressArray); \
nsresult GetScriptableNextAddr(uint16_t aPort, nsINetAddr **_retval); \
nsresult GetNextAddrAsString(nsACString& _retval); \
nsresult HasMore(bool *_retval); \
nsresult Rewind(void); \
nsresult ReportUnusable(uint16_t aPort); \
nsresult IsTRR(bool *_retval); \
nsresult ResolvedInSocketProcess(bool *_retval); \
nsresult GetTrrFetchDuration(double *aTrrFetchDuration); \
nsresult GetTrrFetchDurationNetworkOnly(double *aTrrFetchDurationNetworkOnly); \
nsresult GetEffectiveTRRMode(nsIRequest::TRRMode *aEffectiveTRRMode); \
nsresult GetTrrSkipReason(nsITRRSkipReason::value *aTrrSkipReason); \
nsresult GetTtl(uint32_t *aTtl);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDNSADDRRECORD(_to) \
NS_IMETHOD GetCanonicalName(nsACString& aCanonicalName) override { return _to GetCanonicalName(aCanonicalName); } \
NS_IMETHOD GetNextAddr(uint16_t aPort, mozilla::net::NetAddr * _retval) override { return _to GetNextAddr(aPort, _retval); } \
NS_IMETHOD GetAddresses(nsTArray<mozilla::net::NetAddr> & aAddressArray) override { return _to GetAddresses(aAddressArray); } \
NS_IMETHOD GetScriptableNextAddr(uint16_t aPort, nsINetAddr **_retval) override { return _to GetScriptableNextAddr(aPort, _retval); } \
NS_IMETHOD GetNextAddrAsString(nsACString& _retval) override { return _to GetNextAddrAsString(_retval); } \
NS_IMETHOD HasMore(bool *_retval) override { return _to HasMore(_retval); } \
NS_IMETHOD Rewind(void) override { return _to Rewind(); } \
NS_IMETHOD ReportUnusable(uint16_t aPort) override { return _to ReportUnusable(aPort); } \
NS_IMETHOD IsTRR(bool *_retval) override { return _to IsTRR(_retval); } \
NS_IMETHOD ResolvedInSocketProcess(bool *_retval) override { return _to ResolvedInSocketProcess(_retval); } \
NS_IMETHOD GetTrrFetchDuration(double *aTrrFetchDuration) override { return _to GetTrrFetchDuration(aTrrFetchDuration); } \
NS_IMETHOD GetTrrFetchDurationNetworkOnly(double *aTrrFetchDurationNetworkOnly) override { return _to GetTrrFetchDurationNetworkOnly(aTrrFetchDurationNetworkOnly); } \
NS_IMETHOD GetEffectiveTRRMode(nsIRequest::TRRMode *aEffectiveTRRMode) override { return _to GetEffectiveTRRMode(aEffectiveTRRMode); } \
NS_IMETHOD GetTrrSkipReason(nsITRRSkipReason::value *aTrrSkipReason) override { return _to GetTrrSkipReason(aTrrSkipReason); } \
NS_IMETHOD GetTtl(uint32_t *aTtl) override { return _to GetTtl(aTtl); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDNSADDRRECORD(_to) \
NS_IMETHOD GetCanonicalName(nsACString& aCanonicalName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanonicalName(aCanonicalName); } \
NS_IMETHOD GetNextAddr(uint16_t aPort, mozilla::net::NetAddr * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextAddr(aPort, _retval); } \
NS_IMETHOD GetAddresses(nsTArray<mozilla::net::NetAddr> & aAddressArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddresses(aAddressArray); } \
NS_IMETHOD GetScriptableNextAddr(uint16_t aPort, nsINetAddr **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptableNextAddr(aPort, _retval); } \
NS_IMETHOD GetNextAddrAsString(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextAddrAsString(_retval); } \
NS_IMETHOD HasMore(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMore(_retval); } \
NS_IMETHOD Rewind(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Rewind(); } \
NS_IMETHOD ReportUnusable(uint16_t aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportUnusable(aPort); } \
NS_IMETHOD IsTRR(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTRR(_retval); } \
NS_IMETHOD ResolvedInSocketProcess(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolvedInSocketProcess(_retval); } \
NS_IMETHOD GetTrrFetchDuration(double *aTrrFetchDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrrFetchDuration(aTrrFetchDuration); } \
NS_IMETHOD GetTrrFetchDurationNetworkOnly(double *aTrrFetchDurationNetworkOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrrFetchDurationNetworkOnly(aTrrFetchDurationNetworkOnly); } \
NS_IMETHOD GetEffectiveTRRMode(nsIRequest::TRRMode *aEffectiveTRRMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectiveTRRMode(aEffectiveTRRMode); } \
NS_IMETHOD GetTrrSkipReason(nsITRRSkipReason::value *aTrrSkipReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrrSkipReason(aTrrSkipReason); } \
NS_IMETHOD GetTtl(uint32_t *aTtl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTtl(aTtl); }
#endif /* __gen_nsIDNSRecord_h__ */