X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Ffs-src%2Fdata-stream-file.hpp;h=7ed41c2a667b56833af0df173649f433eb864cb1;hb=4164020e790f;hp=9bd1e501184b7a9bcdd4c93e39a76a54270a266c;hpb=087cd0f57f0f7d815a609a4e041d1200f380e4aa;p=babeltrace.git diff --git a/src/plugins/ctf/fs-src/data-stream-file.hpp b/src/plugins/ctf/fs-src/data-stream-file.hpp index 9bd1e501..7ed41c2a 100644 --- a/src/plugins/ctf/fs-src/data-stream-file.hpp +++ b/src/plugins/ctf/fs-src/data-stream-file.hpp @@ -23,74 +23,74 @@ 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. */ - GString *path; +struct ctf_fs_ds_file_info +{ + /* Owned by this. */ + GString *path; - /* Guaranteed to be set, as opposed to the index. */ - int64_t begin_ns; + /* Guaranteed to be set, as opposed to the index. */ + int64_t begin_ns; }; struct ctf_fs_metadata; -struct ctf_fs_ds_file { - bt_logging_level log_level; +struct ctf_fs_ds_file +{ + bt_logging_level log_level; - /* Weak */ - bt_self_component *self_comp; + /* Weak */ + bt_self_component *self_comp; - /* Weak */ - bt_self_message_iterator *self_msg_iter; + /* Weak */ + bt_self_message_iterator *self_msg_iter; - /* Weak */ - struct ctf_fs_metadata *metadata; + /* Weak */ + struct ctf_fs_metadata *metadata; - /* Owned by this */ - struct ctf_fs_file *file; + /* Owned by this */ + struct ctf_fs_file *file; - /* Owned by this */ - bt_stream *stream; + /* Owned by this */ + bt_stream *stream; - void *mmap_addr; + void *mmap_addr; - /* - * Max length of chunk to mmap() when updating the current mapping. - * This value must be page-aligned. - */ - size_t mmap_max_len; + /* + * Max length of chunk to mmap() when updating the current mapping. + * This value must be page-aligned. + */ + size_t mmap_max_len; - /* Length of the current mapping. Never exceeds the file's length. */ - size_t mmap_len; + /* Length of the current mapping. Never exceeds the file's length. */ + size_t mmap_len; - /* Offset in the file where the current mapping starts. */ - off_t mmap_offset_in_file; + /* Offset in the file where the current mapping starts. */ + off_t mmap_offset_in_file; - /* - * Offset, in the current mapping, of the address to return on the next - * request. - */ - off_t request_offset_in_mapping; + /* + * Offset, in the current mapping, of the address to return on the next + * request. + */ + off_t request_offset_in_mapping; }; BT_HIDDEN -struct ctf_fs_ds_file *ctf_fs_ds_file_create( - struct ctf_fs_trace *ctf_fs_trace, - bt_self_message_iterator *self_msg_iter, - bt_stream *stream, const char *path, - bt_logging_level log_level); +struct ctf_fs_ds_file *ctf_fs_ds_file_create(struct ctf_fs_trace *ctf_fs_trace, + bt_self_message_iterator *self_msg_iter, + bt_stream *stream, const char *path, + bt_logging_level log_level); BT_HIDDEN void ctf_fs_ds_file_destroy(struct ctf_fs_ds_file *stream); BT_HIDDEN -struct ctf_fs_ds_index *ctf_fs_ds_file_build_index( - struct ctf_fs_ds_file *ds_file, - struct ctf_fs_ds_file_info *ds_file_info, - struct ctf_msg_iter *msg_iter); +struct ctf_fs_ds_index *ctf_fs_ds_file_build_index(struct ctf_fs_ds_file *ds_file, + struct ctf_fs_ds_file_info *ds_file_info, + struct ctf_msg_iter *msg_iter); BT_HIDDEN struct ctf_fs_ds_index *ctf_fs_ds_index_create(bt_logging_level log_level, - bt_self_component *self_comp); + bt_self_component *self_comp); BT_HIDDEN void ctf_fs_ds_index_destroy(struct ctf_fs_ds_index *index); @@ -115,16 +115,13 @@ 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); + 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); +void ctf_fs_ds_group_medops_data_destroy(struct ctf_fs_ds_group_medops_data *data); #endif /* CTF_FS_DS_FILE_H */