projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow stream_id change in event class attributes
[babeltrace.git]
/
formats
/
ctf
/
ir
/
event-class.c
diff --git
a/formats/ctf/ir/event-class.c
b/formats/ctf/ir/event-class.c
index fa55457c3cb15dd1fefba7dc9f43f6ae312d1ef0..fa5756d65930d1cc90276b97d3b7009b9dd76752 100644
(file)
--- a/
formats/ctf/ir/event-class.c
+++ b/
formats/ctf/ir/event-class.c
@@
-220,7
+220,8
@@
int bt_ctf_event_class_set_attribute(
goto end;
}
goto end;
}
- if (!strcmp(name, "id") || !strcmp(name, "loglevel")) {
+ if (!strcmp(name, "id") || !strcmp(name, "loglevel") ||
+ !strcmp(name, "stream_id")) {
if (!bt_value_is_integer(value)) {
ret = -1;
goto end;
if (!bt_value_is_integer(value)) {
ret = -1;
goto end;
@@
-253,7
+254,7
@@
int bt_ctf_event_class_set_attribute(
}
ret = bt_ctf_attributes_set_field_value(event_class->attributes,
}
ret = bt_ctf_attributes_set_field_value(event_class->attributes,
- name, value);
+
name, value);
end:
return ret;
end:
return ret;
This page took
0.022761 seconds
and
4
git commands to generate.