Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsIInputStream.d @ 278:93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Thu, 31 Jul 2008 19:17:51 -0700 |
parents | dd63eb078d7a |
children | 3dfa75c74ed2 |
comparison
equal
deleted
inserted
replaced
277:687f261028b8 | 278:93409d9838c5 |
---|---|
4 import dwt.internal.mozilla.nsID; | 4 import dwt.internal.mozilla.nsID; |
5 import dwt.internal.mozilla.nsISupports; | 5 import dwt.internal.mozilla.nsISupports; |
6 | 6 |
7 typedef nsresult function(nsIInputStream aInStream, | 7 typedef nsresult function(nsIInputStream aInStream, |
8 void *aClosure, | 8 void *aClosure, |
9 char *aFromSegment, | 9 byte *aFromSegment, |
10 PRUint32 aToOffset, | 10 PRUint32 aToOffset, |
11 PRUint32 aCount, | 11 PRUint32 aCount, |
12 PRUint32 *aWriteCount) nsWriteSegmentFun; | 12 PRUint32 *aWriteCount) nsWriteSegmentFun; |
13 | 13 |
14 const char[] NS_IINPUTSTREAM_IID_STR = "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"; | 14 const char[] NS_IINPUTSTREAM_IID_STR = "fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a"; |
24 static const char[] IID_STR = NS_IINPUTSTREAM_IID_STR; | 24 static const char[] IID_STR = NS_IINPUTSTREAM_IID_STR; |
25 static const nsIID IID = NS_IINPUTSTREAM_IID; | 25 static const nsIID IID = NS_IINPUTSTREAM_IID; |
26 | 26 |
27 nsresult Close(); | 27 nsresult Close(); |
28 nsresult Available(PRUint32 *_retval); | 28 nsresult Available(PRUint32 *_retval); |
29 nsresult Read(char * aBuf, PRUint32 aCount, PRUint32 *_retval); | 29 nsresult Read(byte * aBuf, PRUint32 aCount, PRUint32 *_retval); |
30 nsresult ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval); | 30 nsresult ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval); |
31 nsresult IsNonBlocking(PRBool *_retval); | 31 nsresult IsNonBlocking(PRBool *_retval); |
32 | 32 |
33 } | 33 } |
34 | 34 |