Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIInputStream.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 module org.eclipse.swt.internal.mozilla.nsIInputStream; | |
2 | |
3 import org.eclipse.swt.internal.mozilla.Common; | |
4 import org.eclipse.swt.internal.mozilla.nsID; | |
5 import org.eclipse.swt.internal.mozilla.nsISupports; | |
6 | |
7 typedef nsresult function(nsIInputStream aInStream, | |
8 void *aClosure, | |
9 byte *aFromSegment, | |
10 PRUint32 aToOffset, | |
11 PRUint32 aCount, | |
12 PRUint32 *aWriteCount) nsWriteSegmentFun; | |
13 | |
14 const char[] NS_IINPUTSTREAM_IID_STR = "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"; | |
15 | |
16 const nsIID NS_IINPUTSTREAM_IID= | |
17 {0xfa9c7f6c, 0x61b3, 0x11d4, | |
18 [ 0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a ]}; | |
19 | |
20 interface nsIInputStream : nsISupports { | |
21 | |
22 static const char[] IID_STR = NS_IINPUTSTREAM_IID_STR; | |
23 static const nsIID IID = NS_IINPUTSTREAM_IID; | |
24 | |
25 extern(System): | |
26 nsresult Close(); | |
27 nsresult Available(PRUint32 *_retval); | |
28 nsresult Read(byte * aBuf, PRUint32 aCount, PRUint32 *_retval); | |
29 nsresult ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval); | |
30 nsresult IsNonBlocking(PRBool *_retval); | |
31 | |
32 } | |
33 |