Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
* Status code. Errors are always negative.
*/
enum bt_notification_iterator_status {
* Status code. Errors are always negative.
*/
enum bt_notification_iterator_status {
+ /** No more notifications to be delivered. */
+ BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
/** No error, okay. */
BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
/** Invalid arguments. */
/** No error, okay. */
BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
/** Invalid arguments. */
{
struct bt_ctf_notif_iter_notif_new_packet *notif =
(struct bt_ctf_notif_iter_notif_new_packet *) notification;
{
struct bt_ctf_notif_iter_notif_new_packet *notif =
(struct bt_ctf_notif_iter_notif_new_packet *) notification;
break;
}
case BT_CTF_NOTIF_ITER_NOTIF_EVENT:
{
struct bt_ctf_notif_iter_notif_event *notif =
(struct bt_ctf_notif_iter_notif_event *) notification;
break;
}
case BT_CTF_NOTIF_ITER_NOTIF_EVENT:
{
struct bt_ctf_notif_iter_notif_event *notif =
(struct bt_ctf_notif_iter_notif_event *) notification;
break;
}
case BT_CTF_NOTIF_ITER_NOTIF_END_OF_PACKET:
{
struct bt_ctf_notif_iter_notif_end_of_packet *notif =
(struct bt_ctf_notif_iter_notif_end_of_packet *) notification;
break;
}
case BT_CTF_NOTIF_ITER_NOTIF_END_OF_PACKET:
{
struct bt_ctf_notif_iter_notif_end_of_packet *notif =
(struct bt_ctf_notif_iter_notif_end_of_packet *) notification;
break;
}
default:
break;
}
break;
}
default:
break;
}
+ bt_ctf_notif_iter_notif_destroy(notification);
+ return BT_NOTIFICATION_ITERATOR_STATUS_OK;