summaryrefslogtreecommitdiff
path: root/Taler/node_wrapper.h
blob: 164b95e920d181a70f3fc1f076a0f37f857e3dd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 */