Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIMemory.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 module org.eclipse.swt.internal.mozilla.nsIMemory; | |
2 | |
3 import org.eclipse.swt.internal.mozilla.Common; | |
4 import org.eclipse.swt.internal.mozilla.nsID; | |
5 import org.eclipse.swt.internal.mozilla.nsISupports; | |
6 | |
7 const char[] NS_IMEMORY_IID_STR = "59e7e77a-38e4-11d4-8cf5-0060b0fc14a3"; | |
8 | |
9 const nsIID NS_IMEMORY_IID= | |
10 {0x59e7e77a, 0x38e4, 0x11d4, | |
11 [ 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]}; | |
12 | |
13 interface nsIMemory : nsISupports { | |
14 static const char[] IID_STR = NS_IMEMORY_IID_STR; | |
15 static const nsIID IID = NS_IMEMORY_IID; | |
16 | |
17 extern(System): | |
18 void * Alloc(size_t size); | |
19 void * Realloc(void * ptr, size_t newSize); | |
20 void Free(void * ptr); | |
21 nsresult HeapMinimize(PRBool immediate); | |
22 nsresult IsLowMemory(PRBool *_retval); | |
23 } | |
24 |