X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmusic-function.hh;h=80239a61aaefe202f8282c78f453564a55b31b36;hb=3af0951f9a11677240efa6228683dd4fcea13eaf;hp=d257b136b8745d575a7ba8518bd5102317339d44;hpb=652ed35a2013489d0a14fede6307cd2595abb2c4;p=lilypond.git diff --git a/lily/include/music-function.hh b/lily/include/music-function.hh index d257b136b8..80239a61aa 100644 --- a/lily/include/music-function.hh +++ b/lily/include/music-function.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2012 Han-Wen Nienhuys + Copyright (C) 2004--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 @@ -22,12 +22,18 @@ #include "lily-guile.hh" -SCM ly_make_music_function (SCM, SCM); -SCM make_music_function (SCM, SCM); - -SCM get_music_function_transform (SCM); -SCM get_music_function_signature (SCM); -bool is_music_function (SCM); +#include "small-smobs.hh" + +class Music_function : public Smob2 +{ +public: + static const char * const type_p_name_; + int print_smob (SCM, scm_print_state *) const; + SCM get_signature () const { return scm1 (); } + SCM get_function () const { return scm2 (); } + SCM call (SCM args); + LY_DECLARE_SMOB_PROC (&Music_function::call, 0, 0, 1); +}; #endif /* MUSIC_FUNCTION_HH */