]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/book-scheme.cc
Store scoring info in 'annotation, and always print debug info if
[lilypond.git] / lily / book-scheme.cc
index a10b39e36a5ff03644e331bb17688abfa16c813f..339e2c282930e6c2c892c7c54f776844af354f35 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2004--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2004--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -148,6 +148,15 @@ LY_DEFINE (ly_book_paper, "ly:book-paper",
   return b->paper_ ? b->paper_->self_scm () : SCM_BOOL_F;
 }
 
+LY_DEFINE (ly_book_header, "ly:book-header",
+          1, 0, 0, (SCM book),
+          "Return header in @var{book}.")
+{
+  LY_ASSERT_SMOB (Book, book, 1);
+  Book *b = unsmob_book (book);
+  return b->header_ ? b->header_ : SCM_BOOL_F;
+}
+
 LY_DEFINE (ly_book_scores, "ly:book-scores",
           1, 0, 0, (SCM book),
           "Return scores in @var{book}.")