Use bt_clock_class_priority_map_add_clock_class() to change a priority
[babeltrace.git] / plugins / ctf / common / notif-iter / notif-iter.h
index 4c93785fafd5abfab3a4e7a35b013b5da0f835e2..b8b91c5e324ab63578d232123dabac6b6b656524 100644 (file)
@@ -32,6 +32,7 @@
 #include <babeltrace/ctf-ir/trace.h>
 #include <babeltrace/ctf-ir/fields.h>
 #include <babeltrace/ctf-ir/event.h>
+#include <babeltrace/graph/clock-class-priority-map.h>
 #include <babeltrace/babeltrace-internal.h>
 
 /**
@@ -226,8 +227,6 @@ struct bt_ctf_notif_iter_notif_event {
        struct bt_ctf_event *event;
 };
 
-void bt_ctf_notif_iter_notif_destroy(void *notif);
-
 /**
  * Creates a CTF notification iterator.
  *
@@ -235,6 +234,8 @@ void bt_ctf_notif_iter_notif_destroy(void *notif);
  * incremented.
  *
  * @param trace                        Trace to read
+ * @param cc_prio_map          Clock class priority map to use when
+ *                             creating the event notifications
  * @param max_request_sz       Maximum buffer size, in bytes, to
  *                             request to
  *                             bt_ctf_notif_iter_medium_ops::request_bytes()
@@ -245,7 +246,9 @@ void bt_ctf_notif_iter_notif_destroy(void *notif);
  * @returns                    New CTF notification iterator on
  *                             success, or \c NULL on error
  */
+BT_HIDDEN
 struct bt_ctf_notif_iter *bt_ctf_notif_iter_create(struct bt_ctf_trace *trace,
+       struct bt_clock_class_priority_map *cc_prio_map,
        size_t max_request_sz, struct bt_ctf_notif_iter_medium_ops medops,
        void *medops_data, FILE *err_stream);
 
@@ -256,21 +259,9 @@ struct bt_ctf_notif_iter *bt_ctf_notif_iter_create(struct bt_ctf_trace *trace,
  *
  * @param notif_iter           CTF notification iterator
  */
+BT_HIDDEN
 void bt_ctf_notif_iter_destroy(struct bt_ctf_notif_iter *notif_iter);
 
-/**
- * Resets the internal state of a CTF notification iterator.
- *
- * This function can be used when it is desired to seek to the beginning
- * of another packet. It is expected that the next call to
- * bt_ctf_notif_iter_medium_ops::request_bytes() made by this
- * notification iterator will return the \em first bytes of a \em
- * packet.
- *
- * @param notif_iter           CTF notification iterator
- */
-void bt_ctf_notif_iter_reset(struct bt_ctf_notif_iter *notif_iter);
-
 /**
  * Returns the next notification from a CTF notification iterator.
  *
@@ -288,6 +279,7 @@ void bt_ctf_notif_iter_reset(struct bt_ctf_notif_iter *notif_iter);
  *                             return value is #BT_CTF_NOTIF_ITER_STATUS_OK
  * @returns                    One of #bt_ctf_notif_iter_status values
  */
+BT_HIDDEN
 enum bt_ctf_notif_iter_status bt_ctf_notif_iter_get_next_notification(
                struct bt_ctf_notif_iter *notit,
                struct bt_notification **notification);
This page took 0.0262 seconds and 4 git commands to generate.