#include <babeltrace/ctf-ir/stream.h>
#include <babeltrace/types.h>
-typedef struct bt_ctf_stream *(*get_stream_func)(
+typedef struct bt_stream *(*get_stream_func)(
struct bt_notification *notification);
struct bt_notification {
bt_bool frozen;
};
+#define BT_ASSERT_PRE_NOTIF_IS_TYPE(_notif, _type) \
+ BT_ASSERT_PRE((_notif)->type == (_type), \
+ "Notification has the wrong type: expected-type=%s, " \
+ "%![notif-]+n", bt_notification_type_string(_type), \
+ (_notif))
+
BT_HIDDEN
void bt_notification_init(struct bt_notification *notification,
enum bt_notification_type type,
return "BT_NOTIFICATION_TYPE_PACKET_BEGIN";
case BT_NOTIFICATION_TYPE_PACKET_END:
return "BT_NOTIFICATION_TYPE_PACKET_END";
+ case BT_NOTIFICATION_TYPE_DISCARDED_EVENTS:
+ return "BT_NOTIFICATION_TYPE_DISCARDED_EVENTS";
+ case BT_NOTIFICATION_TYPE_DISCARDED_PACKETS:
+ return "BT_NOTIFICATION_TYPE_DISCARDED_PACKETS";
default:
return "(unknown)";
}