Mercurial > projects > dwt-mac
comparison dwt/internal/mozilla/nsIOutputStream.d @ 125:5583f8eeee6c
Synced mozilla with dwt-linux
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 16 Jan 2009 12:49:08 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
124:540fa4e9974a | 125:5583f8eeee6c |
---|---|
1 module dwt.internal.mozilla.nsIOutputStream; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 | |
7 import dwt.internal.mozilla.nsIInputStream; | |
8 | |
9 typedef nsresult function(nsIOutputStream aOutStream, | |
10 void *aClosure, | |
11 char *aToSegment, | |
12 PRUint32 aFromOffset, | |
13 PRUint32 aCount, | |
14 PRUint32 *aReadCount) nsReadSegmentFun; | |
15 | |
16 const char[] NS_IOUTPUTSTREAM_IID_STR = "0d0acd2a-61b4-11d4-9877-00c04fa0cf4a"; | |
17 | |
18 const nsIID NS_IOUTPUTSTREAM_IID= | |
19 {0x0d0acd2a, 0x61b4, 0x11d4, | |
20 [ 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a ]}; | |
21 | |
22 interface nsIOutputStream : nsISupports { | |
23 | |
24 static const char[] IID_STR = NS_IOUTPUTSTREAM_IID_STR; | |
25 static const nsIID IID = NS_IOUTPUTSTREAM_IID; | |
26 | |
27 extern(System): | |
28 nsresult Close(); | |
29 nsresult Flush(); | |
30 nsresult Write(char *aBuf, PRUint32 aCount, PRUint32 *_retval); | |
31 nsresult WriteFrom(nsIInputStream aFromStream, PRUint32 aCount, PRUint32 *_retval); | |
32 nsresult WriteSegments(nsReadSegmentFun aReader, void * aClosure, PRUint32 aCount, PRUint32 *_retval); | |
33 nsresult IsNonBlocking(PRBool *_retval); | |
34 | |
35 } | |
36 |