The code is too strict and enforces that they need to be CTF
identifiers, but it's valid to have those as simple strings.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
BT_LOGD("Creating event class object: name=\"%s\"",
name);
- if (bt_ctf_validate_identifier(name)) {
- BT_LOGW("Invalid parameter: event class's name is not a valid CTF identifier: "
- "name=\"%s\"", name);
- goto error;
- }
-
event_class = g_new0(struct bt_ctf_event_class, 1);
if (!event_class) {
BT_LOGE_STR("Failed to allocate one event class.");
BT_LOGD("Creating empty stream class object: name=\"%s\"", name);
- if (name && bt_ctf_validate_identifier(name)) {
- BT_LOGW("Invalid parameter: stream class's name is not a valid CTF identifier: "
- "name=\"%s\"", name);
- goto error;
- }
-
stream_class = g_new0(struct bt_ctf_stream_class, 1);
if (!stream_class) {
BT_LOGE_STR("Failed to allocate one stream class.");