From 43a8d866a4703aac8c545562eb8e2d3a610c4f68 Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Thu, 28 Jan 2021 22:45:57 -0500 Subject: add node to swift/objc bridge --- Taler/node_wrapper.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Taler/node_wrapper.h (limited to 'Taler/node_wrapper.h') 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 */ -- cgit v1.2.3