ir: move the stream event ctx field to the event
[babeltrace.git] / include / babeltrace / ctf-ir / event.h
index 4b061d62f4eebb214a95c1f8c30befacee6f47c3..5b2e6f995d95fb852a9691a1f98c813ac4bce817 100644 (file)
@@ -219,6 +219,28 @@ extern struct bt_ctf_field *bt_ctf_event_get_event_context(
 extern int bt_ctf_event_set_event_context(struct bt_ctf_event *event,
                struct bt_ctf_field *context);
 
+/*
+ * bt_ctf_event_get_stream_event_context: Get an event's stream event context
+ *
+ * @param event_class Event class.
+ *
+ * Returns a field on success (a structure), NULL on error.
+ */
+extern struct bt_ctf_field *bt_ctf_event_get_stream_event_context(
+               struct bt_ctf_event *event);
+
+/*
+ * bt_ctf_event_set_stream_event_context: Set an event's stream event context
+ *
+ * @param event Event.
+ * @param context Event stream context field (must match the stream class'
+ *     stream event context type).
+ *
+ * Returns 0 on success, a negative value on error.
+ */
+extern int bt_ctf_event_set_stream_event_context(struct bt_ctf_event *event,
+               struct bt_ctf_field *context);
+
 /*
  * bt_ctf_event_copy: Deep-copy an event.
  *
This page took 0.02391 seconds and 4 git commands to generate.