csr_mmap.h 420 B

1234567891011121314151617181920212223
  1. #ifndef _CSR_MMAP_H_
  2. #define _CSR_MMAP_H_
  3. #include "csr_typedefs.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct _csr_mmap_t csr_mmap_t;
  8. /* mmap.c */
  9. csr_mmap_t *csr_mmap_file(const char *, unsigned char bLoadMem);
  10. csr_mmap_t *csr_mmap_file_w(const char *);
  11. void csr_munmap_file(csr_mmap_t *);
  12. void *csr_mmap_map(csr_mmap_t *);
  13. csr_offset_t csr_mmap_size(csr_mmap_t *);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif