Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion include/wums/hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/wums/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
extern "C" {
#endif

#define WUMS_VERSION "0.3.2"
#define WUMS_VERSION "0.3.3"

#define WUMS_MODULE_EXPORT_NAME(__module_name) \
WUMS_META(export_name, __module_name); \
Expand Down
Loading