X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator-dispatch-list.hh;h=b6124572fc53d6f694fb7fae2a32cbbe0b83d248;hb=2bbacb364aa29041af9cbbbd32cfad2e8e387cb3;hp=eb822765dc62d4e699bf3b6a3b0dfabf9c4a2dcd;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/include/translator-dispatch-list.hh b/lily/include/translator-dispatch-list.hh index eb822765dc..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--2009 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 */