icinga2/base/memory.h

24 lines
347 B
C
Raw Normal View History

#ifndef MEMORY_H
#define MEMORY_H
2012-03-28 13:24:49 +02:00
namespace icinga
{
DEFINE_EXCEPTION_CLASS(OutOfMemoryException);
2012-03-28 13:24:49 +02:00
class I2_BASE_API Memory
2012-03-28 13:24:49 +02:00
{
private:
Memory(void);
2012-03-28 13:24:49 +02:00
public:
static void *Allocate(size_t size);
static void *Reallocate(void *ptr, size_t size);
static char *StrDup(const char *str);
2012-03-28 13:24:49 +02:00
static void Free(void *ptr);
};
}
#endif /* MEMORY_H */