* This function truncates the stream file so that there's no extra
* padding after the last packet, and then closes the file.
*/
* This function truncates the stream file so that there's no extra
* padding after the last packet, and then closes the file.
*/
int bt_ctfser_open_packet(struct bt_ctfser *ctfser);
/*
* Closes the current packet, making its size `packet_size_bytes`.
*/
int bt_ctfser_open_packet(struct bt_ctfser *ctfser);
/*
* Closes the current packet, making its size `packet_size_bytes`.
*/
void bt_ctfser_close_current_packet(struct bt_ctfser *ctfser,
uint64_t packet_size_bytes);
void bt_ctfser_close_current_packet(struct bt_ctfser *ctfser,
uint64_t packet_size_bytes);