summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.h
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
commit960962ddce87f6b401523b4426e8b5c61544ec7b (patch)
tree3c6fa7d9871701bca291ea5899a98397dacc5a87 /src/nxt_application.h
parent311db93f006153c309b975942c2415655e2ff417 (diff)
downloadunit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.gz
unit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.bz2
Added Perl support.
Diffstat (limited to 'src/nxt_application.h')
-rw-r--r--src/nxt_application.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index d36d8cd1..b6391149 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -13,6 +13,7 @@ typedef enum {
NXT_APP_PYTHON,
NXT_APP_PHP,
NXT_APP_GO,
+ NXT_APP_PERL,
NXT_APP_UNKNOWN,
} nxt_app_type_t;
@@ -52,6 +53,11 @@ typedef struct {
} nxt_go_app_conf_t;
+typedef struct {
+ char *script;
+} nxt_perl_app_conf_t;
+
+
struct nxt_common_app_conf_s {
nxt_str_t name;
nxt_str_t type;
@@ -64,6 +70,7 @@ struct nxt_common_app_conf_s {
nxt_python_app_conf_t python;
nxt_php_app_conf_t php;
nxt_go_app_conf_t go;
+ nxt_perl_app_conf_t perl;
} u;
};
@@ -289,7 +296,7 @@ nxt_app_msg_read_length(u_char *src, size_t *length)
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);
extern nxt_application_module_t nxt_go_module;