comparison dwt/internal/mozilla/nsIMemory.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 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
1 module dwt.internal.mozilla.nsIMemory;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.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 extern(System)
14 interface nsIMemory : nsISupports {
15 static const char[] IID_STR = NS_IMEMORY_IID_STR;
16 static const nsIID IID = NS_IMEMORY_IID;
17
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