LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsINetAddr.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsINetAddr.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsINetAddr_h__
       6             : #define __gen_nsINetAddr_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : namespace mozilla {
      18             : namespace net {
      19             : union NetAddr;
      20             : }
      21             : }
      22             : 
      23             : /* starting interface:    nsINetAddr */
      24             : #define NS_INETADDR_IID_STR "652b9ec5-d159-45d7-9127-50bb559486cd"
      25             : 
      26             : #define NS_INETADDR_IID \
      27             :   {0x652b9ec5, 0xd159, 0x45d7, \
      28             :     { 0x91, 0x27, 0x50, 0xbb, 0x55, 0x94, 0x86, 0xcd }}
      29             : 
      30           0 : class NS_NO_VTABLE nsINetAddr : public nsISupports {
      31             :  public:
      32             : 
      33             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETADDR_IID)
      34             : 
      35             :   /* readonly attribute unsigned short family; */
      36             :   NS_IMETHOD GetFamily(uint16_t *aFamily) = 0;
      37             : 
      38             :   /* readonly attribute AUTF8String address; */
      39             :   NS_IMETHOD GetAddress(nsACString & aAddress) = 0;
      40             : 
      41             :   /* readonly attribute unsigned short port; */
      42             :   NS_IMETHOD GetPort(uint16_t *aPort) = 0;
      43             : 
      44             :   /* readonly attribute unsigned long flow; */
      45             :   NS_IMETHOD GetFlow(uint32_t *aFlow) = 0;
      46             : 
      47             :   /* readonly attribute unsigned long scope; */
      48             :   NS_IMETHOD GetScope(uint32_t *aScope) = 0;
      49             : 
      50             :   /* readonly attribute boolean isV4Mapped; */
      51             :   NS_IMETHOD GetIsV4Mapped(bool *aIsV4Mapped) = 0;
      52             : 
      53             :   enum {
      54             :     FAMILY_INET = 1U,
      55             :     FAMILY_INET6 = 2U,
      56             :     FAMILY_LOCAL = 3U
      57             :   };
      58             : 
      59             :   /* [noscript] NetAddr getNetAddr (); */
      60             :   NS_IMETHOD GetNetAddr(mozilla::net::NetAddr *_retval) = 0;
      61             : 
      62             : };
      63             : 
      64             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINetAddr, NS_INETADDR_IID)
      65             : 
      66             : /* Use this macro when declaring classes that implement this interface. */
      67             : #define NS_DECL_NSINETADDR \
      68             :   NS_IMETHOD GetFamily(uint16_t *aFamily) override; \
      69             :   NS_IMETHOD GetAddress(nsACString & aAddress) override; \
      70             :   NS_IMETHOD GetPort(uint16_t *aPort) override; \
      71             :   NS_IMETHOD GetFlow(uint32_t *aFlow) override; \
      72             :   NS_IMETHOD GetScope(uint32_t *aScope) override; \
      73             :   NS_IMETHOD GetIsV4Mapped(bool *aIsV4Mapped) override; \
      74             :   NS_IMETHOD GetNetAddr(mozilla::net::NetAddr *_retval) override; 
      75             : 
      76             : /* Use this macro when declaring the members of this interface when the
      77             :    class doesn't implement the interface. This is useful for forwarding. */
      78             : #define NS_DECL_NON_VIRTUAL_NSINETADDR \
      79             :   nsresult GetFamily(uint16_t *aFamily); \
      80             :   nsresult GetAddress(nsACString & aAddress); \
      81             :   nsresult GetPort(uint16_t *aPort); \
      82             :   nsresult GetFlow(uint32_t *aFlow); \
      83             :   nsresult GetScope(uint32_t *aScope); \
      84             :   nsresult GetIsV4Mapped(bool *aIsV4Mapped); \
      85             :   nsresult GetNetAddr(mozilla::net::NetAddr *_retval); 
      86             : 
      87             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      88             : #define NS_FORWARD_NSINETADDR(_to) \
      89             :   NS_IMETHOD GetFamily(uint16_t *aFamily) override { return _to GetFamily(aFamily); } \
      90             :   NS_IMETHOD GetAddress(nsACString & aAddress) override { return _to GetAddress(aAddress); } \
      91             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); } \
      92             :   NS_IMETHOD GetFlow(uint32_t *aFlow) override { return _to GetFlow(aFlow); } \
      93             :   NS_IMETHOD GetScope(uint32_t *aScope) override { return _to GetScope(aScope); } \
      94             :   NS_IMETHOD GetIsV4Mapped(bool *aIsV4Mapped) override { return _to GetIsV4Mapped(aIsV4Mapped); } \
      95             :   NS_IMETHOD GetNetAddr(mozilla::net::NetAddr *_retval) override { return _to GetNetAddr(_retval); } 
      96             : 
      97             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      98             : #define NS_FORWARD_SAFE_NSINETADDR(_to) \
      99             :   NS_IMETHOD GetFamily(uint16_t *aFamily) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFamily(aFamily); } \
     100             :   NS_IMETHOD GetAddress(nsACString & aAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(aAddress); } \
     101             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
     102             :   NS_IMETHOD GetFlow(uint32_t *aFlow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlow(aFlow); } \
     103             :   NS_IMETHOD GetScope(uint32_t *aScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScope(aScope); } \
     104             :   NS_IMETHOD GetIsV4Mapped(bool *aIsV4Mapped) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsV4Mapped(aIsV4Mapped); } \
     105             :   NS_IMETHOD GetNetAddr(mozilla::net::NetAddr *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetAddr(_retval); } 
     106             : 
     107             : #if 0
     108             : /* Use the code below as a template for the implementation class for this interface. */
     109             : 
     110             : /* Header file */
     111             : class nsNetAddr : public nsINetAddr
     112             : {
     113             : public:
     114             :   NS_DECL_ISUPPORTS
     115             :   NS_DECL_NSINETADDR
     116             : 
     117             :   nsNetAddr();
     118             : 
     119             : private:
     120             :   ~nsNetAddr();
     121             : 
     122             : protected:
     123             :   /* additional members */
     124             : };
     125             : 
     126             : /* Implementation file */
     127             : NS_IMPL_ISUPPORTS(nsNetAddr, nsINetAddr)
     128             : 
     129             : nsNetAddr::nsNetAddr()
     130             : {
     131             :   /* member initializers and constructor code */
     132             : }
     133             : 
     134             : nsNetAddr::~nsNetAddr()
     135             : {
     136             :   /* destructor code */
     137             : }
     138             : 
     139             : /* readonly attribute unsigned short family; */
     140             : NS_IMETHODIMP nsNetAddr::GetFamily(uint16_t *aFamily)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* readonly attribute AUTF8String address; */
     146             : NS_IMETHODIMP nsNetAddr::GetAddress(nsACString & aAddress)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* readonly attribute unsigned short port; */
     152             : NS_IMETHODIMP nsNetAddr::GetPort(uint16_t *aPort)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* readonly attribute unsigned long flow; */
     158             : NS_IMETHODIMP nsNetAddr::GetFlow(uint32_t *aFlow)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* readonly attribute unsigned long scope; */
     164             : NS_IMETHODIMP nsNetAddr::GetScope(uint32_t *aScope)
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : 
     169             : /* readonly attribute boolean isV4Mapped; */
     170             : NS_IMETHODIMP nsNetAddr::GetIsV4Mapped(bool *aIsV4Mapped)
     171             : {
     172             :     return NS_ERROR_NOT_IMPLEMENTED;
     173             : }
     174             : 
     175             : /* [noscript] NetAddr getNetAddr (); */
     176             : NS_IMETHODIMP nsNetAddr::GetNetAddr(mozilla::net::NetAddr *_retval)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* End of implementation class template. */
     182             : #endif
     183             : 
     184             : 
     185             : #endif /* __gen_nsINetAddr_h__ */

Generated by: LCOV version 1.13