Mercurial > projects > dwt-win
diff dwt/internal/mozilla/nsIMemory.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsIMemory.d Fri Jan 02 17:45:10 2009 -0800 @@ -0,0 +1,24 @@ +module dwt.internal.mozilla.nsIMemory; + +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.nsISupports; + +const char[] NS_IMEMORY_IID_STR = "59e7e77a-38e4-11d4-8cf5-0060b0fc14a3"; + +const nsIID NS_IMEMORY_IID= + {0x59e7e77a, 0x38e4, 0x11d4, + [ 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 ]}; + +interface nsIMemory : nsISupports { + static const char[] IID_STR = NS_IMEMORY_IID_STR; + static const nsIID IID = NS_IMEMORY_IID; + +extern(System): + void * Alloc(size_t size); + void * Realloc(void * ptr, size_t newSize); + void Free(void * ptr); + nsresult HeapMinimize(PRBool immediate); + nsresult IsLowMemory(PRBool *_retval); +} +