comparison dwt/internal/mozilla/nsIInputStream.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 93409d9838c5
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
1 module dwt.internal.mozilla.nsIInputStream;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 typedef nsresult function(nsIInputStream aInStream,
8 void *aClosure,
9 char *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 extern(System)
21
22 interface nsIInputStream : nsISupports {
23
24 static const char[] IID_STR = NS_IINPUTSTREAM_IID_STR;
25 static const nsIID IID = NS_IINPUTSTREAM_IID;
26
27 nsresult Close();
28 nsresult Available(PRUint32 *_retval);
29 nsresult Read(char * aBuf, PRUint32 aCount, PRUint32 *_retval);
30 nsresult ReadSegments(nsWriteSegmentFun aWriter, void * aClosure, PRUint32 aCount, PRUint32 *_retval);
31 nsresult IsNonBlocking(PRBool *_retval);
32
33 }
34