X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Ftrace-ir%2Fstream-const.h;h=bf8098303815e591dacad30909f7cb013790cc82;hb=901f0ce8eca409028109888889ddeafb08d7dd69;hp=9607ef412bf681ed590e6228f95e35feaaf32e7a;hpb=71c5da58f2e63c0ea0df3b603d615f5aa3dde008;p=babeltrace.git diff --git a/include/babeltrace2/trace-ir/stream-const.h b/include/babeltrace2/trace-ir/stream-const.h index 9607ef41..bf809830 100644 --- a/include/babeltrace2/trace-ir/stream-const.h +++ b/include/babeltrace2/trace-ir/stream-const.h @@ -1,9 +1,8 @@ -#ifndef BABELTRACE_TRACE_IR_STREAM_CONST_H -#define BABELTRACE_TRACE_IR_STREAM_CONST_H +#ifndef BABELTRACE2_TRACE_IR_STREAM_CONST_H +#define BABELTRACE2_TRACE_IR_STREAM_CONST_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2013, 2014 Jérémie Galarneau + * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -22,24 +21,22 @@ * 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. - * - * The Common Trace Format (CTF) Specification is available at - * http://www.efficios.com/ctf */ -/* For bt_trace, bt_stream, bt_stream_class */ -#include +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif #include +#include + #ifdef __cplusplus extern "C" { #endif -typedef enum bt_stream_status { - BT_STREAM_STATUS_OK = 0, - BT_STREAM_STATUS_NOMEM = -12, -} bt_stream_status; +extern const bt_value *bt_stream_borrow_user_attributes_const( + const bt_stream *stream); extern const bt_stream_class *bt_stream_borrow_class_const( const bt_stream *stream); @@ -72,4 +69,4 @@ extern void bt_stream_put_ref(const bt_stream *stream); } #endif -#endif /* BABELTRACE_TRACE_IR_STREAM_CONST_H */ +#endif /* BABELTRACE2_TRACE_IR_STREAM_CONST_H */