Fix: headers: add missing end of `extern "C"` curly brackets (for C++)
[babeltrace.git] / include / babeltrace / ctf-writer / stream-internal.h
index 3da0966433a669b0130722d0f00d855d156078eb..565d53f24438def98ea186fa9e471158e17fe150 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H
 
 /*
- * BabelTrace - CTF Writer: Stream
- *
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
 #include <babeltrace/assert-internal.h>
 #include <babeltrace/assert-pre-internal.h>
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/babeltrace.h>
-#include <babeltrace/ctf-writer/serialize-internal.h>
 #include <babeltrace/ctf-writer/stream-internal.h>
 #include <babeltrace/ctf-writer/stream.h>
 #include <babeltrace/ctf-writer/utils-internal.h>
-#include <babeltrace/object-internal.h>
+#include <babeltrace/ctf-writer/object-internal.h>
+#include <babeltrace/ctfser-internal.h>
 #include <stdint.h>
 
 struct bt_ctf_stream_common;
 
 struct bt_ctf_stream_common {
-       struct bt_object base;
+       struct bt_ctf_object base;
        int64_t id;
        struct bt_ctf_stream_class_common *stream_class;
        GString *name;
@@ -54,7 +51,7 @@ BT_HIDDEN
 int bt_ctf_stream_common_initialize(
                struct bt_ctf_stream_common *stream,
                struct bt_ctf_stream_class_common *stream_class, const char *name,
-               uint64_t id, bt_object_release_func release_func);
+               uint64_t id, bt_ctf_object_release_func release_func);
 
 BT_HIDDEN
 void bt_ctf_stream_common_finalize(struct bt_ctf_stream_common *stream);
@@ -96,16 +93,12 @@ struct bt_ctf_stream {
 
        /* Array of pointers to bt_ctf_event for the current packet */
        GPtrArray *events;
-       struct bt_ctf_stream_pos pos;
+       struct bt_ctfser ctfser;
        unsigned int flushed_packet_count;
        uint64_t discarded_events;
-       uint64_t size;
        uint64_t last_ts_end;
 };
 
-BT_HIDDEN
-int bt_ctf_stream_set_fd(struct bt_ctf_stream *stream, int fd);
-
 BT_HIDDEN
 struct bt_ctf_stream *bt_ctf_stream_create_with_id(
                struct bt_ctf_stream_class *stream_class,
This page took 0.025331 seconds and 4 git commands to generate.