26 lines
453 B
C
26 lines
453 B
C
#ifndef CRT_SHM_H
|
|
#define CRT_SHM_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct crt_shm crt_shm_t;
|
|
|
|
crt_shm_t* crt_shm_create(const char* name, size_t size);
|
|
crt_shm_t* crt_shm_open(const char* name);
|
|
void crt_shm_close(crt_shm_t* shm);
|
|
|
|
void* crt_shm_ptr(crt_shm_t* shm);
|
|
size_t crt_shm_size(crt_shm_t* shm);
|
|
int crt_shm_resize(crt_shm_t* shm, size_t new_size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|