mirror of
https://github.com/nginx/nginx.git
synced 2024-12-16 14:19:00 +08:00
28 lines
393 B
C
28 lines
393 B
C
|
|
||
|
/*
|
||
|
* 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_ */
|