mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2026-03-22 01:54:13 -05:00
Add hooks which will be called if all start/request exit/end hooks have been called
Some checks failed
Publish Docker Image / build-and-push-image (push) Has been cancelled
Some checks failed
Publish Docker Image / build-and-push-image (push) Has been cancelled
This commit is contained in:
parent
f2c7a98e87
commit
7381b44e2c
|
|
@ -59,7 +59,11 @@ typedef enum wums_hook_type_t {
|
|||
WUMS_HOOK_RELOCATIONS_DONE,
|
||||
WUMS_HOOK_APPLICATION_REQUESTS_EXIT,
|
||||
// Introduced in 0.3.2
|
||||
WUMS_HOOK_DEINIT
|
||||
WUMS_HOOK_DEINIT,
|
||||
// Introduced in 0.3.3
|
||||
WUMS_HOOK_ALL_APPLICATION_STARTS_DONE,
|
||||
WUMS_HOOK_ALL_APPLICATION_ENDS_DONE,
|
||||
WUMS_HOOK_ALL_APPLICATION_REQUESTS_EXIT_DONE,
|
||||
} wums_hook_type_t;
|
||||
|
||||
typedef struct wums_hook_t {
|
||||
|
|
@ -105,6 +109,21 @@ typedef struct wums_relocs_done_args_t {
|
|||
WUMS_HOOK_EX(WUMS_HOOK_RELOCATIONS_DONE, __wums_relocations_done); \
|
||||
void __wums_relocations_done(wums_relocs_done_args_t myargs)
|
||||
|
||||
#define WUMS_ALL_APPLICATION_STARTS_DONE() \
|
||||
void __wums_all_start_done(void); \
|
||||
WUMS_HOOK_EX(WUMS_HOOK_ALL_APPLICATION_STARTS_DONE, __wums_all_start_done); \
|
||||
void __wums_all_start_done()
|
||||
|
||||
#define WUMS_ALL_APPLICATION_REQUESTS_EXIT_DONE() \
|
||||
void __wums_all_requests_exit_done(void); \
|
||||
WUMS_HOOK_EX(WUMS_HOOK_ALL_APPLICATION_REQUESTS_EXIT_DONE, __wums_all_requests_exit_done); \
|
||||
void __wums_all_requests_exit_done()
|
||||
|
||||
#define WUMS_ALL_APPLICATION_ENDS_DONE() \
|
||||
void __wums_all_ends_done(void); \
|
||||
WUMS_HOOK_EX(WUMS_HOOK_ALL_APPLICATION_ENDS_DONE, __wums_all_ends_done); \
|
||||
void __wums_all_ends_done()
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __EXTERN_C_MACRO extern "C"
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user