Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsIOutputStream.d @ 272:dd63eb078d7a
xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 05:32:53 -0700 |
parents | |
children | 942da4b6558a |
comparison
equal
deleted
inserted
replaced
271:d472fae79005 | 272:dd63eb078d7a |
---|---|
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 |