Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* Returns the number of discarded events, a negative value on error.
*/
*
* Returns the number of discarded events, a negative value on error.
*/
-extern int64_t bt_ctf_stream_get_discarded_events_count(
+extern int bt_ctf_stream_get_discarded_events_count(
struct bt_ctf_stream *stream, uint64_t *count);
/*
struct bt_ctf_stream *stream, uint64_t *count);
/*
-int64_t bt_ctf_stream_get_discarded_events_count(
+int bt_ctf_stream_get_discarded_events_count(
struct bt_ctf_stream *stream, uint64_t *count)
{
struct bt_ctf_stream *stream, uint64_t *count)
{
if (!stream) {
BT_LOGW_STR("Invalid parameter: stream is NULL.");
if (!stream) {
BT_LOGW_STR("Invalid parameter: stream is NULL.");
goto end;
}
if (!count) {
BT_LOGW_STR("Invalid parameter: count is NULL.");
goto end;
}
if (!count) {
BT_LOGW_STR("Invalid parameter: count is NULL.");
BT_LOGW("Invalid parameter: stream is not a CTF writer stream: "
"stream-addr=%p, stream-name=\"%s\"",
stream, bt_ctf_stream_get_name(stream));
BT_LOGW("Invalid parameter: stream is not a CTF writer stream: "
"stream-addr=%p, stream-name=\"%s\"",
stream, bt_ctf_stream_get_name(stream));