Fix: allow NULL (unnamed) in bt_ctf_stream_class_{get,set}_name()
[babeltrace.git] / include / babeltrace / ctf-ir / stream-internal.h
index a54cd57b49924b9c77eb54b3b0ff1df7d0652139..41fe247d21afbe152a9b7dc80447781b47b64e0a 100644 (file)
@@ -49,7 +49,7 @@ struct bt_ctf_stream_destroy_listener {
 
 struct bt_ctf_stream {
        struct bt_object base;
-       uint32_t id;
+       int64_t id;
        struct bt_ctf_stream_class *stream_class;
        GString *name;
        struct bt_ctf_field *packet_header;
@@ -80,6 +80,7 @@ struct bt_ctf_stream {
        GPtrArray *events;
        struct bt_ctf_stream_pos pos;
        unsigned int flushed_packet_count;
+       uint64_t discarded_events;
        uint64_t size;
 
        /* Array of struct bt_ctf_stream_destroy_listener */
@@ -106,4 +107,12 @@ BT_HIDDEN
 void bt_ctf_stream_remove_destroy_listener(struct bt_ctf_stream *stream,
                bt_ctf_stream_destroy_listener_func func, void *data);
 
+static inline
+struct bt_ctf_stream_class *bt_ctf_stream_borrow_stream_class(
+               struct bt_ctf_stream *stream)
+{
+       assert(stream);
+       return stream->stream_class;
+}
+
 #endif /* BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H */
This page took 0.024931 seconds and 4 git commands to generate.