summaryrefslogtreecommitdiffhomepage
path: root/src/ruby/nxt_ruby.h
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-03-21 16:50:07 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-03-21 16:50:07 +0300
commit37051b6c15cce7d6ab01c50e1086f8ef0b34e93d (patch)
treed6f7fee987e795613c4088c7fa12709888d0a00e /src/ruby/nxt_ruby.h
parent778a90c319e47f688b749e43df33f3eb9dce3e72 (diff)
downloadunit-37051b6c15cce7d6ab01c50e1086f8ef0b34e93d.tar.gz
unit-37051b6c15cce7d6ab01c50e1086f8ef0b34e93d.tar.bz2
Added Ruby support.
Diffstat (limited to '')
-rw-r--r--src/ruby/nxt_ruby.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ruby/nxt_ruby.h b/src/ruby/nxt_ruby.h
new file mode 100644
index 00000000..9a6be0d4
--- /dev/null
+++ b/src/ruby/nxt_ruby.h
@@ -0,0 +1,34 @@
+
+/*
+ * Copyright (C) Alexander Borisov
+ * Copyright (C) NGINX, Inc.
+ */
+
+#ifndef _NXT_RUBY_H_INCLUDED_
+#define _NXT_RUBY_H_INCLUDED_
+
+
+#include <ruby.h>
+#include <ruby/io.h>
+#include <ruby/encoding.h>
+#include <ruby/version.h>
+
+#include <nxt_main.h>
+#include <nxt_router.h>
+#include <nxt_runtime.h>
+#include <nxt_application.h>
+
+
+typedef struct {
+ nxt_task_t *task;
+ nxt_app_rmsg_t *rmsg;
+ nxt_app_wmsg_t *wmsg;
+
+ size_t body_preread_size;
+} nxt_ruby_run_ctx_t;
+
+
+VALUE nxt_ruby_stream_io_input_init(void);
+VALUE nxt_ruby_stream_io_error_init(void);
+
+#endif /* _NXT_RUBY_H_INCLUDED_ */