summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_master_process.h
blob: 6f7cc067811fff3f2b60f633efc164441e7815f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) NGINX, Inc.
 */

#ifndef _NXT_MASTER_PROCESS_H_INCLUDED_
#define _NXT_MASTER_PROCESS_H_INCLUDED_


nxt_int_t nxt_master_process_start(nxt_thread_t *thr, nxt_task_t *task,
    nxt_runtime_t *runtime);
void nxt_master_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime);

nxt_int_t nxt_controller_start(nxt_task_t *task, nxt_runtime_t *rt);
nxt_int_t nxt_router_start(nxt_task_t *task, nxt_runtime_t *rt);


extern nxt_port_handler_t  nxt_controller_process_port_handlers[];
extern nxt_port_handler_t  nxt_worker_process_port_handlers[];
extern nxt_port_handler_t  nxt_app_process_port_handlers[];
extern nxt_port_handler_t  nxt_router_process_port_handlers[];
extern const nxt_sig_event_t  nxt_master_process_signals[];
extern const nxt_sig_event_t  nxt_worker_process_signals[];


#endif /* _NXT_MASTER_PROCESS_H_INCLUDED_ */