X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fstream-class.h;h=16573ff939329cde5625bd2c85ff65925ef56910;hb=867eb7632255f6a84234542198bd7edaac1bce12;hp=7610b9029a0b1bfd422368705b5d2afea53d1d65;hpb=91d8147391efdc4d42cc4e1c171a65c0372a008f;p=babeltrace.git diff --git a/src/lib/trace-ir/stream-class.h b/src/lib/trace-ir/stream-class.h index 7610b902..16573ff9 100644 --- a/src/lib/trace-ir/stream-class.h +++ b/src/lib/trace-ir/stream-class.h @@ -1,29 +1,13 @@ -#ifndef BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H -#define BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H - /* + * SPDX-License-Identifier: MIT + * * Copyright 2017-2018 Philippe Proulx * Copyright 2013, 2014 Jérémie Galarneau - * - * 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. - * - * 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. */ +#ifndef BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H +#define BABELTRACE_TRACE_IR_STREAM_CLASS_INTERNAL_H + #include "common/assert.h" #include "common/common.h" #include @@ -32,6 +16,7 @@ #include "common/macros.h" #include #include +#include #include "field-class.h" #include "utils.h" @@ -39,6 +24,9 @@ struct bt_stream_class { struct bt_object base; + /* Owned by this */ + struct bt_value *user_attributes; + struct { GString *str; @@ -49,6 +37,7 @@ struct bt_stream_class { uint64_t id; bool assigns_automatic_event_class_id; bool assigns_automatic_stream_id; + bool supports_packets; bool packets_have_beginning_default_clock_snapshot; bool packets_have_end_default_clock_snapshot; bool supports_discarded_events; @@ -81,7 +70,7 @@ static inline struct bt_trace_class *bt_stream_class_borrow_trace_class_inline( const struct bt_stream_class *stream_class) { - BT_ASSERT(stream_class); + BT_ASSERT_DBG(stream_class); return (void *) bt_object_borrow_parent(&stream_class->base); }