X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator-dispatch-list.hh;h=b6124572fc53d6f694fb7fae2a32cbbe0b83d248;hb=fd565020849c9cd24d4e7ce47c50f756198a44c9;hp=1504ebcecce3efbff3f1c4e847e77f43015e48fb;hpb=55ac733b69643a6bc6a83b706c65cb56efd388ef;p=lilypond.git diff --git a/lily/include/translator-dispatch-list.hh b/lily/include/translator-dispatch-list.hh index 1504ebcecc..b6124572fc 100644 --- a/lily/include/translator-dispatch-list.hh +++ b/lily/include/translator-dispatch-list.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2011 Han-Wen Nienhuys + Copyright (C) 2005--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,24 +21,19 @@ #define TRANSLATOR_DISPATCH_LIST_HH #include "lily-proto.hh" +#include "callback.hh" #include "std-vector.hh" #include "smobs.hh" +#include "translator.hh" -struct Engraver_dispatch_entry +class Engraver_dispatch_list : public Simple_smob { - Engraver *engraver_; - Engraver_void_function_engraver_grob_info function_; -}; - -class Engraver_dispatch_list -{ - vector dispatch_entries_; + vector dispatch_entries_; public: void apply (Grob_info); SCM static create (SCM trans_list, - SCM iface_list, Direction); + SCM iface_list, Direction); - DECLARE_SIMPLE_SMOBS (Engraver_dispatch_list); }; #endif /* TRANSLATOR_DISPATCH_LIST_HH */