diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-23 23:47:26 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-07-23 23:47:26 +0100 |
commit | c8d7588251fd4fe63ac6afe2a90ca7066c786609 (patch) | |
tree | f547831424d20c6f1b3f2b6bdea97c2f53502deb /src/build/cmeta.h | |
parent | 8f5673d5f4e63b158b1cd2a2aef874ac83b3662d (diff) |
Add event system
Diffstat (limited to 'src/build/cmeta.h')
-rw-r--r-- | src/build/cmeta.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/build/cmeta.h b/src/build/cmeta.h index 4757654..125ce2c 100644 --- a/src/build/cmeta.h +++ b/src/build/cmeta.h @@ -39,6 +39,18 @@ void cmeta_includes(const struct cmeta *cm, void cmeta_conmacros(const struct cmeta *cm, void (*cb)(const char *name, bool isvar, bool unreg)); +/* + * Iterates through all event-related macros and takes note of which events are + * defined, giving a callback for each. + */ +void cmeta_evdefmacros(const struct cmeta *cm, void (*cb)(const char *name)); + +/* + * Iterates through all event-related macros and gives a callback for each event + * that is handled by the given module. + */ +void cmeta_evhandlermacros(const struct cmeta *cm, const char *modname, + void (*cb)(const char *evname, const char *modname)); #endif // vi: sw=4 ts=4 noet tw=80 cc=80 |