]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/prob-scheme.cc
Cosmetic nits.
[lilypond.git] / lily / prob-scheme.cc
index 52b32b96f5b78c58ee413128bd9fa88340804d9a..717e32a945985358af74ee08f379b372e4363294 100644 (file)
@@ -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);
+}
+