授权管理使用共享内存支持主从模式
This commit is contained in:
23
platform/include/hasp_shm.h
Normal file
23
platform/include/hasp_shm.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user