annotate dwt/internal/mozilla/nsISupports.d~ @ 291:b0bd1789106b

fix: added wrong directory :(
author John Reimer<terminal.node@gmail.com>
date Wed, 06 Aug 2008 18:29:44 -0700
parents 44258e0b6687
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
286
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
1 module dwt.internal.mozilla.nsISupports;
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
2
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
3 import dwt.internal.mozilla.Common;
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
4 import dwt.internal.mozilla.nsID;
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
5
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
6 const char[] NS_ISUPPORTS_IID_STR = "00000000-0000-0000-c000-000000000046";
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
7
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
8 const nsIID NS_ISUPPORTS_IID=
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
9 { 0x00000000, 0x0000, 0x0000,
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
10 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] };
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
11
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
12 extern(System)
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
13
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
14 interface IUnknown
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
15 {
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
16 static const char[] IID_STR = NS_ISUPPORTS_IID_STR;
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
17 static const nsIID IID = NS_ISUPPORTS_IID;
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
18
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
19 nsresult QueryInterface(nsIID * uuid, void **result);
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
20
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
21 nsrefcnt AddRef();
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
22 nsrefcnt Release();
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
23 }
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
24
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
25 // WHY WE USE COM's IUnknown for XPCOM:
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
26 //
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
27 // The IUnknown interface is special-cased in D and is specifically designed to be
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
28 // compatible with MS COM. XPCOM's nsISupports interface is the exact equivalent
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
29 // of IUnknown so we alias it here to take advantage of D's COM support. -JJR
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
30
44258e0b6687 More fixes for xpcom
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
31 alias IUnknown nsISupports;