LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIMemory.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/base/nsIMemory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIMemory_h__
       6                 : #define __gen_nsIMemory_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : 
      18                 : /* starting interface:    nsIMemory */
      19                 : #define NS_IMEMORY_IID_STR "59e7e77a-38e4-11d4-8cf5-0060b0fc14a3"
      20                 : 
      21                 : #define NS_IMEMORY_IID \
      22                 :   {0x59e7e77a, 0x38e4, 0x11d4, \
      23                 :     { 0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
      24                 : 
      25            1465 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMemory : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMEMORY_IID)
      29                 : 
      30                 :   /* [noscript,notxpcom] voidPtr alloc (in size_t size); */
      31                 :   NS_IMETHOD_(void *) Alloc(size_t size) = 0;
      32                 : 
      33                 :   /* [noscript,notxpcom] voidPtr realloc (in voidPtr ptr, in size_t newSize); */
      34                 :   NS_IMETHOD_(void *) Realloc(void *ptr, size_t newSize) = 0;
      35                 : 
      36                 :   /* [noscript,notxpcom] void free (in voidPtr ptr); */
      37                 :   NS_IMETHOD_(void) Free(void *ptr) = 0;
      38                 : 
      39                 :   /* void heapMinimize (in boolean immediate); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD HeapMinimize(bool immediate) = 0;
      41                 : 
      42                 :   /* boolean isLowMemory (); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD IsLowMemory(bool *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMemory, NS_IMEMORY_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSIMEMORY \
      51                 :   NS_IMETHOD_(void *) Alloc(size_t size); \
      52                 :   NS_IMETHOD_(void *) Realloc(void *ptr, size_t newSize); \
      53                 :   NS_IMETHOD_(void) Free(void *ptr); \
      54                 :   NS_SCRIPTABLE NS_IMETHOD HeapMinimize(bool immediate); \
      55                 :   NS_SCRIPTABLE NS_IMETHOD IsLowMemory(bool *_retval NS_OUTPARAM); 
      56                 : 
      57                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58                 : #define NS_FORWARD_NSIMEMORY(_to) \
      59                 :   NS_IMETHOD_(void *) Alloc(size_t size) { return _to Alloc(size); } \
      60                 :   NS_IMETHOD_(void *) Realloc(void *ptr, size_t newSize) { return _to Realloc(ptr, newSize); } \
      61                 :   NS_IMETHOD_(void) Free(void *ptr) { return _to Free(ptr); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD HeapMinimize(bool immediate) { return _to HeapMinimize(immediate); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD IsLowMemory(bool *_retval NS_OUTPARAM) { return _to IsLowMemory(_retval); } 
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      66                 : #define NS_FORWARD_SAFE_NSIMEMORY(_to) \
      67                 :   NS_IMETHOD_(void *) Alloc(size_t size) { return !_to ? NS_ERROR_NULL_POINTER : _to->Alloc(size); } \
      68                 :   NS_IMETHOD_(void *) Realloc(void *ptr, size_t newSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->Realloc(ptr, newSize); } \
      69                 :   NS_IMETHOD_(void) Free(void *ptr) { return !_to ? NS_ERROR_NULL_POINTER : _to->Free(ptr); } \
      70                 :   NS_SCRIPTABLE NS_IMETHOD HeapMinimize(bool immediate) { return !_to ? NS_ERROR_NULL_POINTER : _to->HeapMinimize(immediate); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD IsLowMemory(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLowMemory(_retval); } 
      72                 : 
      73                 : #if 0
      74                 : /* Use the code below as a template for the implementation class for this interface. */
      75                 : 
      76                 : /* Header file */
      77                 : class nsMemory : public nsIMemory
      78                 : {
      79                 : public:
      80                 :   NS_DECL_ISUPPORTS
      81                 :   NS_DECL_NSIMEMORY
      82                 : 
      83                 :   nsMemory();
      84                 : 
      85                 : private:
      86                 :   ~nsMemory();
      87                 : 
      88                 : protected:
      89                 :   /* additional members */
      90                 : };
      91                 : 
      92                 : /* Implementation file */
      93                 : NS_IMPL_ISUPPORTS1(nsMemory, nsIMemory)
      94                 : 
      95                 : nsMemory::nsMemory()
      96                 : {
      97                 :   /* member initializers and constructor code */
      98                 : }
      99                 : 
     100                 : nsMemory::~nsMemory()
     101                 : {
     102                 :   /* destructor code */
     103                 : }
     104                 : 
     105                 : /* [noscript,notxpcom] voidPtr alloc (in size_t size); */
     106                 : NS_IMETHODIMP_(void *) nsMemory::Alloc(size_t size)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* [noscript,notxpcom] voidPtr realloc (in voidPtr ptr, in size_t newSize); */
     112                 : NS_IMETHODIMP_(void *) nsMemory::Realloc(void *ptr, size_t newSize)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* [noscript,notxpcom] void free (in voidPtr ptr); */
     118                 : NS_IMETHODIMP_(void) nsMemory::Free(void *ptr)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* void heapMinimize (in boolean immediate); */
     124                 : NS_IMETHODIMP nsMemory::HeapMinimize(bool immediate)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* boolean isLowMemory (); */
     130                 : NS_IMETHODIMP nsMemory::IsLowMemory(bool *_retval NS_OUTPARAM)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* End of implementation class template. */
     136                 : #endif
     137                 : 
     138                 : 
     139                 : #endif /* __gen_nsIMemory_h__ */

Generated by: LCOV version 1.7