/usr/include/thunderbird/nsIInputStreamTee.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIInputStreamTee.idl
*/
#ifndef __gen_nsIInputStreamTee_h__
#define __gen_nsIInputStreamTee_h__
#ifndef __gen_nsIInputStream_h__
#include "nsIInputStream.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIOutputStream; /* forward declaration */
class nsIEventTarget; /* forward declaration */
/* starting interface: nsIInputStreamTee */
#define NS_IINPUTSTREAMTEE_IID_STR "90a9d790-3bca-421e-a73b-98f68e13c917"
#define NS_IINPUTSTREAMTEE_IID \
{0x90a9d790, 0x3bca, 0x421e, \
{ 0xa7, 0x3b, 0x98, 0xf6, 0x8e, 0x13, 0xc9, 0x17 }}
class NS_NO_VTABLE nsIInputStreamTee : public nsIInputStream {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTSTREAMTEE_IID)
/* attribute nsIInputStream source; */
NS_IMETHOD GetSource(nsIInputStream * *aSource) = 0;
NS_IMETHOD SetSource(nsIInputStream *aSource) = 0;
/* attribute nsIOutputStream sink; */
NS_IMETHOD GetSink(nsIOutputStream * *aSink) = 0;
NS_IMETHOD SetSink(nsIOutputStream *aSink) = 0;
/* attribute nsIEventTarget eventTarget; */
NS_IMETHOD GetEventTarget(nsIEventTarget * *aEventTarget) = 0;
NS_IMETHOD SetEventTarget(nsIEventTarget *aEventTarget) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputStreamTee, NS_IINPUTSTREAMTEE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIINPUTSTREAMTEE \
NS_IMETHOD GetSource(nsIInputStream * *aSource) override; \
NS_IMETHOD SetSource(nsIInputStream *aSource) override; \
NS_IMETHOD GetSink(nsIOutputStream * *aSink) override; \
NS_IMETHOD SetSink(nsIOutputStream *aSink) override; \
NS_IMETHOD GetEventTarget(nsIEventTarget * *aEventTarget) override; \
NS_IMETHOD SetEventTarget(nsIEventTarget *aEventTarget) 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_NSIINPUTSTREAMTEE \
NS_METHOD GetSource(nsIInputStream * *aSource); \
NS_METHOD SetSource(nsIInputStream *aSource); \
NS_METHOD GetSink(nsIOutputStream * *aSink); \
NS_METHOD SetSink(nsIOutputStream *aSink); \
NS_METHOD GetEventTarget(nsIEventTarget * *aEventTarget); \
NS_METHOD SetEventTarget(nsIEventTarget *aEventTarget);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIINPUTSTREAMTEE(_to) \
NS_IMETHOD GetSource(nsIInputStream * *aSource) override { return _to GetSource(aSource); } \
NS_IMETHOD SetSource(nsIInputStream *aSource) override { return _to SetSource(aSource); } \
NS_IMETHOD GetSink(nsIOutputStream * *aSink) override { return _to GetSink(aSink); } \
NS_IMETHOD SetSink(nsIOutputStream *aSink) override { return _to SetSink(aSink); } \
NS_IMETHOD GetEventTarget(nsIEventTarget * *aEventTarget) override { return _to GetEventTarget(aEventTarget); } \
NS_IMETHOD SetEventTarget(nsIEventTarget *aEventTarget) override { return _to SetEventTarget(aEventTarget); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIINPUTSTREAMTEE(_to) \
NS_IMETHOD GetSource(nsIInputStream * *aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
NS_IMETHOD SetSource(nsIInputStream *aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSource(aSource); } \
NS_IMETHOD GetSink(nsIOutputStream * *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSink(aSink); } \
NS_IMETHOD SetSink(nsIOutputStream *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSink(aSink); } \
NS_IMETHOD GetEventTarget(nsIEventTarget * *aEventTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventTarget(aEventTarget); } \
NS_IMETHOD SetEventTarget(nsIEventTarget *aEventTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventTarget(aEventTarget); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsInputStreamTee : public nsIInputStreamTee
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIINPUTSTREAMTEE
nsInputStreamTee();
private:
~nsInputStreamTee();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsInputStreamTee, nsIInputStreamTee)
nsInputStreamTee::nsInputStreamTee()
{
/* member initializers and constructor code */
}
nsInputStreamTee::~nsInputStreamTee()
{
/* destructor code */
}
/* attribute nsIInputStream source; */
NS_IMETHODIMP nsInputStreamTee::GetSource(nsIInputStream * *aSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInputStreamTee::SetSource(nsIInputStream *aSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIOutputStream sink; */
NS_IMETHODIMP nsInputStreamTee::GetSink(nsIOutputStream * *aSink)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInputStreamTee::SetSink(nsIOutputStream *aSink)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIEventTarget eventTarget; */
NS_IMETHODIMP nsInputStreamTee::GetEventTarget(nsIEventTarget * *aEventTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInputStreamTee::SetEventTarget(nsIEventTarget *aEventTarget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
// factory methods
extern nsresult
NS_NewInputStreamTee(nsIInputStream **tee, // read from this input stream
nsIInputStream *source,
nsIOutputStream *sink);
extern nsresult
NS_NewInputStreamTeeAsync(nsIInputStream **tee, // read from this input stream
nsIInputStream *source,
nsIOutputStream *sink,
nsIEventTarget *eventTarget);
#endif /* __gen_nsIInputStreamTee_h__ */
|