nxt_application.h (510:4979fe09d9cd) nxt_application.h (584:28e8e1877e62)
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_
9#define _NXT_APPLICATION_H_INCLUDED_
10
11
12typedef enum {
13 NXT_APP_PYTHON,
14 NXT_APP_PHP,
15 NXT_APP_GO,
16 NXT_APP_PERL,
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_
9#define _NXT_APPLICATION_H_INCLUDED_
10
11
12typedef enum {
13 NXT_APP_PYTHON,
14 NXT_APP_PHP,
15 NXT_APP_GO,
16 NXT_APP_PERL,
17 NXT_APP_RUBY,
17
18 NXT_APP_UNKNOWN,
19} nxt_app_type_t;
20
21
22typedef struct nxt_app_module_s nxt_application_module_t;
23typedef struct nxt_app_module_s nxt_app_module_t;
24

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

53} nxt_go_app_conf_t;
54
55
56typedef struct {
57 char *script;
58} nxt_perl_app_conf_t;
59
60
18
19 NXT_APP_UNKNOWN,
20} nxt_app_type_t;
21
22
23typedef struct nxt_app_module_s nxt_application_module_t;
24typedef struct nxt_app_module_s nxt_app_module_t;
25

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

54} nxt_go_app_conf_t;
55
56
57typedef struct {
58 char *script;
59} nxt_perl_app_conf_t;
60
61
62typedef struct {
63 nxt_str_t script;
64} nxt_ruby_app_conf_t;
65
66
61struct nxt_common_app_conf_s {
62 nxt_str_t name;
63 nxt_str_t type;
64 nxt_str_t user;
65 nxt_str_t group;
66
67 char *working_directory;
68
69 union {
70 nxt_python_app_conf_t python;
71 nxt_php_app_conf_t php;
72 nxt_go_app_conf_t go;
73 nxt_perl_app_conf_t perl;
67struct nxt_common_app_conf_s {
68 nxt_str_t name;
69 nxt_str_t type;
70 nxt_str_t user;
71 nxt_str_t group;
72
73 char *working_directory;
74
75 union {
76 nxt_python_app_conf_t python;
77 nxt_php_app_conf_t php;
78 nxt_go_app_conf_t go;
79 nxt_perl_app_conf_t perl;
80 nxt_ruby_app_conf_t ruby;
74 } u;
75};
76
77
78typedef struct {
79 nxt_str_t name;
80 nxt_str_t value;
81} nxt_app_header_field_t;

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

140
141struct nxt_app_wmsg_s {
142 nxt_port_t *port; /* where prepared buf will be sent */
143 nxt_buf_t *write;
144 nxt_buf_t **buf;
145 uint32_t stream;
146};
147
81 } u;
82};
83
84
85typedef struct {
86 nxt_str_t name;
87 nxt_str_t value;
88} nxt_app_header_field_t;

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

147
148struct nxt_app_wmsg_s {
149 nxt_port_t *port; /* where prepared buf will be sent */
150 nxt_buf_t *write;
151 nxt_buf_t **buf;
152 uint32_t stream;
153};
154
155
148struct nxt_app_rmsg_s {
156struct nxt_app_rmsg_s {
149 nxt_buf_t *buf; /* current buffer to read */
157 nxt_buf_t *buf; /* current buffer to read */
150};
151
152
153nxt_inline u_char *
154nxt_app_msg_write_length(u_char *dst, size_t length);
155
156/* TODO asynchronous mmap buffer assignment */
157NXT_EXPORT u_char *nxt_app_msg_write_get_buf(nxt_task_t *task,

--- 147 unchanged lines hidden ---
158};
159
160
161nxt_inline u_char *
162nxt_app_msg_write_length(u_char *dst, size_t length);
163
164/* TODO asynchronous mmap buffer assignment */
165NXT_EXPORT u_char *nxt_app_msg_write_get_buf(nxt_task_t *task,

--- 147 unchanged lines hidden ---