diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-01-28 22:45:57 -0500 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-01-28 22:45:57 -0500 |
commit | 43a8d866a4703aac8c545562eb8e2d3a610c4f68 (patch) | |
tree | 2dcaf6be0cec33065860262f1cc209387de45ed0 /Taler/node_wrapper.h | |
parent | 97b916f0c1baeb2d931bb9457b0f2e8b966c4964 (diff) | |
download | taler-ios-43a8d866a4703aac8c545562eb8e2d3a610c4f68.tar.gz taler-ios-43a8d866a4703aac8c545562eb8e2d3a610c4f68.tar.bz2 taler-ios-43a8d866a4703aac8c545562eb8e2d3a610c4f68.zip |
add node to swift/objc bridge
Diffstat (limited to 'Taler/node_wrapper.h')
-rw-r--r-- | Taler/node_wrapper.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Taler/node_wrapper.h b/Taler/node_wrapper.h new file mode 100644 index 0000000..164b95e --- /dev/null +++ b/Taler/node_wrapper.h @@ -0,0 +1,44 @@ +// +// node_wrapper.h +// Taler +// +// Created by Jonathan Buchanan on 12/31/20. +// Copyright © 2020 Taler. All rights reserved. +// + +#ifndef node_wrapper_h +#define node_wrapper_h + +#ifdef __cplusplus +extern "C" { +#endif + +struct __IonoInstance; + +struct __IonoInstance * +__new_instance(); + +void +__free_instance(struct __IonoInstance *instance); + +// result must be freed! +char * +__eval_js(const char *js, struct __IonoInstance *instance); + +void +__notify_instance(struct __IonoInstance *instance); + +void +__run_node(struct __IonoInstance *instance); + +void +__make_callback(const char *callback, struct __IonoInstance *instance); + +void +__put_module_code(const char *module_name, const char *module_code, struct IonoInstance *instance); + +#ifdef __cplusplus +} +#endif + +#endif /* node_wrapper_h */ |