struct stack *stack;
/* Current notification iterator to create notifications (weak) */
- struct bt_private_connection_private_notification_iterator *notif_iter;
+ struct bt_self_notification_iterator *notif_iter;
/*
* Current dynamic scope field pointer.
}
notit->dscopes.trace_packet_header =
- bt_private_packet_header_field_borrow_private_field(
+ bt_private_packet_header_field_borrow_field(
notit->packet_header_field);
BT_ASSERT(notit->dscopes.trace_packet_header);
}
}
notit->dscopes.stream_packet_context =
- bt_private_packet_context_field_borrow_private_field(
+ bt_private_packet_context_field_borrow_field(
notit->packet_context_field);
BT_ASSERT(notit->dscopes.stream_packet_context);
}
}
notit->dscopes.event_header =
- bt_private_event_header_field_borrow_private_field(
+ bt_private_event_header_field_borrow_field(
notit->event_header_field);
BT_ASSERT(notit->dscopes.event_header);
}
goto end;
}
- notit->event = bt_private_notification_event_borrow_private_event(
+ notit->event = bt_private_notification_event_borrow_event(
notit->event_notif);
BT_ASSERT(notit->event);
int ret;
BT_ASSERT(notit->event);
- ret = bt_private_event_move_private_header_field(notit->event,
+ ret = bt_private_event_move_header_field(notit->event,
notit->event_header_field);
if (ret) {
status = BT_NOTIF_ITER_STATUS_ERROR;
* the same value as the event header field within
* notit->event.
*/
- BT_ASSERT(bt_private_event_borrow_header_private_field(
+ BT_ASSERT(bt_private_event_borrow_header_field(
notit->event) == notit->dscopes.event_header);
}
if (event_common_context_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_common_context);
notit->dscopes.event_common_context =
- bt_private_event_borrow_common_context_private_field(
+ bt_private_event_borrow_common_context_field(
notit->event);
BT_ASSERT(notit->dscopes.event_common_context);
}
if (event_spec_context_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_spec_context);
notit->dscopes.event_spec_context =
- bt_private_event_borrow_specific_context_private_field(
+ bt_private_event_borrow_specific_context_field(
notit->event);
BT_ASSERT(notit->dscopes.event_spec_context);
}
if (event_payload_fc->in_ir) {
BT_ASSERT(!notit->dscopes.event_payload);
notit->dscopes.event_payload =
- bt_private_event_borrow_payload_private_field(
+ bt_private_event_borrow_payload_field(
notit->event);
BT_ASSERT(notit->dscopes.event_payload);
}
index = stack_top(notit->stack)->index;
base_field = stack_top(notit->stack)->base;
BT_ASSERT(base_field);
- base_fc = bt_private_field_borrow_private_class(base_field);
+ base_fc = bt_private_field_borrow_class(base_field);
BT_ASSERT(base_fc);
- switch (bt_field_class_get_type(bt_field_class_borrow_from_private(base_fc))) {
+ switch (bt_field_class_get_type(
+ bt_private_field_class_borrow_field_class(base_fc))) {
case BT_FIELD_CLASS_TYPE_STRUCTURE:
{
BT_ASSERT(index <
bt_field_class_structure_get_member_count(
- bt_field_class_borrow_from_private(
- bt_private_field_borrow_private_class(
+ bt_private_field_class_borrow_field_class(
+ bt_private_field_borrow_class(
base_field))));
next_field =
- bt_private_field_structure_borrow_member_private_field_by_index(
+ bt_private_field_structure_borrow_member_field_by_index(
base_field, index);
break;
}
case BT_FIELD_CLASS_TYPE_STATIC_ARRAY:
case BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY:
BT_ASSERT(index < bt_field_array_get_length(
- bt_field_borrow_from_private(base_field)));
- next_field = bt_private_field_array_borrow_element_private_field_by_index(
+ bt_private_field_borrow_field(base_field)));
+ next_field = bt_private_field_array_borrow_element_field_by_index(
base_field, index);
break;
case BT_FIELD_CLASS_TYPE_VARIANT:
BT_ASSERT(index == 0);
- next_field = bt_private_field_variant_borrow_selected_option_private_field(
+ next_field = bt_private_field_variant_borrow_selected_option_field(
base_field);
break;
default:
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
+ bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER ||
- bt_field_get_class_type(bt_field_borrow_from_private(field)) ==
+ bt_field_get_class_type(bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION);
bt_private_field_unsigned_integer_set_value(field, value);
stack_top(notit->stack)->index++;
string_field = stack_top(notit->stack)->base;
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(string_field)) ==
+ bt_private_field_borrow_field(string_field)) ==
BT_FIELD_CLASS_TYPE_STRING);
/* Append character */
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
+ bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER ||
- bt_field_get_class_type(bt_field_borrow_from_private(field)) ==
+ bt_field_get_class_type(bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_SIGNED_ENUMERATION);
bt_private_field_signed_integer_set_value(field, value);
stack_top(notit->stack)->index++;
BT_ASSERT(fc->in_ir);
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
+ bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_REAL);
bt_private_field_real_set_value(field, value);
stack_top(notit->stack)->index++;
BT_ASSERT(fc->in_ir);
field = borrow_next_field(notit);
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
+ bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_STRING);
ret = bt_private_field_string_clear(field);
BT_ASSERT(ret == 0);
/* Push field */
BT_ASSERT(field);
- BT_ASSERT(bt_private_field_borrow_private_class(field) == fc->ir_fc);
+ BT_ASSERT(bt_private_field_borrow_class(field) == fc->ir_fc);
stack_push(notit->stack, field);
/*
int ret;
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(field)) ==
+ bt_private_field_borrow_field(field)) ==
BT_FIELD_CLASS_TYPE_STRING);
notit->done_filling_string = false;
ret = bt_private_field_string_clear(field);
}
BT_ASSERT(!stack_empty(notit->stack));
- BT_ASSERT(bt_private_field_borrow_private_class(stack_top(notit->stack)->base) ==
+ BT_ASSERT(bt_private_field_borrow_class(stack_top(notit->stack)->base) ==
fc->ir_fc);
/*
if (array_fc->is_text) {
BT_ASSERT(bt_field_get_class_type(
- bt_field_borrow_from_private(
+ bt_private_field_borrow_field(
stack_top(notit->stack)->base)) ==
BT_FIELD_CLASS_TYPE_STRING);
bt_bfcr_set_unsigned_int_cb(notit->bfcr,
if (selected_option->fc->in_ir) {
struct bt_private_field *var_field = stack_top(notit->stack)->base;
- ret = bt_private_field_variant_select_option_private_field(
+ ret = bt_private_field_variant_select_option_field(
var_field, option_index);
if (ret) {
BT_LOGW("Cannot select variant field's option field: "
void set_event_default_clock_value(struct bt_notif_iter *notit)
{
struct bt_private_event *event =
- bt_private_notification_event_borrow_private_event(
+ bt_private_notification_event_borrow_event(
notit->event_notif);
- struct bt_stream_class *sc = bt_stream_class_borrow_from_private(
+ struct bt_stream_class *sc = bt_private_stream_class_borrow_stream_class(
notit->meta.sc->ir_sc);
BT_ASSERT(event);
}
BT_ASSERT(notit->packet);
- sc = bt_stream_class_borrow_from_private(notit->meta.sc->ir_sc);
+ sc = bt_private_stream_class_borrow_stream_class(notit->meta.sc->ir_sc);
BT_ASSERT(sc);
if (bt_stream_class_packets_have_discarded_event_counter_snapshot(sc)) {
}
if (notit->packet_header_field) {
- ret = bt_private_packet_move_private_header_field(
+ ret = bt_private_packet_move_header_field(
notit->packet, notit->packet_header_field);
if (ret) {
goto end;
* the same value as the packet header field within
* notit->packet.
*/
- BT_ASSERT(bt_private_packet_borrow_header_private_field(
+ BT_ASSERT(bt_private_packet_borrow_header_field(
notit->packet) ==
notit->dscopes.trace_packet_header);
}
if (notit->packet_context_field) {
- ret = bt_private_packet_move_private_context_field(
+ ret = bt_private_packet_move_context_field(
notit->packet, notit->packet_context_field);
if (ret) {
goto end;
* the same value as the packet header field within
* notit->packet.
*/
- BT_ASSERT(bt_private_packet_borrow_context_private_field(
+ BT_ASSERT(bt_private_packet_borrow_context_field(
notit->packet) ==
notit->dscopes.stream_packet_context);
}
enum bt_notif_iter_status bt_notif_iter_get_next_notification(
struct bt_notif_iter *notit,
- struct bt_private_connection_private_notification_iterator *notif_iter,
+ struct bt_self_notification_iterator *notif_iter,
struct bt_private_notification **notification)
{
enum bt_notif_iter_status status = BT_NOTIF_ITER_STATUS_OK;