+LY_DEFINE (ly_context_now, "ly:context-now",
+ 1, 0, 0, (SCM context),
+ "Return @code{now-moment} of context @var{context}.")
+{
+ LY_ASSERT_SMOB (Context, context, 1);
+ Context *ctx = Context::unsmob (context);
+ return ctx->now_mom ().smobbed_copy ();
+}
+
+LY_DEFINE (ly_context_event_source, "ly:context-event-source",
+ 1, 0, 0, (SCM context),
+ "Return @code{event-source} of context @var{context}.")
+{
+ LY_ASSERT_SMOB (Context, context, 1);
+ Context *ctx = Context::unsmob (context);
+ return ctx->event_source ()->self_scm ();
+}