summaryrefslogtreecommitdiff
path: root/src/deno_internal.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-01 18:07:12 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-07-03 21:22:39 +0200
commita33f575cda908c75ad18d56eff014f709186bde2 (patch)
tree084aa1c00c3fc4492090440ed23a27799106cc12 /src/deno_internal.h
parent7fcaf7d35dc94d3fe40faf59002131201ba24dc4 (diff)
Switch back to recv/send instead of pub/sub for low-level API.
Diffstat (limited to 'src/deno_internal.h')
-rw-r--r--src/deno_internal.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/deno_internal.h b/src/deno_internal.h
index 742ac3e3a..ad0a6f537 100644
--- a/src/deno_internal.h
+++ b/src/deno_internal.h
@@ -13,9 +13,9 @@ struct deno_s {
v8::Isolate* isolate;
const v8::FunctionCallbackInfo<v8::Value>* currentArgs;
std::string last_exception;
- v8::Persistent<v8::Function> sub;
+ v8::Persistent<v8::Function> recv;
v8::Persistent<v8::Context> context;
- deno_sub_cb cb;
+ deno_recv_cb cb;
void* data;
};
}
@@ -27,13 +27,13 @@ struct InternalFieldData {
};
void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Sub(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Pub(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Recv(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Send(const v8::FunctionCallbackInfo<v8::Value>& args);
static intptr_t external_references[] = {reinterpret_cast<intptr_t>(Print),
- reinterpret_cast<intptr_t>(Sub),
- reinterpret_cast<intptr_t>(Pub), 0};
+ reinterpret_cast<intptr_t>(Recv),
+ reinterpret_cast<intptr_t>(Send), 0};
-Deno* NewFromSnapshot(void* data, deno_sub_cb cb);
+Deno* NewFromSnapshot(void* data, deno_recv_cb cb);
void InitializeContext(v8::Isolate* isolate, v8::Local<v8::Context> context,
const char* js_filename, const char* js_source);