X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fstream-internal.h;h=19cd8c2f8658e92ae80d50577ec2bb6f57c8a99d;hb=cb6f1f7dfb7938a4738a7f3ca3886334fbceb1a3;hp=5ffe815ee089ca86ef89ebb3110e966331045975;hpb=b71d729878967a4c0fb839fdea8d034cf90a1d1f;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/stream-internal.h b/include/babeltrace/ctf-ir/stream-internal.h index 5ffe815e..19cd8c2f 100644 --- a/include/babeltrace/ctf-ir/stream-internal.h +++ b/include/babeltrace/ctf-ir/stream-internal.h @@ -1,5 +1,5 @@ -#ifndef BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H -#define BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H +#ifndef BABELTRACE_CTF_IR_STREAM_INTERNAL_H +#define BABELTRACE_CTF_IR_STREAM_INTERNAL_H /* * BabelTrace - CTF Writer: Stream internal @@ -27,31 +27,26 @@ * SOFTWARE. */ +#include +#include #include +#include #include -#include -#include -#include +#include #include -#include #include -struct bt_ctf_stream { +struct bt_stream_class; +struct bt_stream; + +struct bt_stream { struct bt_object base; - uint32_t id; - struct bt_ctf_stream_class *stream_class; - /* Array of pointers to bt_ctf_event for the current packet */ - GPtrArray *events; - struct ctf_stream_pos pos; - unsigned int flushed_packet_count; + int64_t id; + struct bt_stream_class *stream_class; GString *name; - struct bt_ctf_field *packet_header; - struct bt_ctf_field *packet_context; - struct bt_ctf_field *event_header; - struct bt_ctf_field *event_context; -}; -BT_HIDDEN -int bt_ctf_stream_set_fd(struct bt_ctf_stream *stream, int fd); + /* Pool of `struct bt_packet *` */ + struct bt_object_pool packet_pool; +}; -#endif /* BABELTRACE_CTF_WRITER_STREAM_INTERNAL_H */ +#endif /* BABELTRACE_CTF_IR_STREAM_INTERNAL_H */