/usr/include/firefox/nsIBinaryOutputStream.h is in firefox-dev 11.0+build1-0ubuntu4.
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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/xpcom/io/nsIBinaryOutputStream.idl
*/
#ifndef __gen_nsIBinaryOutputStream_h__
#define __gen_nsIBinaryOutputStream_h__
#ifndef __gen_nsIOutputStream_h__
#include "nsIOutputStream.h"
#endif
#ifndef __gen_nsrootidl_h__
#include "nsrootidl.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIBinaryOutputStream */
#define NS_IBINARYOUTPUTSTREAM_IID_STR "204ee610-8765-11d3-90cf-0040056a906e"
#define NS_IBINARYOUTPUTSTREAM_IID \
{0x204ee610, 0x8765, 0x11d3, \
{ 0x90, 0xcf, 0x00, 0x40, 0x05, 0x6a, 0x90, 0x6e }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIBinaryOutputStream : public nsIOutputStream {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBINARYOUTPUTSTREAM_IID)
/* void setOutputStream (in nsIOutputStream aOutputStream); */
NS_SCRIPTABLE NS_IMETHOD SetOutputStream(nsIOutputStream *aOutputStream) = 0;
/* void writeBoolean (in boolean aBoolean); */
NS_SCRIPTABLE NS_IMETHOD WriteBoolean(bool aBoolean) = 0;
/* void write8 (in PRUint8 aByte); */
NS_SCRIPTABLE NS_IMETHOD Write8(PRUint8 aByte) = 0;
/* void write16 (in PRUint16 a16); */
NS_SCRIPTABLE NS_IMETHOD Write16(PRUint16 a16) = 0;
/* void write32 (in PRUint32 a32); */
NS_SCRIPTABLE NS_IMETHOD Write32(PRUint32 a32) = 0;
/* void write64 (in PRUint64 a64); */
NS_SCRIPTABLE NS_IMETHOD Write64(PRUint64 a64) = 0;
/* void writeFloat (in float aFloat); */
NS_SCRIPTABLE NS_IMETHOD WriteFloat(float aFloat) = 0;
/* void writeDouble (in double aDouble); */
NS_SCRIPTABLE NS_IMETHOD WriteDouble(double aDouble) = 0;
/* void writeStringZ (in string aString); */
NS_SCRIPTABLE NS_IMETHOD WriteStringZ(const char * aString) = 0;
/* void writeWStringZ (in wstring aString); */
NS_SCRIPTABLE NS_IMETHOD WriteWStringZ(const PRUnichar * aString) = 0;
/* void writeUtf8Z (in wstring aString); */
NS_SCRIPTABLE NS_IMETHOD WriteUtf8Z(const PRUnichar * aString) = 0;
/* void writeBytes ([size_is (aLength)] in string aString, in PRUint32 aLength); */
NS_SCRIPTABLE NS_IMETHOD WriteBytes(const char * aString, PRUint32 aLength) = 0;
/* void writeByteArray ([array, size_is (aLength)] in PRUint8 aBytes, in PRUint32 aLength); */
NS_SCRIPTABLE NS_IMETHOD WriteByteArray(PRUint8 *aBytes, PRUint32 aLength) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBinaryOutputStream, NS_IBINARYOUTPUTSTREAM_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBINARYOUTPUTSTREAM \
NS_SCRIPTABLE NS_IMETHOD SetOutputStream(nsIOutputStream *aOutputStream); \
NS_SCRIPTABLE NS_IMETHOD WriteBoolean(bool aBoolean); \
NS_SCRIPTABLE NS_IMETHOD Write8(PRUint8 aByte); \
NS_SCRIPTABLE NS_IMETHOD Write16(PRUint16 a16); \
NS_SCRIPTABLE NS_IMETHOD Write32(PRUint32 a32); \
NS_SCRIPTABLE NS_IMETHOD Write64(PRUint64 a64); \
NS_SCRIPTABLE NS_IMETHOD WriteFloat(float aFloat); \
NS_SCRIPTABLE NS_IMETHOD WriteDouble(double aDouble); \
NS_SCRIPTABLE NS_IMETHOD WriteStringZ(const char * aString); \
NS_SCRIPTABLE NS_IMETHOD WriteWStringZ(const PRUnichar * aString); \
NS_SCRIPTABLE NS_IMETHOD WriteUtf8Z(const PRUnichar * aString); \
NS_SCRIPTABLE NS_IMETHOD WriteBytes(const char * aString, PRUint32 aLength); \
NS_SCRIPTABLE NS_IMETHOD WriteByteArray(PRUint8 *aBytes, PRUint32 aLength);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBINARYOUTPUTSTREAM(_to) \
NS_SCRIPTABLE NS_IMETHOD SetOutputStream(nsIOutputStream *aOutputStream) { return _to SetOutputStream(aOutputStream); } \
NS_SCRIPTABLE NS_IMETHOD WriteBoolean(bool aBoolean) { return _to WriteBoolean(aBoolean); } \
NS_SCRIPTABLE NS_IMETHOD Write8(PRUint8 aByte) { return _to Write8(aByte); } \
NS_SCRIPTABLE NS_IMETHOD Write16(PRUint16 a16) { return _to Write16(a16); } \
NS_SCRIPTABLE NS_IMETHOD Write32(PRUint32 a32) { return _to Write32(a32); } \
NS_SCRIPTABLE NS_IMETHOD Write64(PRUint64 a64) { return _to Write64(a64); } \
NS_SCRIPTABLE NS_IMETHOD WriteFloat(float aFloat) { return _to WriteFloat(aFloat); } \
NS_SCRIPTABLE NS_IMETHOD WriteDouble(double aDouble) { return _to WriteDouble(aDouble); } \
NS_SCRIPTABLE NS_IMETHOD WriteStringZ(const char * aString) { return _to WriteStringZ(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteWStringZ(const PRUnichar * aString) { return _to WriteWStringZ(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteUtf8Z(const PRUnichar * aString) { return _to WriteUtf8Z(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteBytes(const char * aString, PRUint32 aLength) { return _to WriteBytes(aString, aLength); } \
NS_SCRIPTABLE NS_IMETHOD WriteByteArray(PRUint8 *aBytes, PRUint32 aLength) { return _to WriteByteArray(aBytes, aLength); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBINARYOUTPUTSTREAM(_to) \
NS_SCRIPTABLE NS_IMETHOD SetOutputStream(nsIOutputStream *aOutputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutputStream(aOutputStream); } \
NS_SCRIPTABLE NS_IMETHOD WriteBoolean(bool aBoolean) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteBoolean(aBoolean); } \
NS_SCRIPTABLE NS_IMETHOD Write8(PRUint8 aByte) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write8(aByte); } \
NS_SCRIPTABLE NS_IMETHOD Write16(PRUint16 a16) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write16(a16); } \
NS_SCRIPTABLE NS_IMETHOD Write32(PRUint32 a32) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write32(a32); } \
NS_SCRIPTABLE NS_IMETHOD Write64(PRUint64 a64) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write64(a64); } \
NS_SCRIPTABLE NS_IMETHOD WriteFloat(float aFloat) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteFloat(aFloat); } \
NS_SCRIPTABLE NS_IMETHOD WriteDouble(double aDouble) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteDouble(aDouble); } \
NS_SCRIPTABLE NS_IMETHOD WriteStringZ(const char * aString) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteStringZ(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteWStringZ(const PRUnichar * aString) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteWStringZ(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteUtf8Z(const PRUnichar * aString) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteUtf8Z(aString); } \
NS_SCRIPTABLE NS_IMETHOD WriteBytes(const char * aString, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteBytes(aString, aLength); } \
NS_SCRIPTABLE NS_IMETHOD WriteByteArray(PRUint8 *aBytes, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteByteArray(aBytes, aLength); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsBinaryOutputStream : public nsIBinaryOutputStream
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIBINARYOUTPUTSTREAM
nsBinaryOutputStream();
private:
~nsBinaryOutputStream();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsBinaryOutputStream, nsIBinaryOutputStream)
nsBinaryOutputStream::nsBinaryOutputStream()
{
/* member initializers and constructor code */
}
nsBinaryOutputStream::~nsBinaryOutputStream()
{
/* destructor code */
}
/* void setOutputStream (in nsIOutputStream aOutputStream); */
NS_IMETHODIMP nsBinaryOutputStream::SetOutputStream(nsIOutputStream *aOutputStream)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeBoolean (in boolean aBoolean); */
NS_IMETHODIMP nsBinaryOutputStream::WriteBoolean(bool aBoolean)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write8 (in PRUint8 aByte); */
NS_IMETHODIMP nsBinaryOutputStream::Write8(PRUint8 aByte)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write16 (in PRUint16 a16); */
NS_IMETHODIMP nsBinaryOutputStream::Write16(PRUint16 a16)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write32 (in PRUint32 a32); */
NS_IMETHODIMP nsBinaryOutputStream::Write32(PRUint32 a32)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void write64 (in PRUint64 a64); */
NS_IMETHODIMP nsBinaryOutputStream::Write64(PRUint64 a64)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeFloat (in float aFloat); */
NS_IMETHODIMP nsBinaryOutputStream::WriteFloat(float aFloat)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeDouble (in double aDouble); */
NS_IMETHODIMP nsBinaryOutputStream::WriteDouble(double aDouble)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeStringZ (in string aString); */
NS_IMETHODIMP nsBinaryOutputStream::WriteStringZ(const char * aString)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeWStringZ (in wstring aString); */
NS_IMETHODIMP nsBinaryOutputStream::WriteWStringZ(const PRUnichar * aString)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeUtf8Z (in wstring aString); */
NS_IMETHODIMP nsBinaryOutputStream::WriteUtf8Z(const PRUnichar * aString)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeBytes ([size_is (aLength)] in string aString, in PRUint32 aLength); */
NS_IMETHODIMP nsBinaryOutputStream::WriteBytes(const char * aString, PRUint32 aLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void writeByteArray ([array, size_is (aLength)] in PRUint8 aBytes, in PRUint32 aLength); */
NS_IMETHODIMP nsBinaryOutputStream::WriteByteArray(PRUint8 *aBytes, PRUint32 aLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
inline nsresult
NS_WriteOptionalStringZ(nsIBinaryOutputStream* aStream, const char* aString)
{
bool nonnull = (aString != nsnull);
nsresult rv = aStream->WriteBoolean(nonnull);
if (NS_SUCCEEDED(rv) && nonnull)
rv = aStream->WriteStringZ(aString);
return rv;
}
inline nsresult
NS_WriteOptionalWStringZ(nsIBinaryOutputStream* aStream, const PRUnichar* aString)
{
bool nonnull = (aString != nsnull);
nsresult rv = aStream->WriteBoolean(nonnull);
if (NS_SUCCEEDED(rv) && nonnull)
rv = aStream->WriteWStringZ(aString);
return rv;
}
#endif /* __gen_nsIBinaryOutputStream_h__ */
|