X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fdispatcher.hh;h=f4fe9156bcde77d5fe72a58029c6db17dc052468;hb=fac5dc1f38cade0d2c45d9f1944e7feb336b8159;hp=1d3583bb673f2a7faaf588feeee90c7133a44f8c;hpb=e8b68d8a878a0ee0381719230cf911dbcefa168d;p=lilypond.git diff --git a/lily/include/dispatcher.hh b/lily/include/dispatcher.hh index 1d3583bb67..f4fe9156bc 100644 --- a/lily/include/dispatcher.hh +++ b/lily/include/dispatcher.hh @@ -22,9 +22,16 @@ #include "listener.hh" #include "stream-event.hh" +#include "smobs.hh" -class Dispatcher +class Dispatcher : public Smob { +public: + int print_smob (SCM, scm_print_state *); + SCM mark_smob (); + static const char type_p_name_[]; + virtual ~Dispatcher (); +private: /* Hash table. Each event-class maps to a list of listeners. */ SCM listeners_; /* alist of dispatchers that we listen to. Each entry is a @@ -45,8 +52,6 @@ public: void remove_listener (Listener, SCM event_class); void register_as_listener (Dispatcher *dist); void unregister_as_listener (Dispatcher *dist); -protected: - DECLARE_SMOBS (Dispatcher); };