Add WUMS_APPLICATION_REQUESTS_EXIT hook

This commit is contained in:
Maschell 2021-03-13 11:03:42 +01:00
parent a9aabcd149
commit 00cb2d64bd
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/share/wums_rules
export WUMS_MAJOR := 0 export WUMS_MAJOR := 0
export WUMS_MINOR := 1 export WUMS_MINOR := 1
export WUMS_PATCH := 2 export WUMS_PATCH := 3
VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH) VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH)

View File

@ -46,6 +46,7 @@ typedef enum wums_hook_type_t {
WUMS_HOOK_INIT_WUT, WUMS_HOOK_INIT_WUT,
WUMS_HOOK_FINI_WUT, WUMS_HOOK_FINI_WUT,
WUMS_HOOK_RELOCATIONS_DONE, WUMS_HOOK_RELOCATIONS_DONE,
WUMS_HOOK_APPLICATION_REQUESTS_EXIT,
} wums_hook_type_t; } wums_hook_type_t;
typedef struct wums_hook_t { typedef struct wums_hook_t {
@ -78,6 +79,11 @@ typedef struct wums_relocs_done_args_t {
WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_ENDS, __wums_end); \ WUMS_HOOK_EX(WUMS_HOOK_APPLICATION_ENDS, __wums_end); \
void __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) \ #define WUMS_RELOCATIONS_DONE(myargs) \
void __wums_relocations_done(wums_relocs_done_args_t);\ void __wums_relocations_done(wums_relocs_done_args_t);\
WUMS_HOOK_EX(WUMS_HOOK_RELOCATIONS_DONE, __wums_relocations_done); \ WUMS_HOOK_EX(WUMS_HOOK_RELOCATIONS_DONE, __wums_relocations_done); \