Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsISupports.d @ 348:9a4d7706df52
Test Update to fix linux XPCOM interface issues
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 31 Oct 2008 21:46:44 -0700 |
parents | 942da4b6558a |
children |
comparison
equal
deleted
inserted
replaced
347:ff6dd48f5248 | 348:9a4d7706df52 |
---|---|
7 | 7 |
8 const nsIID NS_ISUPPORTS_IID= | 8 const nsIID NS_ISUPPORTS_IID= |
9 { 0x00000000, 0x0000, 0x0000, | 9 { 0x00000000, 0x0000, 0x0000, |
10 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; | 10 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; |
11 | 11 |
12 //extern(System) | 12 interface IUnknown |
13 | |
14 interface nsISupports | |
15 { | 13 { |
16 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; | 14 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; |
17 static const nsIID IID = NS_ISUPPORTS_IID; | 15 static const nsIID IID = NS_ISUPPORTS_IID; |
18 | 16 |
17 extern(System): | |
19 nsresult QueryInterface( nsIID* uuid, void **result); | 18 nsresult QueryInterface( nsIID* uuid, void **result); |
20 | 19 |
21 nsrefcnt AddRef(); | 20 nsrefcnt AddRef(); |
22 nsrefcnt Release(); | 21 nsrefcnt Release(); |
23 } | 22 } |
26 // | 25 // |
27 // The IUnknown interface is special-cased in D and is specifically designed to be | 26 // The IUnknown interface is special-cased in D and is specifically designed to be |
28 // compatible with MS COM. XPCOM's nsISupports interface is the exact equivalent | 27 // compatible with MS COM. XPCOM's nsISupports interface is the exact equivalent |
29 // of IUnknown so we alias it here to take advantage of D's COM support. -JJR | 28 // of IUnknown so we alias it here to take advantage of D's COM support. -JJR |
30 | 29 |
31 //alias IUnknown nsISupports; | 30 alias IUnknown nsISupports; |