const char *bt_notification_type_string(enum bt_notification_type type)
{
switch (type) {
- case BT_NOTIFICATION_TYPE_UNKNOWN:
- return "BT_NOTIFICATION_TYPE_UNKNOWN";
case BT_NOTIFICATION_TYPE_EVENT:
return "BT_NOTIFICATION_TYPE_EVENT";
case BT_NOTIFICATION_TYPE_INACTIVITY:
* Notification types. Unhandled notification types should be ignored.
*/
enum bt_notification_type {
- BT_NOTIFICATION_TYPE_UNKNOWN = -1,
BT_NOTIFICATION_TYPE_EVENT = 0,
BT_NOTIFICATION_TYPE_INACTIVITY = 1,
BT_NOTIFICATION_TYPE_STREAM_BEGIN = 2,
BT_NOTIFICATION_TYPE_STREAM_END = 3,
BT_NOTIFICATION_TYPE_PACKET_BEGIN = 4,
BT_NOTIFICATION_TYPE_PACKET_END = 5,
- BT_NOTIFICATION_TYPE_NR, /* Not part of ABI. */
};
/**
bt_object_release_func release,
struct bt_graph *graph)
{
- BT_ASSERT(type >= 0 && type < BT_NOTIFICATION_TYPE_NR);
+ BT_ASSERT(type >= 0 &&
+ type <= BT_NOTIFICATION_TYPE_PACKET_END);
notification->type = type;
init_seq_num(notification);
bt_object_init_shared(¬ification->base, release);