+LY_DEFINE (ly_score_header, "ly:score-header",
+ 1, 0, 0, (SCM score),
+ "Return score header.")
+{
+ LY_ASSERT_SMOB (Score, score, 1);
+ Score *sc = Score::unsmob (score);
+ return sc->get_header ();
+}
+
+LY_DEFINE (ly_score_set_header_x, "ly:score-set-header!",
+ 2, 0, 0, (SCM score, SCM module),
+ "Set the score header.")
+{
+ LY_ASSERT_SMOB (Score, score, 1);
+ SCM_ASSERT_TYPE (ly_is_module (module), module, SCM_ARG2, __FUNCTION__,
+ "module");
+
+ Score *sc = Score::unsmob (score);
+ sc->set_header (module);
+ return SCM_UNSPECIFIED;
+}
+
+LY_DEFINE (ly_score_music, "ly:score-music",
+ 1, 0, 0, (SCM score),
+ "Return score music.")
+{
+ LY_ASSERT_SMOB (Score, score, 1);
+ Score *sc = Score::unsmob (score);
+ return sc->get_music ();
+}
+
+LY_DEFINE (ly_score_error_p, "ly:score-error?",
+ 1, 0, 0, (SCM score),
+ "Was there an error in the score?")
+{
+ LY_ASSERT_SMOB (Score, score, 1);
+ Score *sc = Score::unsmob (score);
+ return scm_from_bool (sc->error_found_);