diff options
Diffstat (limited to 'src/os/win32/ngx_shmem.h')
-rw-r--r-- | src/os/win32/ngx_shmem.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/os/win32/ngx_shmem.h b/src/os/win32/ngx_shmem.h new file mode 100644 index 000000000..fe3e71df6 --- /dev/null +++ b/src/os/win32/ngx_shmem.h @@ -0,0 +1,27 @@ + +/* + * Copyright (C) Igor Sysoev + */ + + +#ifndef _NGX_SHARED_H_INCLUDED_ +#define _NGX_SHARED_H_INCLUDED_ + + +#include <ngx_config.h> +#include <ngx_core.h> + + +typedef struct { + u_char *addr; + size_t size; + HANDLE handle; + ngx_log_t *log; +} ngx_shm_t; + + +ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); +void ngx_shm_free(ngx_shm_t *shm); + + +#endif /* _NGX_SHARED_H_INCLUDED_ */ |