From 9d487df10df5000a84c9c1a75fff0cff525d4454 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 29 Aug 2017 02:59:35 +0300 Subject: The master process has been renamed to the main process. --- src/nxt_main_process.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/nxt_main_process.h (limited to 'src/nxt_main_process.h') diff --git a/src/nxt_main_process.h b/src/nxt_main_process.h new file mode 100644 index 00000000..d53dabfa --- /dev/null +++ b/src/nxt_main_process.h @@ -0,0 +1,40 @@ + +/* + * Copyright (C) Igor Sysoev + * Copyright (C) NGINX, Inc. + */ + +#ifndef _NXT_MAIN_PROCESS_H_INCLUDED_ +#define _NXT_MAIN_PROCESS_H_INCLUDED_ + + +typedef enum { + NXT_SOCKET_ERROR_SYSTEM = 0, + NXT_SOCKET_ERROR_NOINET6, + NXT_SOCKET_ERROR_PORT, + NXT_SOCKET_ERROR_INUSE, + NXT_SOCKET_ERROR_NOADDR, + NXT_SOCKET_ERROR_ACCESS, + NXT_SOCKET_ERROR_PATH, +} nxt_socket_error_t; + + +nxt_int_t nxt_main_process_start(nxt_thread_t *thr, nxt_task_t *task, + nxt_runtime_t *runtime); +void nxt_main_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime); + +nxt_int_t nxt_controller_start(nxt_task_t *task, void *data); +nxt_int_t nxt_router_start(nxt_task_t *task, void *data); +nxt_int_t nxt_discovery_start(nxt_task_t *task, void *data); +nxt_int_t nxt_app_start(nxt_task_t *task, void *data); + +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_discovery_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_main_process_signals[]; +extern const nxt_sig_event_t nxt_worker_process_signals[]; + + +#endif /* _NXT_MAIN_PROCESS_H_INCLUDED_ */ -- cgit