summaryrefslogtreecommitdiff
path: root/deno2/deno_internal.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-11 19:18:53 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-11 19:19:34 +0200
commit2443f7efee9c04f9331743a5e7ca5c71396f2004 (patch)
tree3f530649b1e41ceed21c4c26902e4b6672b589de /deno2/deno_internal.h
parent9590c87c623ba9654f332e26ba10370915e7ade9 (diff)
Use pub/sub instead of send/recv
Diffstat (limited to 'deno2/deno_internal.h')
-rw-r--r--deno2/deno_internal.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/deno2/deno_internal.h b/deno2/deno_internal.h
index 8472f4264..52c1770f6 100644
--- a/deno2/deno_internal.h
+++ b/deno2/deno_internal.h
@@ -12,9 +12,9 @@ extern "C" {
struct deno_s {
v8::Isolate* isolate;
std::string last_exception;
- v8::Persistent<v8::Function> recv;
+ v8::Persistent<v8::Function> sub;
v8::Persistent<v8::Context> context;
- deno_recv_cb cb;
+ deno_sub_cb cb;
void* data;
};
}
@@ -22,13 +22,13 @@ struct deno_s {
namespace deno {
void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Recv(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Send(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Sub(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Pub(const v8::FunctionCallbackInfo<v8::Value>& args);
static intptr_t external_references[] = {reinterpret_cast<intptr_t>(Print),
- reinterpret_cast<intptr_t>(Recv),
- reinterpret_cast<intptr_t>(Send), 0};
+ reinterpret_cast<intptr_t>(Sub),
+ reinterpret_cast<intptr_t>(Pub), 0};
-Deno* NewFromSnapshot(void* data, deno_recv_cb cb);
+Deno* NewFromSnapshot(void* data, deno_sub_cb cb);
v8::StartupData MakeSnapshot(v8::StartupData* prev_natives_blob,
v8::StartupData* prev_snapshot_blob,