]> git.bts.cx Git - sun.git/blob - runtime/src/sun/tree/tree.h
Groundwork for arrays
[sun.git] / runtime / src / sun / tree / tree.h
1 #ifndef SUN_TREE_TREE_H
2 #define SUN_TREE_TREE_H
3
4 #include <sun/tree/node.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 typedef void (*SLTTreeIteratorCallback)(SLTNode *node, void *userParameter);
11 typedef SLTNode *(*SLTTreeMapCallback)(SLTNode *node, void *userParameter);
12
13 extern void sltTreeIterate(SLTNode *root, SLTTreeIteratorCallback callback, SLTTreeIteratorCallback postCallback, void *userParameter);
14 extern SLTNode *sltTreeMap(SLTNode *root, SLTTreeMapCallback callback, SLTTreeMapCallback postCallback, void *userParameter);
15
16 #ifdef __cplusplus
17 }
18 #endif
19
20 #endif