nxt_ruby.h (584:28e8e1877e62) nxt_ruby.h (743:e0f0cd7d244a)
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>
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>
20
21
22typedef struct {
21
22
23typedef struct {
23 nxt_task_t *task;
24 nxt_app_rmsg_t *rmsg;
25 nxt_app_wmsg_t *wmsg;
26
27 size_t body_preread_size;
24 nxt_unit_ctx_t *unit_ctx;
25 nxt_unit_request_info_t *req;
28} nxt_ruby_run_ctx_t;
29
30
31VALUE nxt_ruby_stream_io_input_init(void);
32VALUE nxt_ruby_stream_io_error_init(void);
33
34#endif /* _NXT_RUBY_H_INCLUDED_ */
26} nxt_ruby_run_ctx_t;
27
28
29VALUE nxt_ruby_stream_io_input_init(void);
30VALUE nxt_ruby_stream_io_error_init(void);
31
32#endif /* _NXT_RUBY_H_INCLUDED_ */