projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make bt_private_connection_create_notification_iterator() return a status code
[babeltrace.git]
/
plugins
/
utils
/
dummy
/
dummy.c
diff --git
a/plugins/utils/dummy/dummy.c
b/plugins/utils/dummy/dummy.c
index df2ddff9345408df2aca16fb676b8ef9d942a41f..c3434a59929b8f1c6b2d71d4f8cd7405f9d8de77 100644
(file)
--- a/
plugins/utils/dummy/dummy.c
+++ b/
plugins/utils/dummy/dummy.c
@@
-21,6
+21,7
@@
*/
#include <babeltrace/plugin/plugin-dev.h>
*/
#include <babeltrace/plugin/plugin-dev.h>
+#include <babeltrace/graph/connection.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/private-component.h>
#include <babeltrace/graph/private-component-sink.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/private-component.h>
#include <babeltrace/graph/private-component-sink.h>
@@
-97,14
+98,15
@@
void dummy_port_connected(
struct dummy *dummy;
struct bt_notification_iterator *iterator;
struct bt_private_connection *connection;
struct dummy *dummy;
struct bt_notification_iterator *iterator;
struct bt_private_connection *connection;
+ enum bt_connection_status conn_status;
dummy = bt_private_component_get_user_data(component);
assert(dummy);
connection = bt_private_port_get_private_connection(self_port);
assert(connection);
dummy = bt_private_component_get_user_data(component);
assert(dummy);
connection = bt_private_port_get_private_connection(self_port);
assert(connection);
-
iterator
= bt_private_connection_create_notification_iterator(
- connection, NULL);
- if (
!iterator
) {
+
conn_status
= bt_private_connection_create_notification_iterator(
+ connection, NULL
, &iterator
);
+ if (
conn_status != BT_CONNECTION_STATUS_OK
) {
dummy->error = true;
goto end;
}
dummy->error = true;
goto end;
}
This page took
0.02427 seconds
and
4
git commands to generate.