diff options
Diffstat (limited to 'src/libdeno.rs')
-rw-r--r-- | src/libdeno.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libdeno.rs b/src/libdeno.rs index 637b3ef91..c7a03e3bb 100644 --- a/src/libdeno.rs +++ b/src/libdeno.rs @@ -19,7 +19,12 @@ pub struct deno_buf { pub data_len: usize, } -type DenoRecvCb = unsafe extern "C" fn(d: *const isolate, buf: deno_buf); +type DenoRecvCb = unsafe extern "C" fn( + d: *const isolate, + req_id: i32, + buf: deno_buf, + data_buf: deno_buf, +); extern "C" { pub fn deno_init(); @@ -29,8 +34,7 @@ extern "C" { pub fn deno_delete(i: *const isolate); pub fn deno_last_exception(i: *const isolate) -> *const c_char; pub fn deno_get_data(i: *const isolate) -> *const c_void; - pub fn deno_set_response(i: *const isolate, buf: deno_buf); - pub fn deno_send(i: *const isolate, buf: deno_buf); + pub fn deno_respond(i: *const isolate, req_id: i32, buf: deno_buf); pub fn deno_execute( i: *const isolate, js_filename: *const c_char, |