X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator-dispatch-list.hh;h=b6124572fc53d6f694fb7fae2a32cbbe0b83d248;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=1e848afabce19284d367c92190d43d016c323bc4;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/include/translator-dispatch-list.hh b/lily/include/translator-dispatch-list.hh index 1e848afabc..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); - DECLARE_SIMPLE_SMOBS (Engraver_dispatch_list); }; #endif /* TRANSLATOR_DISPATCH_LIST_HH */