CTF IR -> Trace IR
[babeltrace.git] / lib / graph / iterator.c
index 0deb40c7721467bd3f40b3b5ca5d93cd1bbc2306..a2111746793fa71a8def54e06bbc022a37cc66d7 100644 (file)
 
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/ref.h>
-#include <babeltrace/ctf-ir/fields.h>
-#include <babeltrace/ctf-ir/field-types.h>
-#include <babeltrace/ctf-ir/field-types-internal.h>
-#include <babeltrace/ctf-ir/event-internal.h>
-#include <babeltrace/ctf-ir/packet-internal.h>
-#include <babeltrace/ctf-ir/stream-internal.h>
+#include <babeltrace/trace-ir/fields.h>
+#include <babeltrace/trace-ir/field-types.h>
+#include <babeltrace/trace-ir/field-types-internal.h>
+#include <babeltrace/trace-ir/event-internal.h>
+#include <babeltrace/trace-ir/packet-internal.h>
+#include <babeltrace/trace-ir/stream-internal.h>
 #include <babeltrace/graph/connection.h>
 #include <babeltrace/graph/connection-internal.h>
 #include <babeltrace/graph/component.h>
@@ -53,7 +53,6 @@
 #include <babeltrace/graph/notification-packet-internal.h>
 #include <babeltrace/graph/notification-stream.h>
 #include <babeltrace/graph/notification-stream-internal.h>
-#include <babeltrace/graph/notification-discarded-elements-internal.h>
 #include <babeltrace/graph/port.h>
 #include <babeltrace/graph/graph-internal.h>
 #include <babeltrace/types.h>
  */
 #define NOTIF_BATCH_SIZE       15
 
-struct discarded_elements_state {
-       struct bt_clock_value *cur_begin;
-       uint64_t cur_count;
-};
-
 struct stream_state {
        struct bt_stream *stream; /* owned by this */
        struct bt_packet *cur_packet; /* owned by this */
-       struct discarded_elements_state discarded_packets_state;
-       struct discarded_elements_state discarded_events_state;
        uint64_t expected_notif_seq_num;
        bt_bool is_ended;
 };
@@ -96,8 +88,6 @@ void destroy_stream_state(struct stream_state *stream_state)
        bt_put(stream_state->cur_packet);
        BT_LOGV_STR("Putting stream state's stream.");
        bt_put(stream_state->stream);
-       bt_put(stream_state->discarded_packets_state.cur_begin);
-       bt_put(stream_state->discarded_events_state.cur_begin);
        g_free(stream_state);
 }
 
@@ -112,15 +102,6 @@ struct stream_state *create_stream_state(struct bt_stream *stream)
                goto end;
        }
 
-       /*
-        * The packet index is a monotonic counter which may not start
-        * at 0 at the beginning of the stream. We therefore need to
-        * have an internal object initial state of -1ULL to distinguish
-        * between initial state and having seen a packet with
-        * the sequence number 0.
-        */
-       stream_state->discarded_packets_state.cur_count = -1ULL;
-
        /*
         * We keep a reference to the stream until we know it's ended.
         */
This page took 0.024192 seconds and 4 git commands to generate.