g_array_set_size(stack->entries, stack->size + 1);
}
- entry = &g_array_index(stack->entries, struct stack_entry, stack->size);
+ entry = &bt_g_array_index(stack->entries, struct stack_entry, stack->size);
entry->base_class = base_class;
entry->base_len = base_len;
entry->index = 0;
{
BT_ASSERT_DBG(stack);
BT_ASSERT_DBG(stack_size(stack));
- return &g_array_index(stack->entries, struct stack_entry, stack->size - 1);
+ return &bt_g_array_index(stack->entries, struct stack_entry, stack->size - 1);
}
static inline size_t available_bits(struct bt_bfcr *bfcr)
return status;
}
-BT_HIDDEN
struct bt_bfcr *bt_bfcr_create(struct bt_bfcr_cbs cbs, void *data, bt_logging_level log_level,
bt_self_component *self_comp)
{
return bfcr;
}
-BT_HIDDEN
void bt_bfcr_destroy(struct bt_bfcr *bfcr)
{
if (bfcr->stack) {
bfcr->buf.packet_offset += bfcr->buf.at;
}
-BT_HIDDEN
size_t bt_bfcr_start(struct bt_bfcr *bfcr, struct ctf_field_class *cls, const uint8_t *buf,
size_t offset, size_t packet_offset, size_t sz, enum bt_bfcr_status *status)
{
return bfcr->buf.at;
}
-BT_HIDDEN
size_t bt_bfcr_continue(struct bt_bfcr *bfcr, const uint8_t *buf, size_t sz,
enum bt_bfcr_status *status)
{
return bfcr->buf.at;
}
-BT_HIDDEN
void bt_bfcr_set_unsigned_int_cb(struct bt_bfcr *bfcr, bt_bfcr_unsigned_int_cb_func cb)
{
BT_ASSERT_DBG(bfcr);