nxt_application.h (1488:6976d36be926) nxt_application.h (1489:4a3ec07f4b19)
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_APPLICATION_H_INCLUDED_

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

31 nxt_process_t *process, nxt_common_app_conf_t *conf);
32
33
34typedef struct {
35 nxt_app_type_t type;
36 u_char *version;
37 char *file;
38 nxt_app_module_t *module;
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_APPLICATION_H_INCLUDED_

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

31 nxt_process_t *process, nxt_common_app_conf_t *conf);
32
33
34typedef struct {
35 nxt_app_type_t type;
36 u_char *version;
37 char *file;
38 nxt_app_module_t *module;
39 nxt_array_t *mounts; /* of nxt_fs_mount_t */
39} nxt_app_lang_module_t;
40
41
42typedef struct {
43 char *executable;
44 nxt_conf_value_t *arguments;
45} nxt_external_app_conf_t;
46

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

105
106struct nxt_app_module_s {
107 size_t compat_length;
108 uint32_t *compat;
109
110 nxt_str_t type;
111 const char *version;
112
40} nxt_app_lang_module_t;
41
42
43typedef struct {
44 char *executable;
45 nxt_conf_value_t *arguments;
46} nxt_external_app_conf_t;
47

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

106
107struct nxt_app_module_s {
108 size_t compat_length;
109 uint32_t *compat;
110
111 nxt_str_t type;
112 const char *version;
113
114 const nxt_fs_mount_t *mounts;
115 nxt_uint_t nmounts;
116
113 nxt_application_setup_t setup;
114 nxt_process_start_t start;
115};
116
117
118nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name);
119nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length);
120
121NXT_EXPORT extern nxt_str_t nxt_server;
122extern nxt_app_module_t nxt_external_module;
123
124NXT_EXPORT nxt_int_t nxt_unit_default_init(nxt_task_t *task,
125 nxt_unit_init_t *init);
126
127
128#endif /* _NXT_APPLICATION_H_INCLIDED_ */
117 nxt_application_setup_t setup;
118 nxt_process_start_t start;
119};
120
121
122nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name);
123nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length);
124
125NXT_EXPORT extern nxt_str_t nxt_server;
126extern nxt_app_module_t nxt_external_module;
127
128NXT_EXPORT nxt_int_t nxt_unit_default_init(nxt_task_t *task,
129 nxt_unit_init_t *init);
130
131
132#endif /* _NXT_APPLICATION_H_INCLIDED_ */