45
|
1 module dwt.internal.mozilla.nsIMemory;
|
|
2
|
125
|
3 import dwt.internal.mozilla.Common;
|
|
4 import dwt.internal.mozilla.nsID;
|
|
5 import dwt.internal.mozilla.nsISupports;
|
45
|
6
|
125
|
7 const char[] NS_IMEMORY_IID_STR = "59e7e77a-38e4-11d4-8cf5-0060b0fc14a3";
|
45
|
8
|
125
|
9 const nsIID NS_IMEMORY_IID=
|
|
10 {0x59e7e77a, 0x38e4, 0x11d4,
|
|
11 [ 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]};
|
45
|
12
|
125
|
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 }
|
45
|
24
|