-Scheme_engraver::acknowledge_grob_by_hash (Grob_info info,
- SCM iface_function_hash)
-{
- SCM meta = info.grob ()->internal_get_property (ly_symbol2scm ("meta"));
- SCM ifaces = scm_cdr (scm_assoc (ly_symbol2scm ("interfaces"), meta));
- for (SCM s = ifaces; scm_is_pair (s); s = scm_cdr (s))
- {
- SCM func = scm_hashq_ref (iface_function_hash,
- scm_car (s), SCM_BOOL_F);
-
- if (ly_is_procedure (func))
- scm_call_3 (func, self_scm (), info.grob ()->self_scm (),
- info.origin_translator ()->self_scm ());
- }
-}
-
-static
-void call_listen_closure (void *target, SCM ev)
-{
- SCM cl = (SCM) target;
- SCM func = scm_car (cl);
- SCM engraver = scm_cdr (cl);
- scm_call_2 (func, engraver, ev);
-}
-
-static
-void mark_listen_closure (void *target)
-{
- scm_gc_mark ((SCM)target);
-}
-
-static
-bool equal_listen_closure (void *a, void *b)
-{
- SCM target_a = (SCM) a;
- SCM target_b = (SCM) b;
-
- return ly_is_equal (target_a, target_b);
-}
-
-Listener_function_table listen_closure
-=
-{
- call_listen_closure, mark_listen_closure, equal_listen_closure
-};
-
-/* static */
-Listener
-Scheme_engraver::get_listener (void *arg, SCM name)