Implement the bridge to call Tatoo from java. Very slow at the moment.
[tatoo.git] / src / bindings / java / tatoo.h
1 #ifndef TATOO_H
2 #define TATOO_H
3 #pragma once
4
5 #include <caml/mlvalues.h>
6
7 extern "C" {
8
9 CAMLprim value node_getFirstChild(value node);
10 CAMLprim value node_getNextSibling(value node);
11 CAMLprim value node_getKind(value node);
12 CAMLprim value node_getNodeName(value node);
13 CAMLprim value node_getPreorder(value node);
14 CAMLprim value node_getAttributes(value node);
15
16 CAMLprim value nodelist_getLength(value list);
17 CAMLprim value nodelist_item(value list, value idx);
18 CAMLprim value nodelist_new(value list);
19 CAMLprim value nodelist_add(value list, value node);
20
21 CAMLprim value namednodemap_getLength(value list);
22 CAMLprim value namednodemap_item(value list, value idx);
23
24 CAMLprim value getNull(value unit);
25 }
26
27 #endif