X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-sink%2Ffs-sink-stream.h;h=a6acdd56ada0aa9fae9efb60fcf142417ee5ee52;hp=e3d7ba5eb1f02a86dbc8399f95ee24710e3d9a5b;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=ffa3b2b342beb89fff9f31dd81d4f04ac5546fd5 diff --git a/src/plugins/ctf/fs-sink/fs-sink-stream.h b/src/plugins/ctf/fs-sink/fs-sink-stream.h index e3d7ba5e..a6acdd56 100644 --- a/src/plugins/ctf/fs-sink/fs-sink-stream.h +++ b/src/plugins/ctf/fs-sink/fs-sink-stream.h @@ -1,28 +1,12 @@ -#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H -#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H - /* - * Copyright 2019 Philippe Proulx - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * SPDX-License-Identifier: MIT * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Copyright 2019 Philippe Proulx */ +#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H +#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H + #include "common/macros.h" #include #include "ctfser/ctfser.h" @@ -95,7 +79,10 @@ struct fs_sink_stream { */ uint64_t context_offset_bits; - /* Owned by this */ + /* + * Owned by this; `NULL` if the current packet is closed + * or if the trace IR stream does not support packets. + */ const bt_packet *packet; } packet_state;