xref: /unit/src/ruby/nxt_ruby.h (revision 2163:67d2d679509e)
1 
2 /*
3  * Copyright (C) Alexander Borisov
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 #ifndef _NXT_RUBY_H_INCLUDED_
8 #define _NXT_RUBY_H_INCLUDED_
9 
10 
11 #include <ruby.h>
12 #include <ruby/io.h>
13 #include <ruby/encoding.h>
14 #include <ruby/version.h>
15 
16 #include <nxt_main.h>
17 #include <nxt_router.h>
18 #include <nxt_runtime.h>
19 #include <nxt_application.h>
20 #include <nxt_unit_typedefs.h>
21 
22 
23 typedef struct {
24     VALUE                    env;
25     VALUE                    io_input;
26     VALUE                    io_error;
27     VALUE                    thread;
28     nxt_unit_ctx_t           *ctx;
29     nxt_unit_request_info_t  *req;
30 } nxt_ruby_ctx_t;
31 
32 
33 VALUE nxt_ruby_stream_io_input_init(void);
34 VALUE nxt_ruby_stream_io_error_init(void);
35 
36 #endif /* _NXT_RUBY_H_INCLUDED_ */
37