Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/mozilla/nsISupports.d @ 53:7e78af7adab5
[swt lin]
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 21:29:10 +0100 |
parents | f713da8bc051 |
children | 70388b0e6dad |
comparison
equal
deleted
inserted
replaced
52:fa9548cd8d89 | 53:7e78af7adab5 |
---|---|
9 | 9 |
10 const nsIID NS_ISUPPORTS_IID= | 10 const nsIID NS_ISUPPORTS_IID= |
11 { 0x00000000, 0x0000, 0x0000, | 11 { 0x00000000, 0x0000, 0x0000, |
12 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; | 12 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; |
13 | 13 |
14 version(D_Version2){ | |
15 mixin("alias const(nsIID) cnsIID;"); | |
16 mixin("alias const(nsID) cnsID;"); | |
17 } else { // D1 | |
18 alias nsIID cnsIID; | |
19 alias nsID cnsID; | |
20 } | |
14 interface IUnknown | 21 interface IUnknown |
15 { | 22 { |
16 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; | 23 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; |
17 static const nsIID IID = NS_ISUPPORTS_IID; | 24 static const nsIID IID = NS_ISUPPORTS_IID; |
18 | 25 |
19 extern(System): | 26 extern(System): |
20 nsresult QueryInterface( nsIID* uuid, void **result); | 27 nsresult QueryInterface( cnsIID* uuid, void **result); |
21 | 28 |
22 nsrefcnt AddRef(); | 29 nsrefcnt AddRef(); |
23 nsrefcnt Release(); | 30 nsrefcnt Release(); |
24 } | 31 } |
25 | 32 |