Skip to content

Commit

Permalink
exports new functions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni authored May 31, 2023
1 parent 5e2e1e4 commit 5cb7cd7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions include/kth/js-native/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ void node_get_chain(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_print_thread_id(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_running(v8::FunctionCallbackInfo<v8::Value> const& args);

void node_capi_version(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_cppapi_version(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_microarchitecture(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_march_names(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_currency_symbol(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_currency(v8::FunctionCallbackInfo<v8::Value> const& args);
void node_db_type(v8::FunctionCallbackInfo<v8::Value> const& args);

} // namespace kth::js_native

#endif //KTH_JS_NATIVE_NODE_HPP_
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@knuth/bch-native",
"version": "0.51.0",
"version": "0.52.0",
"description": "Foundation library for @knuth/bch (Bitcoin Cash development platform for Javascript applications)",
"repository": {
"type": "git",
Expand Down
9 changes: 9 additions & 0 deletions src/kth-native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ void init(v8::Local<v8::Object> exports) {
NODE_SET_METHOD(exports, "node_get_chain", node_get_chain);
NODE_SET_METHOD(exports, "node_destruct", node_destruct);
NODE_SET_METHOD(exports, "node_signal_stop", node_signal_stop);

NODE_SET_METHOD(exports, "node_capi_version", node_capi_version);
NODE_SET_METHOD(exports, "node_cppapi_version", node_cppapi_version);
NODE_SET_METHOD(exports, "node_microarchitecture", node_microarchitecture);
NODE_SET_METHOD(exports, "node_march_names", node_march_names);
NODE_SET_METHOD(exports, "node_currency_symbol", node_currency_symbol);
NODE_SET_METHOD(exports, "node_currency", node_currency);
NODE_SET_METHOD(exports, "node_db_type", node_db_type);

NODE_SET_METHOD(exports, "config_endpoint_allocate_n", config_endpoint_allocate_n);
NODE_SET_METHOD(exports, "config_checkpoint_allocate_n", config_checkpoint_allocate_n);
NODE_SET_METHOD(exports, "config_node_settings_default", config_node_settings_default);
Expand Down

0 comments on commit 5cb7cd7

Please sign in to comment.