Max 5 API Reference
00001 #ifndef _SYSSHMEM_H_ 00002 #define _SYSSHMEM_H_ 00003 00004 BEGIN_USING_C_LINKAGE 00005 00006 // sysshmem is a platform independent interface to shared memory 00007 00008 typedef void *t_sysshmem; 00009 00010 #define SYSSHMEM_FLAGS_READONLY (0x00000001) 00011 00012 t_max_err sysshmem_alloc(t_sysshmem *x, const char *name, long size, long flags); // allocate memory that can be shared 00013 t_max_err sysshmem_open(t_sysshmem *x, const char *name, long flags); // open memory allocated elsewhere 00014 t_max_err sysshmem_close(t_sysshmem x); // after this call t_sysshmem handle is no longer valid 00015 00016 unsigned long sysshmem_getsize(t_sysshmem x); // number of bytes in shared memory block 00017 void* sysshmem_getptr(t_sysshmem x); // pointer to actual memory 00018 00019 END_USING_C_LINKAGE 00020 00021 #endif // #ifndef _SYSSHMEM_H_
Copyright © 2008, Cycling '74