X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fprob-scheme.cc;h=cc74f8ada128f525e6970b5d347fddaf709a7871;hb=b4d2995d3f6c35dde371c25a68e03a555401b6e5;hp=52b32b96f5b78c58ee413128bd9fa88340804d9a;hpb=eda0b8d4348f476fd54738dcc9ac3c2e85675ab3;p=lilypond.git diff --git a/lily/prob-scheme.cc b/lily/prob-scheme.cc index 52b32b96f5..cc74f8ada1 100644 --- a/lily/prob-scheme.cc +++ b/lily/prob-scheme.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2005--2007 Han-Wen Nienhuys + (c) 2005--2009 Han-Wen Nienhuys */ #include "prob.hh" @@ -75,3 +75,25 @@ LY_DEFINE (ly_make_prob, "ly:make-prob", return pr->unprotect (); } + + +LY_DEFINE (ly_prob_mutable_properties, "ly:prob-mutable-properties", + 1, 0, 0, + (SCM prob), + "Retrieve an alist of mutable properties.") +{ + LY_ASSERT_SMOB (Prob, prob, 1); + Prob *ps = unsmob_prob (prob); + return ps->get_property_alist (true); +} + +LY_DEFINE (ly_prob_immutable_properties, "ly:prob-immutable-properties", + 1, 0, 0, + (SCM prob), + "Retrieve an alist of mutable properties.") +{ + LY_ASSERT_SMOB (Prob, prob, 1); + Prob *ps = unsmob_prob (prob); + return ps->get_property_alist (false); +} +