diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 19:18:53 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 19:19:34 +0200 |
commit | 2443f7efee9c04f9331743a5e7ca5c71396f2004 (patch) | |
tree | 3f530649b1e41ceed21c4c26902e4b6672b589de /deno2/include | |
parent | 9590c87c623ba9654f332e26ba10370915e7ade9 (diff) |
Use pub/sub instead of send/recv
Diffstat (limited to 'deno2/include')
-rw-r--r-- | deno2/include/deno.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deno2/include/deno.h b/deno2/include/deno.h index f67a7cf51..c6bc82e26 100644 --- a/deno2/include/deno.h +++ b/deno2/include/deno.h @@ -18,14 +18,14 @@ struct deno_s; typedef struct deno_s Deno; // The callback from V8 when data is sent. -typedef deno_buf (*deno_recv_cb)(Deno* d, deno_buf buf); +typedef deno_buf (*deno_sub_cb)(Deno* d, deno_buf buf); void deno_init(); const char* deno_v8_version(); void deno_set_flags(int* argc, char** argv); // Constructor -Deno* deno_new(void* data, deno_recv_cb cb); +Deno* deno_new(void* data, deno_sub_cb cb); // Returns false on error. // Get error text with deno_last_exception(). @@ -33,7 +33,7 @@ bool deno_load(Deno* d, const char* name_s, const char* source_s); // Returns false on error. // Get error text with deno_last_exception(). -bool deno_send(Deno* d, deno_buf buf); +bool deno_pub(Deno* d, deno_buf buf); const char* deno_last_exception(Deno* d); |