From 1d4ea437e4a4fced3fce6e441952fdea8d94af80 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Mon, 12 Feb 2024 13:03:32 -0500 Subject: 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 --- lib/hook.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/hook.h') 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 */ -- cgit v1.2.3