summaryrefslogtreecommitdiff
path: root/libdeno/internal.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-09-27 17:33:10 -0400
committerGitHub <noreply@github.com>2018-09-27 17:33:10 -0400
commitd38ccfc6dcb8643daa4f9e695d47a79cf068f90e (patch)
treed36ad2934e8550242d50e866f4ad2b6c303646b7 /libdeno/internal.h
parentbf93ca54dd85686c7b93a6189913e48e10de8dcf (diff)
Support zero-copy data in libdeno.send(). (#838)
This is a large API refactor of deno.h which replaces deno_send() and deno_set_response() with deno_respond(). It also adds a req_id parameter to the deno_recv_cb. Make writeFile/writeFileSync use it.
Diffstat (limited to 'libdeno/internal.h')
-rw-r--r--libdeno/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdeno/internal.h b/libdeno/internal.h
index 93fdea5db..dd377b36c 100644
--- a/libdeno/internal.h
+++ b/libdeno/internal.h
@@ -15,7 +15,9 @@ struct deno_s {
v8::Persistent<v8::Function> recv;
v8::Persistent<v8::Function> global_error_handler;
v8::Persistent<v8::Context> context;
+ v8::Persistent<v8::Map> async_data_map;
deno_recv_cb cb;
+ int32_t next_req_id;
void* data;
};
}