Deleted Added
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_UNIT_H_INCLUDED_
7#define _NXT_UNIT_H_INCLUDED_
8

--- 182 unchanged lines hidden (view full) ---

191 * app_lib->port_recv(...);
192 * nxt_unit_process_msg(...);
193 * }
194 *
195 * The normally function returns when QUIT message received from Unit.
196 */
197int nxt_unit_run(nxt_unit_ctx_t *);
198
199int nxt_unit_run_once(nxt_unit_ctx_t *ctx);
200
201/* Destroy application library object. */
202void nxt_unit_done(nxt_unit_ctx_t *);
203
204/*
205 * Allocate and initialize new execution context with new listen port to
206 * process requests in other thread.
207 */
208nxt_unit_ctx_t *nxt_unit_ctx_alloc(nxt_unit_ctx_t *, void *);

--- 149 unchanged lines hidden ---