}
lttng_trace_chunk_put(stream->trace_chunk);
stream->trace_chunk = stream->ongoing_rotation.value.next_trace_chunk;
- stream->ongoing_rotation = (typeof(stream->ongoing_rotation)) {};
+ stream->ongoing_rotation = LTTNG_OPTIONAL_INIT_UNSET;
stream->completed_rotation_count++;
}
.buffer = lttng_buffer_view_from_dynamic_buffer(
&payload->buffer, offset, len),
._fd_handles = payload->_fd_handles,
- } : (struct lttng_payload_view) {};
+ } : (struct lttng_payload_view) {
+ .buffer = {},
+ ._fd_handles = {}
+ };
}
struct lttng_payload_view lttng_payload_view_from_view(
.p_fd_handles_position = view->_iterator.p_fd_handles_position ?:
&view->_iterator.fd_handles_position,
}
- } : (struct lttng_payload_view) {};
+ } : (struct lttng_payload_view) {
+ .buffer = {},
+ ._fd_handles = {}
+ };
}
struct lttng_payload_view lttng_payload_view_from_dynamic_buffer(
{
return buffer ? (struct lttng_payload_view) {
.buffer = lttng_buffer_view_from_dynamic_buffer(
- buffer, offset, len)
- } : (struct lttng_payload_view) {};
+ buffer, offset, len),
+ ._fd_handles = {}
+ } : (struct lttng_payload_view) {
+ .buffer = {},
+ ._fd_handles = {}
+ };
}
struct lttng_payload_view lttng_payload_view_from_buffer_view(
{
return view ? (struct lttng_payload_view) {
.buffer = lttng_buffer_view_from_view(
- view, offset, len)
- } : (struct lttng_payload_view) {};
+ view, offset, len),
+ ._fd_handles = {}
+ } : (struct lttng_payload_view) {
+ .buffer = {},
+ ._fd_handles = {}
+ };
}
struct lttng_payload_view lttng_payload_view_init_from_buffer(
{
return (struct lttng_payload_view) {
.buffer = lttng_buffer_view_init(
- src, offset, len)
+ src, offset, len),
+ ._fd_handles = {}
};
}