/*
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
* 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
#include <babeltrace/ctf-writer/functor-internal.h>
#include <babeltrace/ctf-writer/clock-internal.h>
#include <babeltrace/trace-ir/field-wrapper-internal.h>
-#include <babeltrace/trace-ir/field-classes-internal.h>
+#include <babeltrace/trace-ir/field-class-internal.h>
#include <babeltrace/trace-ir/attributes-internal.h>
#include <babeltrace/trace-ir/utils-internal.h>
#include <babeltrace/trace-ir/resolve-field-path-internal.h>
#include <babeltrace/compiler-internal.h>
-#include <babeltrace/values.h>
-#include <babeltrace/values-const.h>
-#include <babeltrace/values-internal.h>
-#include <babeltrace/object.h>
+#include <babeltrace/value.h>
+#include <babeltrace/value-const.h>
+#include <babeltrace/value-internal.h>
#include <babeltrace/types.h>
#include <babeltrace/endian-internal.h>
#include <babeltrace/assert-internal.h>
tc->stream_classes = NULL;
}
- BT_LOGD_STR("Putting packet header field classe.");
+ BT_LOGD_STR("Putting packet header field class.");
bt_object_put_ref(tc->packet_header_fc);
tc->packet_header_fc = NULL;
g_free(tc);
BT_ASSERT_PRE_TRACE_CLASS_HOT(tc);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Packet header field classe is not a structure field classe: %!+F",
+ "Packet header field class is not a structure field class: %!+F",
field_class);
ret = bt_resolve_field_paths(field_class, &resolve_ctx);
if (ret) {
tc->packet_header_fc = field_class;
bt_object_get_no_null_check(tc->packet_header_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set trace class's packet header field classe: %!+T", tc);
+ BT_LIB_LOGV("Set trace class's packet header field class: %!+T", tc);
end:
return ret;
BT_HIDDEN
void _bt_trace_class_freeze(const struct bt_trace_class *tc)
{
- /* The packet header field classe is already frozen */
+ /* The packet header field class is already frozen */
BT_ASSERT(tc);
BT_LIB_LOGD("Freezing trace class: %!+T", tc);
((struct bt_trace_class *) tc)->frozen = true;
BT_LIB_LOGV("Set trace class's automatic stream class ID "
"assignment property: %!+T", tc);
}
+
+void bt_trace_class_get_ref(const struct bt_trace_class *trace_class)
+{
+ bt_object_get_ref(trace_class);
+}
+
+void bt_trace_class_put_ref(const struct bt_trace_class *trace_class)
+{
+ bt_object_put_ref(trace_class);
+}