sp_shm.h 388 B

1234567891011121314151617181920
  1. #ifndef SP_SHM_H
  2. #define SP_SHM_H
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /* help two process to find a same virtual memory address range */
  8. SPBASE_API int sp_shm_get_range(int mask);
  9. SPBASE_API void *sp_shm_init(int range, int newcreator);
  10. SPBASE_API void sp_shm_term();
  11. SPBASE_API int sp_shm_is_newalloc();
  12. #ifdef __cplusplus
  13. } // extern "C" {
  14. #endif
  15. #endif // SP_SHM_H