* SOFTWARE.
*/
-#define BT_LOG_TAG "STREAM"
-#include "lib/lib-logging.h"
+#define BT_LOG_TAG "LIB/STREAM"
+#include "lib/logging.h"
#include "lib/assert-pre.h"
#include <babeltrace2/trace-ir/stream-const.h>
#include "stream-class.h"
#include "stream.h"
#include "trace.h"
+#include "lib/func-status.h"
#define BT_ASSERT_PRE_STREAM_HOT(_stream) \
BT_ASSERT_PRE_HOT((_stream), "Stream", ": %!+s", (_stream))
return stream->name.value;
}
-enum bt_stream_status bt_stream_set_name(struct bt_stream *stream,
+enum bt_stream_set_name_status bt_stream_set_name(struct bt_stream *stream,
const char *name)
{
BT_ASSERT_PRE_NON_NULL(stream, "Stream");
g_string_assign(stream->name.str, name);
stream->name.value = stream->name.str->str;
BT_LIB_LOGD("Set stream's name: %!+s", stream);
- return BT_STREAM_STATUS_OK;
+ return BT_FUNC_STATUS_OK;
}
uint64_t bt_stream_get_id(const struct bt_stream *stream)