summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-01-30 11:25:36 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-01-30 11:25:36 -0400
commit96140b0d163d18c0158f29b2063307efad918e18 (patch)
treee422c051d5ac7767acd1723ddf136ee67132bb52 /include
parent5c7f3b06b3c04b461c93f8bc03fd7981b041bbd6 (diff)
Global: Add necessary files to test linking
Diffstat (limited to 'include')
-rw-r--r--include/NMWException.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/NMWException.h b/include/NMWException.h
new file mode 100644
index 0000000..9cf7e48
--- /dev/null
+++ b/include/NMWException.h
@@ -0,0 +1,26 @@
+#ifndef NMWEXCEPTION_H
+#define NMWEXCEPTION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void (dtor_func)(void *object, int free_object);
+typedef struct destructor_chain dtor_chain;
+
+struct destructor_chain {
+ dtor_chain *next;
+ dtor_func *destructor;
+ void *object;
+};
+
+void __unregister_fragment(int fragmentID);
+int __register_fragment(struct __eti_init_info *info, char *TOC);
+void *__register_global_object(void *object, dtor_func *destructor, dtor_chain *regmem);
+void __destroy_global_chain();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif