icinga2/base/memory.h
Gunnar Beutner 390a00e546 Made build system more Windows-friendly
Implemented endpoint system for the discovery service
2012-04-06 08:56:52 +02:00

23 lines
347 B
C++

#ifndef MEMORY_H
#define MEMORY_H
namespace icinga
{
DEFINE_EXCEPTION_CLASS(OutOfMemoryException);
class I2_BASE_API Memory
{
private:
Memory(void);
public:
static void *Allocate(size_t size);
static void *Reallocate(void *ptr, size_t size);
static char *StrDup(const char *str);
static void Free(void *ptr);
};
}
#endif /* MEMORY_H */