struct bt_event *event;
/* Current event notification (NULL if not created yet) */
- struct bt_private_notification *event_notif;
+ struct bt_notification *event_notif;
/* Database of current dynamic scopes */
struct {
struct bt_notif_iter *notit)
{
enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;
- struct bt_private_notification *notif = NULL;
+ struct bt_notification *notif = NULL;
BT_ASSERT(notit->meta.ec);
BT_ASSERT(notit->packet);
notit->meta.ec->name->str,
notit->packet);
BT_ASSERT(notit->notif_iter);
- notif = bt_private_notification_event_create(notit->notif_iter,
+ notif = bt_notification_event_create(notit->notif_iter,
notit->meta.ec->ir_ec, notit->packet);
if (!notif) {
BT_LOGE("Cannot create event notification: "
goto end;
}
- notit->event = bt_private_notification_event_borrow_event(
+ notit->event = bt_notification_event_borrow_event(
notit->event_notif);
BT_ASSERT(notit->event);
void set_event_default_clock_value(struct bt_notif_iter *notit)
{
struct bt_event *event =
- bt_private_notification_event_borrow_event(
+ bt_notification_event_borrow_event(
notit->event_notif);
struct bt_stream_class *sc = notit->meta.sc->ir_sc;
static
void notify_new_stream(struct bt_notif_iter *notit,
- struct bt_private_notification **notification)
+ struct bt_notification **notification)
{
enum bt_notif_iter_status status;
- struct bt_private_notification *ret = NULL;
+ struct bt_notification *ret = NULL;
status = set_current_stream(notit);
if (status != BT_NOTIF_ITER_STATUS_OK) {
BT_ASSERT(notit->stream);
BT_ASSERT(notit->notif_iter);
- ret = bt_private_notification_stream_begin_create(notit->notif_iter,
+ ret = bt_notification_stream_begin_create(notit->notif_iter,
notit->stream);
if (!ret) {
BT_LOGE("Cannot create stream beginning notification: "
static
void notify_end_of_stream(struct bt_notif_iter *notit,
- struct bt_private_notification **notification)
+ struct bt_notification **notification)
{
- struct bt_private_notification *ret;
+ struct bt_notification *ret;
if (!notit->stream) {
BT_LOGE("Cannot create stream for stream notification: "
}
BT_ASSERT(notit->notif_iter);
- ret = bt_private_notification_stream_end_create(notit->notif_iter,
+ ret = bt_notification_stream_end_create(notit->notif_iter,
notit->stream);
if (!ret) {
BT_LOGE("Cannot create stream beginning notification: "
static
void notify_new_packet(struct bt_notif_iter *notit,
- struct bt_private_notification **notification)
+ struct bt_notification **notification)
{
int ret;
enum bt_notif_iter_status status;
- struct bt_private_notification *notif = NULL;
+ struct bt_notification *notif = NULL;
const struct bt_stream_class *sc;
status = set_current_packet(notit);
}
BT_ASSERT(notit->notif_iter);
- notif = bt_private_notification_packet_begin_create(notit->notif_iter,
+ notif = bt_notification_packet_begin_create(notit->notif_iter,
notit->packet);
if (!notif) {
BT_LOGE("Cannot create packet beginning notification: "
static
void notify_end_of_packet(struct bt_notif_iter *notit,
- struct bt_private_notification **notification)
+ struct bt_notification **notification)
{
- struct bt_private_notification *notif;
+ struct bt_notification *notif;
if (!notit->packet) {
return;
}
BT_ASSERT(notit->notif_iter);
- notif = bt_private_notification_packet_end_create(notit->notif_iter,
+ notif = bt_notification_packet_end_create(notit->notif_iter,
notit->packet);
if (!notif) {
BT_LOGE("Cannot create packet end notification: "
enum bt_notif_iter_status bt_notif_iter_get_next_notification(
struct bt_notif_iter *notit,
struct bt_self_notification_iterator *notif_iter,
- struct bt_private_notification **notification)
+ struct bt_notification **notification)
{
enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;