This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-hasp-tools/platform/include/hasp_shm.h
2023-06-21 10:40:09 +08:00

24 lines
444 B
C

#ifndef _HASP_SHM_H
#define _HASP_SHM_H
#ifdef __cpluscplus
extern "C"
{
#endif
struct hasp_shm;
struct hasp_shm *hasp_shm_new(const char *name);
void hasp_shm_free(struct hasp_shm *shm);
void hasp_shm_lock(struct hasp_shm *shm);
void hasp_shm_unlock(struct hasp_shm *shm);
void hasp_shm_write(struct hasp_shm *shm, char *data, int len);
void hasp_shm_read(struct hasp_shm *shm, char *buff, int size);
#ifdef __cpluscplus
}
#endif
#endif