]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/translator.hh
* lily/include/translator.icc (ADD_ACKNOWLEDGER): new macro.
[lilypond.git] / lily / include / translator.hh
index d938f52aa8f3b0a8e6b55522f88f81d4cf76b50b..4056c8d5da10129144eb1a0a2763a66e294a42e2 100644 (file)
 #include "input.hh"
 #include "smobs.hh"
 
-
-
-typedef void (*Translator_void_method_ptr)(Translator*);
-
-
 struct Acknowledge_information
 {
   SCM symbol_;
-  Translator_void_method_ptr function_;
+  Engraver_void_function_engraver_grob_info function_;
 };
 
-
 #define TRANSLATOR_DECLARATIONS(NAME)                  \
   public:                                              \
   NAME ();                                             \
@@ -37,10 +31,12 @@ struct Acknowledge_information
   virtual void fetch_precomputable_methods (Translator_void_method_ptr methods[]);\
   virtual SCM static_translator_description () const;  \
   virtual SCM translator_description () const; \
-  virtual Translator_void_method_ptr get_acknowledger (SCM sym) { \
+  virtual Engraver_void_function_engraver_grob_info get_acknowledger (SCM sym) { \
     return static_get_acknowledger (sym);\
   }\
-  static Translator_void_method_ptr static_get_acknowledger (SCM sym);
+  static Engraver_void_function_engraver_grob_info static_get_acknowledger (SCM sym);
+
+#define DECLARE_ACKNOWLEDGER(x) public: void acknowledge_ ## x (Grob_info); protected:
 
 enum Translator_precompute_index {
   START_TRANSLATION_TIMESTEP,