diff options
| author | Christian Hopps <chopps@labn.net> | 2024-02-12 13:03:32 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@gmail.com> | 2024-02-15 13:03:25 -0500 |
| commit | 1d4ea437e4a4fced3fce6e441952fdea8d94af80 (patch) | |
| tree | 13b4dd8966c63068657f948b753e35c6858447c9 /lib/hook.h | |
| parent | fa67c0b91c085d40015e782838f7d5eaf82737e9 (diff) | |
lib: always call new notification hooks too
- call the new notification hooks when backends call the old notification
posting API.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/hook.h')
| -rw-r--r-- | lib/hook.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hook.h b/lib/hook.h index 19e0f1fbfc..58aa2009b9 100644 --- a/lib/hook.h +++ b/lib/hook.h @@ -163,6 +163,8 @@ extern void _hook_unregister(struct hook *hook, void *funcptr, void *arg, _hook_unregister(&_hook_##hookname, \ _hook_typecheck_arg_##hookname(func), arg, true) +#define hook_have_hooks(hookname) (_hook_##hookname.entries != NULL) + /* invoke hooks * this is private (static) to the file that has the DEFINE_HOOK statement */ |
