+
+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 = unsmob_context (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 = unsmob_context (context);
+ return ctx->event_source ()->self_scm ();
+}
+
+LY_DEFINE (ly_context_events_below, "ly:context-events-below",
+ 1, 0, 0, (SCM context),
+ "Return a @code{stream-distributor} that distributes all events"
+ " from @var{context} and all its subcontexts.")
+{
+ LY_ASSERT_SMOB (Context, context, 1);
+ Context *ctx = unsmob_context (context);
+ return ctx->events_below ()->self_scm ();
+}