event-dispatcher: expose iterator to iterate over the registered hooks

This commit is contained in:
George Kiagiadakis
2022-11-25 21:26:34 +02:00
committed by Julian Bouzas
parent b100bdda4a
commit 5a435fae11
2 changed files with 18 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ WP_API
void wp_event_dispatcher_unregister_hook (WpEventDispatcher * self,
WpEventHook * hook);
WP_API
WpIterator * wp_event_dispatcher_new_hooks_iterator (WpEventDispatcher * self);
G_END_DECLS
#endif