* a compound type begins/ends, or when a basic type is
* completely decoded (along with its value).
*
* a compound type begins/ends, or when a basic type is
* completely decoded (along with its value).
*
- * Actual CTF IR fields are \em not created here; this would be
- * the responsibility of a type reader's user (the provider of
- * those callback functions).
+ * Actual trace IR fields are \em not created here; this would
+ * be the responsibility of a type reader's user (the provider
+ * of those callback functions).
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* signed_int)(int64_t value,
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* signed_int)(int64_t value,
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* floating_point)(double value,
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* floating_point)(double value,
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* string)(const char *value,
* @param data User data
* @returns #BT_BTR_STATUS_OK or
* #BT_BTR_STATUS_ERROR
*/
enum bt_btr_status (* string)(const char *value,
- struct bt_field_type * (* borrow_variant_field_type)(
- struct bt_field_type *type, void *data);
+ struct ctf_field_type * (* borrow_variant_selected_field_type)(
+ struct ctf_field_type *type, void *data);
* @param data User data (passed to user callback functions)
* @returns New binary type reader on success, or \c NULL on error
*/
* @param data User data (passed to user callback functions)
* @returns New binary type reader on success, or \c NULL on error
*/
* be called next, \em not bt_btr_decode().
*
* @param btr Binary type reader
* be called next, \em not bt_btr_decode().
*
* @param btr Binary type reader
* @param buf Buffer
* @param offset Offset of first bit from \p buf (bits)
* @param packet_offset Offset of \p offset within the CTF
* @param buf Buffer
* @param offset Offset of first bit from \p buf (bits)
* @param packet_offset Offset of \p offset within the CTF
size_t offset, size_t packet_offset, size_t sz,
enum bt_btr_status *status);
size_t offset, size_t packet_offset, size_t sz,
enum bt_btr_status *status);
size_t bt_btr_continue(struct bt_btr *btr,
const uint8_t *buf, size_t sz,
enum bt_btr_status *status);
size_t bt_btr_continue(struct bt_btr *btr,
const uint8_t *buf, size_t sz,
enum bt_btr_status *status);