diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/NMWException.h | 26 |
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 |