Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bt_put(writer_stream);
break;
}
bt_put(writer_stream);
break;
}
- case BT_NOTIFICATION_TYPE_INACTIVITY:
- {
new_notification = bt_get(notification);
break;
}
new_notification = bt_get(notification);
break;
}
- default:
- puts("Unhandled notification type");
- }
end:
return new_notification;
end:
return new_notification;
bt_private_notification_iterator_get_private_component(iterator);
struct debug_info_iterator *it_data = g_new0(struct debug_info_iterator, 1);
struct bt_private_port *input_port;
bt_private_notification_iterator_get_private_component(iterator);
struct debug_info_iterator *it_data = g_new0(struct debug_info_iterator, 1);
struct bt_private_port *input_port;
- static const enum bt_notification_type notif_types[] = {
- BT_NOTIFICATION_TYPE_EVENT,
- BT_NOTIFICATION_TYPE_STREAM_BEGIN,
- BT_NOTIFICATION_TYPE_STREAM_END,
- BT_NOTIFICATION_TYPE_PACKET_BEGIN,
- BT_NOTIFICATION_TYPE_PACKET_END,
- BT_NOTIFICATION_TYPE_SENTINEL,
- };
if (!it_data) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_NOMEM;
if (!it_data) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_NOMEM;
}
conn_status = bt_private_connection_create_notification_iterator(
}
conn_status = bt_private_connection_create_notification_iterator(
- connection, notif_types, &it_data->input_iterator);
+ connection, NULL, &it_data->input_iterator);
if (conn_status != BT_CONNECTION_STATUS_OK) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
goto end;
if (conn_status != BT_CONNECTION_STATUS_OK) {
ret = BT_NOTIFICATION_ITERATOR_STATUS_ERROR;
goto end;