projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ir: stream: add bt_ctf_stream_is_writer()
[babeltrace.git]
/
formats
/
ctf
/
ir
/
stream.c
diff --git
a/formats/ctf/ir/stream.c
b/formats/ctf/ir/stream.c
index d4dbc447ca6a6b1fe16d6004c90e408c97f1ee61..5e9e133794232aeba637540998dd6afd7c84c4bd 100644
(file)
--- a/
formats/ctf/ir/stream.c
+++ b/
formats/ctf/ir/stream.c
@@
-1000,3
+1000,17
@@
const char *bt_ctf_stream_get_name(struct bt_ctf_stream *stream)
end:
return name;
}
+
+int bt_ctf_stream_is_writer(struct bt_ctf_stream *stream)
+{
+ int ret = -1;
+
+ if (!stream) {
+ goto end;
+ }
+
+ ret = (stream->pos.fd >= 0);
+
+end:
+ return ret;
+}
This page took
0.024188 seconds
and
4
git commands to generate.