#include <babeltrace/ctf-ir/event-types-internal.h>
#include <babeltrace/ctf-ir/event-internal.h>
#include <babeltrace/ctf-ir/stream-class.h>
+#include <babeltrace/ctf-ir/stream-class-internal.h>
#include <babeltrace/ctf-ir/trace-internal.h>
+#include <babeltrace/ctf-ir/utils.h>
#include <babeltrace/compiler.h>
static
{
struct bt_ctf_event_class *event_class = NULL;
- if (validate_identifier(name)) {
+ if (bt_ctf_validate_identifier(name)) {
goto end;
}
{
int ret = 0;
- if (!event_class || !type || validate_identifier(name) ||
+ if (!event_class || !type || bt_ctf_validate_identifier(name) ||
event_class->frozen) {
ret = -1;
goto end;
{
int ret = 0;
- if (!event || !value || validate_identifier(name)) {
+ if (!event || !value || bt_ctf_validate_identifier(name)) {
ret = -1;
goto end;
}
return ret;
}
+void bt_ctf_event_class_set_native_byte_order(
+ struct bt_ctf_event_class *event_class,
+ int byte_order)
+{
+ if (!event_class) {
+ return;
+ }
+
+ bt_ctf_field_type_set_native_byte_order(event_class->context,
+ byte_order);
+ bt_ctf_field_type_set_native_byte_order(event_class->fields,
+ byte_order);
+}
+
BT_HIDDEN
int bt_ctf_event_validate(struct bt_ctf_event *event)
{