/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2004--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2004--2014 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
return b->header_ ? b->header_ : SCM_BOOL_F;
}
+LY_DEFINE (ly_book_set_header_x, "ly:book-set-header!",
+ 2, 0, 0, (SCM book, SCM module),
+ "Set the book header.")
+{
+ LY_ASSERT_SMOB (Book, book, 1);
+ SCM_ASSERT_TYPE (ly_is_module (module), module, SCM_ARG2, __FUNCTION__,
+ "module");
+
+ Book *b = unsmob_book (book);
+ b->header_ = (module);
+ return SCM_UNSPECIFIED;
+}
+
LY_DEFINE (ly_book_scores, "ly:book-scores",
1, 0, 0, (SCM book),
"Return scores in @var{book}.")
Book *b = unsmob_book (book);
return b->scores_;
}
+
+#include "ly-smobs.icc"
+
+IMPLEMENT_TYPE_P (Book, "ly:book?");