00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_ALLOC_H
00010 #define __OSKA_ALLOC_H
00011
00012 #ifdef __OSKA_API_DOC
00013
00038 void *os_alloc(size_t size);
00039
00052 void *os_alloc_nonzeroed(size_t size);
00053
00065 void os_free(void *ptr);
00066
00077 void *os_alloc_big(size_t size);
00078
00090 void os_free_big(void *ptr);
00091
00092 #endif
00093
00094 #ifdef linux
00095 # include <../linux/alloc.h>
00096 #elif defined(ZSDE)
00097 # include <../zoran/alloc.h>
00098 #elif defined(KMDF_MAJOR_VERSION)
00099 # include <../windows/kmdf/alloc.h>
00100 #else
00101 # error <oska/alloc.h> not provided for this OS
00102 #endif
00103
00104 #endif