Added Ruby support.

This commit is contained in:
Alexander Borisov
2018-03-21 16:50:07 +03:00
parent 778a90c319
commit 37051b6c15
11 changed files with 1534 additions and 1 deletions

34
src/ruby/nxt_ruby.h Normal file
View File

@@ -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_ */