X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fdispatcher.hh;h=f7efad821467b6aaf51d9a0dfc89019a35db265f;hb=7eef6e252aea1c29512a2df501aaa5c832f57038;hp=f4fe9156bcde77d5fe72a58029c6db17dc052468;hpb=d2762a4f1add2bb04d6fc34d3c7ae03eeb7d500f;p=lilypond.git diff --git a/lily/include/dispatcher.hh b/lily/include/dispatcher.hh index f4fe9156bc..f7efad8214 100644 --- a/lily/include/dispatcher.hh +++ b/lily/include/dispatcher.hh @@ -38,17 +38,18 @@ private: (dist . priority) pair. */ SCM dispatchers_; SCM listen_classes_; - DECLARE_LISTENER (dispatch); + void dispatch (SCM); /* priority counter. Listeners with low priority receive events first. */ int priority_count_; - void internal_add_listener (Listener, SCM event_class, int priority); + void internal_add_listener (SCM callback, SCM event_class, int priority); public: Dispatcher (); void broadcast (Stream_event *ev); bool is_listened_class (SCM); SCM listened_types (); void add_listener (Listener, SCM event_class); + void add_listener (SCM callback, SCM event_class); void remove_listener (Listener, SCM event_class); void register_as_listener (Dispatcher *dist); void unregister_as_listener (Dispatcher *dist);