Mercurial > projects > dwt-linux
diff dwt/internal/mozilla/nsID.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 | 8235a17d9255 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsID.d Fri Jul 18 05:32:53 2008 -0700 @@ -0,0 +1,26 @@ +module dwt.internal.mozilla.nsID; + +import dwt.internal.mozilla.Common; + +align(1) +struct nsID +{ + PRUint32 m0; + PRUint16 m1; + PRUint16 m2; + PRUint8[8] m3; + + static nsID opCall(PRUint32 v0, PRUint16 v1, PRUint16 v2, PRUint8[8] v3) + { + nsID result; + result.m0 = v0; + result.m1 = v1; + result.m2 = v2; + for(int i=0; i<8; ++i) + result.m3[i] = v3[i]; + return result; + } +} + +alias nsID nsCID; +alias nsID nsIID;