diff options
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index 1b74a35..ad80ca5 100644 --- a/common/compat.h +++ b/common/compat.h @@ -133,6 +133,14 @@ char * p11_dl_error (void); #define p11_sleep_ms(ms) \ (Sleep (ms)) +typedef struct _p11_mmap p11_mmap; + +p11_mmap * p11_mmap_open (const char *path, + void **data, + size_t *size); + +void p11_mmap_close (p11_mmap *map); + #endif /* OS_WIN32 */ /* ---------------------------------------------------------------------------- @@ -186,6 +194,14 @@ char * p11_dl_error (void); nanosleep (&_ts, NULL); \ } while(0) +typedef struct _p11_mmap p11_mmap; + +p11_mmap * p11_mmap_open (const char *path, + void **data, + size_t *size); + +void p11_mmap_close (p11_mmap *map); + #endif /* OS_UNIX */ #ifdef HAVE_ERRNO_H |