diff options
author | Sven Gothel <[email protected]> | 2002-04-17 19:08:37 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2002-04-17 19:08:37 +0000 |
commit | 6114297dac0848d470a3211915bea64f49d584e7 (patch) | |
tree | 106702477036d454aa01242f5b7fdf060b8eaa42 /CNativeCode/MemoryManager.h | |
parent | 4c7204560056fe3bb0289c64020cbb9df17a757b (diff) |
completes pepijn's GC patch (missed to add them to the repository)
Diffstat (limited to 'CNativeCode/MemoryManager.h')
-rw-r--r-- | CNativeCode/MemoryManager.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CNativeCode/MemoryManager.h b/CNativeCode/MemoryManager.h new file mode 100644 index 0000000..51271ce --- /dev/null +++ b/CNativeCode/MemoryManager.h @@ -0,0 +1,25 @@ +#ifndef MEMORYMANAGER
+ #define MEMORYMANAGER
+
+ #include "jnitools.h"
+
+ typedef enum { MEMM_TESSELATOR,
+ MEMM_SELECTION,
+ MEMM_LAST
+ } ListType;
+
+ #define NUMBER_OF_LISTS ((int)MEMM_LAST)
+
+ typedef struct tnode {
+ void *java_array;
+ void *native_array;
+ JavaBasicType type;
+ void *next;
+ } ArrayList;
+
+ void RegisterArray(JNIEnv *env, void *java_array, void *native_array,
+ JavaBasicType array_type, ListType ltype);
+
+ void FreeArrays(JNIEnv *env, ListType ltype);
+
+#endif
|