Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/dns/nsIDNSAdditionalInfo.idl
*/
#ifndef __gen_nsIDNSAdditionalInfo_h__
#define __gen_nsIDNSAdditionalInfo_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDNSAdditionalInfo */
#define NS_IDNSADDITIONALINFO_IID_STR "74db2955-6298-4d82-a3b9-7f9e8ba9e854"
#define NS_IDNSADDITIONALINFO_IID \
{0x74db2955, 0x6298, 0x4d82, \
{ 0xa3, 0xb9, 0x7f, 0x9e, 0x8b, 0xa9, 0xe8, 0x54 }}
class NS_NO_VTABLE nsIDNSAdditionalInfo : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSADDITIONALINFO_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIDNSAdditionalInfo;
/* readonly attribute int32_t port; */
NS_IMETHOD GetPort(int32_t *aPort) = 0;
/* readonly attribute ACString resolverURL; */
NS_IMETHOD GetResolverURL(nsACString& aResolverURL) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSAdditionalInfo, NS_IDNSADDITIONALINFO_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDNSADDITIONALINFO \
NS_IMETHOD GetPort(int32_t *aPort) override; \
NS_IMETHOD GetResolverURL(nsACString& aResolverURL) 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_NSIDNSADDITIONALINFO \
nsresult GetPort(int32_t *aPort); \
nsresult GetResolverURL(nsACString& aResolverURL);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDNSADDITIONALINFO(_to) \
NS_IMETHOD GetPort(int32_t *aPort) override { return _to GetPort(aPort); } \
NS_IMETHOD GetResolverURL(nsACString& aResolverURL) override { return _to GetResolverURL(aResolverURL); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDNSADDITIONALINFO(_to) \
NS_IMETHOD GetPort(int32_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
NS_IMETHOD GetResolverURL(nsACString& aResolverURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolverURL(aResolverURL); }
#endif /* __gen_nsIDNSAdditionalInfo_h__ */