diff --git a/Makefile b/Makefile index b105486..55a2099 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/share/wums_rules export WUMS_MAJOR := 0 export WUMS_MINOR := 1 -export WUMS_PATCH := 2 +export WUMS_PATCH := 3 VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH) diff --git a/include/wums/hooks.h b/include/wums/hooks.h index 0c86631..fedd2e1 100644 --- a/include/wums/hooks.h +++ b/include/wums/hooks.h @@ -46,6 +46,7 @@ typedef enum wums_hook_type_t { WUMS_HOOK_INIT_WUT, WUMS_HOOK_FINI_WUT, WUMS_HOOK_RELOCATIONS_DONE, + WUMS_HOOK_APPLICATION_REQUESTS_EXIT, } wums_hook_type_t; typedef struct wums_hook_t { @@ -77,6 +78,11 @@ typedef struct wums_relocs_done_args_t { void __wums_end(void);\ WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_ENDS, __wums_end); \ void __wums_end() + +#define WUMS_APPLICATION_REQUESTS_EXIT() \ + void __wums_requests_exit(void);\ + WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_REQUESTS_EXIT, __wums_requests_exit); \ + void __wums_requests_exit() #define WUMS_RELOCATIONS_DONE(myargs) \ void __wums_relocations_done(wums_relocs_done_args_t);\