projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: simplify the public notification iterator interfaces
[babeltrace.git]
/
plugins
/
text
/
pretty
/
pretty.c
diff --git
a/plugins/text/pretty/pretty.c
b/plugins/text/pretty/pretty.c
index 34b5254d67591c53623a23f3b7dab3caf0c3f172..776266765e25a99656ce799813de158459070012 100644
(file)
--- a/
plugins/text/pretty/pretty.c
+++ b/
plugins/text/pretty/pretty.c
@@
-179,7
+179,7
@@
BT_HIDDEN
enum bt_component_status pretty_consume(struct bt_private_component *component)
{
enum bt_component_status ret;
enum bt_component_status pretty_consume(struct bt_private_component *component)
{
enum bt_component_status ret;
- struct bt_notification *notif
ication
= NULL;
+ struct bt_notification *notif = NULL;
struct bt_notification_iterator *it;
struct pretty_component *pretty =
bt_private_component_get_user_data(component);
struct bt_notification_iterator *it;
struct pretty_component *pretty =
bt_private_component_get_user_data(component);
@@
-191,7
+191,7
@@
enum bt_component_status pretty_consume(struct bt_private_component *component)
}
it = pretty->input_iterator;
}
it = pretty->input_iterator;
- it_ret = bt_
notification_iterator_next(it
);
+ it_ret = bt_
private_connection_notification_iterator_next(it, ¬if
);
switch (it_ret) {
case BT_NOTIFICATION_ITERATOR_STATUS_END:
switch (it_ret) {
case BT_NOTIFICATION_ITERATOR_STATUS_END:
@@
-208,11
+208,11
@@
enum bt_component_status pretty_consume(struct bt_private_component *component)
goto end;
}
goto end;
}
- notification = bt_notification_iterator_borrow_notification(it);
- BT_ASSERT(notification);
- ret = handle_notification(pretty, notification);
+ BT_ASSERT(notif);
+ ret = handle_notification(pretty, notif);
end:
end:
+ bt_put(notif);
return ret;
}
return ret;
}
This page took
0.025592 seconds
and
4
git commands to generate.