}
static
-struct bt_notification *evaluate_event_notification(
- struct bt_notification *notification,
+const struct bt_notification *evaluate_event_notification(
+ const struct bt_notification *notification,
struct trimmer_iterator *trim_it,
struct trimmer_bound *begin, struct trimmer_bound *end,
bool *_event_in_range, bool *finished)
const struct bt_stream_class *stream_class = NULL;
struct bt_clock_value *clock_value = NULL;
bool lazy_update = false;
- struct bt_notification *new_notification = NULL;
+ const struct bt_notification *new_notification = NULL;
struct bt_clock_class_priority_map *cc_prio_map;
event = bt_notification_event_get_event(notification);
}
static
-struct bt_notification *evaluate_packet_notification(
- struct bt_notification *notification,
+const struct bt_notification *evaluate_packet_notification(
+ const struct bt_notification *notification,
struct trimmer_iterator *trim_it,
struct trimmer_bound *begin, struct trimmer_bound *end,
bool *_packet_in_range, bool *finished)
const struct bt_field *packet_context = NULL,
*timestamp_begin = NULL,
*timestamp_end = NULL;
- struct bt_notification *new_notification = NULL;
+ const struct bt_notification *new_notification = NULL;
enum bt_component_status ret;
bool lazy_update = false;
switch (bt_notification_get_type(notification)) {
- case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
- packet = bt_notification_packet_begin_get_packet(notification);
+ case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
+ packet = bt_notification_packet_beginning_get_packet(notification);
BT_ASSERT(packet);
writer_packet = trimmer_new_packet(trim_it, packet);
BT_ASSERT(writer_packet);
end:
switch (bt_notification_get_type(notification)) {
- case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
- new_notification = bt_notification_packet_begin_create(writer_packet);
+ case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
+ new_notification = bt_notification_packet_beginning_create(writer_packet);
BT_ASSERT(new_notification);
break;
case BT_NOTIFICATION_TYPE_PACKET_END:
}
static
-struct bt_notification *evaluate_stream_notification(
- struct bt_notification *notification,
+const struct bt_notification *evaluate_stream_notification(
+ const struct bt_notification *notification,
struct trimmer_iterator *trim_it)
{
const struct bt_stream *stream;
/* Return true if the notification should be forwarded. */
static
enum bt_notification_iterator_status evaluate_notification(
- struct bt_notification **notification,
+ const struct bt_notification **notification,
struct trimmer_iterator *trim_it,
struct trimmer_bound *begin, struct trimmer_bound *end,
bool *in_range)
{
enum bt_notification_type type;
- struct bt_notification *new_notification = NULL;
+ const struct bt_notification *new_notification = NULL;
bool finished = false;
*in_range = true;
new_notification = evaluate_event_notification(*notification,
trim_it, begin, end, in_range, &finished);
break;
- case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
+ case BT_NOTIFICATION_TYPE_PACKET_BEGINNING:
case BT_NOTIFICATION_TYPE_PACKET_END:
new_notification = evaluate_packet_notification(*notification,
trim_it, begin, end, in_range, &finished);