1 module org.eclipse.swt.internal.mozilla.nsIMemory;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 
9 const char[] NS_IMEMORY_IID_STR = "59e7e77a-38e4-11d4-8cf5-0060b0fc14a3";
10 
11 const nsIID NS_IMEMORY_IID= 
12   {0x59e7e77a, 0x38e4, 0x11d4, 
13     [ 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]};
14 
15 interface nsIMemory : nsISupports {
16   static const char[] IID_STR = NS_IMEMORY_IID_STR;
17   static const nsIID IID = NS_IMEMORY_IID;
18   
19 extern(System):
20   void *    Alloc(size_t size);
21   void *    Realloc(void * ptr, size_t newSize);
22   void      Free(void * ptr);
23   nsresult  HeapMinimize(PRBool immediate);
24   nsresult  IsLowMemory(PRBool *_retval);
25 }
26