/* Decoding configuration */
struct ctf_metadata_decoder_config {
bt_logging_level log_level;
+
+ /* Weak */
+ bt_self_component *self_comp;
+
int64_t clock_class_offset_s;
int64_t clock_class_offset_ns;
};
*/
BT_HIDDEN
struct ctf_metadata_decoder *ctf_metadata_decoder_create(
- bt_self_component_source *self_comp,
const struct ctf_metadata_decoder_config *config);
/*
*/
BT_HIDDEN
bool ctf_metadata_decoder_is_packetized(FILE *fp, int *byte_order,
- bt_logging_level log_level);
+ bt_logging_level log_level,
+ bt_self_component *self_comp);
/*
* Decodes a packetized metadata file stream to a NULL-terminated
BT_HIDDEN
int ctf_metadata_decoder_packetized_file_stream_to_buf(
FILE *fp, char **buf, int byte_order,
- bt_logging_level log_level);
+ bt_logging_level log_level,
+ bt_self_component *self_comp);
#endif /* _METADATA_DECODER_H */