2 dispatcher.hh -- declare Dispatcher
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Erik Sandberg <mandolaerik@gmail.com>
12 #include "listener.hh"
13 #include "stream-event.hh"
17 /* Hash table. Each event-class maps to a list of listeners. */
19 /* alist of dispatchers that we listen to. Each entry is a
20 (dist . priority) pair. */
23 DECLARE_LISTENER (dispatch);
24 /* priority counter. Listeners with low priority receive events
27 void internal_add_listener (Listener, SCM event_class, int priority);
30 void broadcast (Stream_event *ev);
31 void add_listener (Listener, SCM event_class);
32 void remove_listener (Listener, SCM event_class);
33 void register_as_listener (Dispatcher *dist);
34 void unregister_as_listener (Dispatcher *dist);
36 DECLARE_SMOBS (Dispatcher,);
39 DECLARE_UNSMOB (Dispatcher, dispatcher);
41 #endif // DISPATCHER_HH