diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-10-09 17:53:31 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-10-09 17:53:31 +0300 |
commit | 029c1a9f509b2af60e02d74ef982fda1346d85e0 (patch) | |
tree | bc4265edcf0620f191393c1faa2a6610c60b1886 /src/nxt_application.h | |
parent | 6c5e5f25ef74dbf4d3dc524e293863fad7fcf524 (diff) | |
download | unit-029c1a9f509b2af60e02d74ef982fda1346d85e0.tar.gz unit-029c1a9f509b2af60e02d74ef982fda1346d85e0.tar.bz2 |
Renamed "go" application type to "external".
There's nothing specific to Go language. This type of application object can
be used to run any external application that utilizes libunit API.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_application.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h index 35346655..10f5a922 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -15,9 +15,9 @@ typedef enum { + NXT_APP_EXTERNAL, NXT_APP_PYTHON, NXT_APP_PHP, - NXT_APP_GO, NXT_APP_PERL, NXT_APP_RUBY, @@ -40,6 +40,12 @@ typedef struct nxt_common_app_conf_s nxt_common_app_conf_t; typedef struct { + char *executable; + nxt_conf_value_t *arguments; +} nxt_external_app_conf_t; + + +typedef struct { char *home; nxt_str_t path; nxt_str_t module; @@ -55,12 +61,6 @@ typedef struct { typedef struct { - char *executable; - nxt_conf_value_t *arguments; -} nxt_go_app_conf_t; - - -typedef struct { char *script; } nxt_perl_app_conf_t; @@ -80,11 +80,11 @@ struct nxt_common_app_conf_s { nxt_conf_value_t *environment; union { - nxt_python_app_conf_t python; - nxt_php_app_conf_t php; - nxt_go_app_conf_t go; - nxt_perl_app_conf_t perl; - nxt_ruby_app_conf_t ruby; + nxt_external_app_conf_t external; + nxt_python_app_conf_t python; + nxt_php_app_conf_t php; + nxt_perl_app_conf_t perl; + nxt_ruby_app_conf_t ruby; } u; }; @@ -161,7 +161,7 @@ nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name); nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length); NXT_EXPORT extern nxt_str_t nxt_server; -extern nxt_app_module_t nxt_go_module; +extern nxt_app_module_t nxt_external_module; NXT_EXPORT nxt_int_t nxt_unit_default_init(nxt_task_t *task, nxt_unit_init_t *init); |