X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Fdata-stream-file.h;h=654e64f661ca057964d80f099bce1da16a0e3825;hb=f6e68e70ef9f90225e18188c4b322a90dd54989d;hp=e42890b43a224cdb57701a1cfd02cd014cddf67a;hpb=f0a9b634c286d3ee1dbad5eaffddc183d1cbfd7e;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/data-stream-file.h b/src/plugins/ctf/fs-src/data-stream-file.h index e42890b4..654e64f6 100644 --- a/src/plugins/ctf/fs-src/data-stream-file.h +++ b/src/plugins/ctf/fs-src/data-stream-file.h @@ -36,6 +36,8 @@ struct ctf_fs_component; struct ctf_fs_file; struct ctf_fs_trace; struct ctf_fs_ds_file; +struct ctf_fs_ds_file_group; +struct ctf_fs_ds_group_medops_data; struct ctf_fs_ds_file_info { /* Owned by this. */ @@ -109,6 +111,35 @@ struct ctf_fs_ds_index *ctf_fs_ds_index_create(bt_logging_level log_level, BT_HIDDEN void ctf_fs_ds_index_destroy(struct ctf_fs_ds_index *index); +/* + * Medium operations to iterate on a single ctf_fs_ds_file. + * + * The data pointer when using this must be a pointer to the ctf_fs_ds_file. + */ extern struct ctf_msg_iter_medium_ops ctf_fs_ds_file_medops; +/* + * Medium operations to iterate on the packet of a ctf_fs_ds_group. + * + * The iteration is done based on the index of the group. + * + * The data pointer when using these medops must be a pointer to a ctf_fs_ds + * group_medops_data structure. + */ +extern struct ctf_msg_iter_medium_ops ctf_fs_ds_group_medops; + +BT_HIDDEN +enum ctf_msg_iter_medium_status ctf_fs_ds_group_medops_data_create( + struct ctf_fs_ds_file_group *ds_file_group, + bt_self_message_iterator *self_msg_iter, + bt_logging_level log_level, + struct ctf_fs_ds_group_medops_data **out); + +BT_HIDDEN +void ctf_fs_ds_group_medops_data_reset(struct ctf_fs_ds_group_medops_data *data); + +BT_HIDDEN +void ctf_fs_ds_group_medops_data_destroy( + struct ctf_fs_ds_group_medops_data *data); + #endif /* CTF_FS_DS_FILE_H */