- struct bt_notification *notif =
- bt_notification_iterator_get_notification(counter->notif_iter);
-
- BT_ASSERT(notif);
- switch (bt_notification_get_type(notif)) {
- case BT_NOTIFICATION_TYPE_EVENT:
- counter->count.event++;
- break;
- case BT_NOTIFICATION_TYPE_INACTIVITY:
- counter->count.inactivity++;
- break;
- case BT_NOTIFICATION_TYPE_STREAM_BEGIN:
- counter->count.stream_begin++;
- break;
- case BT_NOTIFICATION_TYPE_STREAM_END:
- counter->count.stream_end++;
- break;
- case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
- counter->count.packet_begin++;
- break;
- case BT_NOTIFICATION_TYPE_PACKET_END:
- counter->count.packet_end++;
- break;
- case BT_NOTIFICATION_TYPE_DISCARDED_EVENTS:
- counter->count.discarded_events_notifs++;
- count = bt_notification_discarded_events_get_count(
- notif);
- if (count >= 0) {
- counter->count.discarded_events += count;
+ uint64_t i;
+
+ for (i = 0; i < notif_count; i++) {
+ const struct bt_notification *notif = notifs[i];
+
+ BT_ASSERT(notif);
+ switch (bt_notification_get_type(notif)) {
+ case BT_NOTIFICATION_TYPE_EVENT:
+ counter->count.event++;
+ break;
+ case BT_NOTIFICATION_TYPE_INACTIVITY:
+ counter->count.inactivity++;
+ break;
+ case BT_NOTIFICATION_TYPE_STREAM_BEGIN:
+ counter->count.stream_begin++;
+ break;
+ case BT_NOTIFICATION_TYPE_STREAM_END:
+ counter->count.stream_end++;
+ break;
+ case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
+ counter->count.packet_begin++;
+ break;
+ case BT_NOTIFICATION_TYPE_PACKET_END:
+ counter->count.packet_end++;
+ break;
+ default:
+ counter->count.other++;