ir: add bt_ctf_stream_class_get_event_class_by_id()
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class.h
index bf5f577c3c99140b21f43c694bc13aae3830b91f..a78437b2dcc86f1feebde91bf2c30c921f4cf2ed 100644 (file)
@@ -190,6 +190,18 @@ extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class(
 extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_name(
                struct bt_ctf_stream_class *stream_class, const char *name);
 
+/*
+ * bt_ctf_stream_class_get_event_class_by_name: Get stream class event class by
+ * ID.
+ *
+ * @param stream_class Stream class.
+ * @param id Event class ID.
+ *
+ * Returns event class, NULL on error.
+ */
+extern struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_id(
+               struct bt_ctf_stream_class *stream_class, uint32_t id);
+
 /*
  * bt_ctf_stream_class_get_packet_context_type: get the stream class' packet
  * context type.
This page took 0.025455 seconds and 4 git commands to generate.