Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla.old/nsIOutputStream.d @ 288:4ee8c4237614
old branches... commit by mistake
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 18:00:50 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
287:9cbe6285f746 | 288:4ee8c4237614 |
---|---|
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 extern(System) | |
23 | |
24 interface nsIOutputStream : nsISupports { | |
25 | |
26 static const char[] IID_STR = NS_IOUTPUTSTREAM_IID_STR; | |
27 static const nsIID IID = NS_IOUTPUTSTREAM_IID; | |
28 | |
29 nsresult Close(); | |
30 nsresult Flush(); | |
31 nsresult Write(char *aBuf, PRUint32 aCount, PRUint32 *_retval); | |
32 nsresult WriteFrom(nsIInputStream aFromStream, PRUint32 aCount, PRUint32 *_retval); | |
33 nsresult WriteSegments(nsReadSegmentFun aReader, void * aClosure, PRUint32 aCount, PRUint32 *_retval); | |
34 nsresult IsNonBlocking(PRBool *_retval); | |
35 | |
36 } | |
37 |