view dwt/internal/mozilla/nsID.d @ 333:8235a17d9255

Continued progress on Mozilla.d
author John Reimer <terminal.node@gmail.com>
date Sun, 19 Oct 2008 21:18:43 -0700
parents dd63eb078d7a
children 3f4a5c7d138f
line wrap: on
line source

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;