Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git] / src / plugins / ctf / common / msg-iter / msg-iter.h
index 8b02b7575cde8cd7a4d47968415f6d54ecbaeeb0..7e29b2603f31abc3fa263f65cd1fe16ec3ac09da 100644 (file)
@@ -26,6 +26,7 @@
  * SOFTWARE.
  */
 
+#include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stddef.h>
@@ -308,6 +309,14 @@ enum bt_msg_iter_status bt_msg_iter_get_packet_properties(
                struct bt_msg_iter *notit,
                struct bt_msg_iter_packet_properties *props);
 
+BT_HIDDEN
+enum bt_msg_iter_status bt_msg_iter_curr_packet_first_event_clock_snapshot(
+               struct bt_msg_iter *notit, uint64_t *first_event_cs);
+
+BT_HIDDEN
+enum bt_msg_iter_status bt_msg_iter_curr_packet_last_event_clock_snapshot(
+               struct bt_msg_iter *notit, uint64_t *last_event_cs);
+
 BT_HIDDEN
 void bt_msg_iter_set_medops_data(struct bt_msg_iter *notit,
                void *medops_data);
@@ -340,21 +349,25 @@ BT_HIDDEN
 void bt_msg_iter_set_emit_stream_end_message(struct bt_msg_iter *notit,
                bool val);
 
+BT_HIDDEN
+void bt_msg_iter_set_dry_run(struct bt_msg_iter *notit,
+               bool val);
+
 static inline
 const char *bt_msg_iter_medium_status_string(
                enum bt_msg_iter_medium_status status)
 {
        switch (status) {
        case BT_MSG_ITER_MEDIUM_STATUS_EOF:
-               return "BT_MSG_ITER_MEDIUM_STATUS_EOF";
+               return "EOF";
        case BT_MSG_ITER_MEDIUM_STATUS_AGAIN:
-               return "BT_MSG_ITER_MEDIUM_STATUS_AGAIN";
+               return "AGAIN";
        case BT_MSG_ITER_MEDIUM_STATUS_INVAL:
-               return "BT_MSG_ITER_MEDIUM_STATUS_INVAL";
+               return "INVAL";
        case BT_MSG_ITER_MEDIUM_STATUS_ERROR:
-               return "BT_MSG_ITER_MEDIUM_STATUS_ERROR";
+               return "ERROR";
        case BT_MSG_ITER_MEDIUM_STATUS_OK:
-               return "BT_MSG_ITER_MEDIUM_STATUS_OK";
+               return "OK";
        default:
                return "(unknown)";
        }
@@ -366,15 +379,15 @@ const char *bt_msg_iter_status_string(
 {
        switch (status) {
        case BT_MSG_ITER_STATUS_EOF:
-               return "BT_MSG_ITER_STATUS_EOF";
+               return "EOF";
        case BT_MSG_ITER_STATUS_AGAIN:
-               return "BT_MSG_ITER_STATUS_AGAIN";
+               return "AGAIN";
        case BT_MSG_ITER_STATUS_INVAL:
-               return "BT_MSG_ITER_STATUS_INVAL";
+               return "INVAL";
        case BT_MSG_ITER_STATUS_ERROR:
-               return "BT_MSG_ITER_STATUS_ERROR";
+               return "ERROR";
        case BT_MSG_ITER_STATUS_OK:
-               return "BT_MSG_ITER_STATUS_OK";
+               return "OK";
        default:
                return "(unknown)";
        }
This page took 0.024218 seconds and 4 git commands to generate.