-LY_DEFINE (ly_stream_event_property, "ly:stream-event-property",
- 2, 0, 0, (SCM sev, SCM sym),
- "Get the property @var{sym} of stream event @var{mus}.\n"
- "If @var{sym} is undefined, return @code{' ()}.\n")
+LY_DEFINE (ly_event_property, "ly:event-property",
+ 2, 1, 0, (SCM sev, SCM sym, SCM val),
+ "Get the property @var{sym} of stream event @var{sev}."
+ " If @var{sym} is undefined, return @var{val} or"
+ " @code{'()} if @var{val} is not specified.")
+{
+ LY_ASSERT_SMOB (Stream_event, sev, 1)
+ return ly_prob_property (sev, sym, val);
+}
+
+LY_DEFINE (ly_event_set_property_x, "ly:event-set-property!",
+ 3, 0, 0, (SCM ev, SCM sym, SCM val),
+ "Set property @var{sym} in event @var{ev} to @var{val}.")
+{
+ LY_ASSERT_SMOB (Stream_event, ev, 1);
+ LY_ASSERT_TYPE (ly_is_symbol, sym, 2);
+
+ return ly_prob_set_property_x (ev, sym, val);
+}
+
+LY_DEFINE (ly_event_deep_copy, "ly:event-deep-copy",
+ 1, 0, 0, (SCM m),
+ "Copy @var{m} and all sub expressions of@tie{}@var{m}.")