summaryrefslogtreecommitdiff
path: root/src/deno.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-06 16:26:34 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-06 18:25:09 -0400
commita2dde56c5961f451b9042c1f651af372c4984034 (patch)
tree06aaf64e257d9d6bd1f6f16eca2b02aab971c04b /src/deno.h
parent9778eceaf5922b1e051859a68b2e02a2f1b1ee8b (diff)
Remove channel parameter from deno_send/recv.
Diffstat (limited to 'src/deno.h')
-rw-r--r--src/deno.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deno.h b/src/deno.h
index 605a76456..fd2b4766a 100644
--- a/src/deno.h
+++ b/src/deno.h
@@ -20,7 +20,7 @@ typedef struct deno_s Deno;
// A callback to receive a message from deno.send javascript call.
// buf is valid only for the lifetime of the call.
-typedef void (*deno_recv_cb)(Deno* d, const char* channel, deno_buf buf);
+typedef void (*deno_recv_cb)(Deno* d, deno_buf buf);
void deno_init();
const char* deno_v8_version();
@@ -37,7 +37,7 @@ int deno_execute(Deno* d, const char* js_filename, const char* js_source);
// Routes message to the javascript callback set with deno.recv(). A false
// return value indicates error. Check deno_last_exception() for exception text.
// 0 = fail, 1 = success
-int deno_send(Deno* d, const char* channel, deno_buf buf);
+int deno_send(Deno* d, deno_buf buf);
// Call this inside a deno_recv_cb to respond synchronously to messages.
// If this is not called during the life time of a deno_recv_cb callback