blob: 85ef019b72217fb42f6f184a5f8d330d26f50b6e [file] [log] [blame]
Igor Sysoev9e580192006-02-01 18:22:15 +00001
2/*
3 * Copyright (C) Igor Sysoev
4 */
5
6
Igor Sysoeva7dd8d82006-09-15 10:25:32 +00007#ifndef _NGX_SHMEM_H_INCLUDED_
8#define _NGX_SHMEM_H_INCLUDED_
Igor Sysoev9e580192006-02-01 18:22:15 +00009
10
11#include <ngx_config.h>
12#include <ngx_core.h>
13
14
15typedef struct {
16 u_char *addr;
17 size_t size;
18 ngx_log_t *log;
19} ngx_shm_t;
20
21
22ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
23void ngx_shm_free(ngx_shm_t *shm);
24
25
Igor Sysoeva7dd8d82006-09-15 10:25:32 +000026#endif /* _NGX_SHMEM_H_INCLUDED_ */