X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ffs%2Ffs.h;h=2cef5fb5d06ea8fe6d3305d75b54d001fd21d4f9;hb=d3e4dcd8e7a601e0aa063455147f29fbe051582b;hp=30665a33bce881f008cf1a886d295abdd4ae5507;hpb=5b29e7995dce9ec633e05e4272ae562bb2c980c7;p=babeltrace.git diff --git a/plugins/ctf/fs/fs.h b/plugins/ctf/fs/fs.h index 30665a33..2cef5fb5 100644 --- a/plugins/ctf/fs/fs.h +++ b/plugins/ctf/fs/fs.h @@ -29,13 +29,14 @@ */ #include -#include +#include +#include "data-stream.h" -#define CTF_FS_COMPONENT_NAME "fs" #define CTF_FS_COMPONENT_DESCRIPTION \ "Component used to read a CTF trace located on a file system." -static bool ctf_fs_debug; +BT_HIDDEN +extern bool ctf_fs_debug; struct bt_notification_heap; @@ -59,6 +60,8 @@ struct ctf_fs_stream { struct bt_ctf_stream *stream; /* FIXME There should be many and ctf_fs_stream should not own them. */ struct bt_ctf_notif_iter *notif_iter; + /* A stream is assumed to be indexed. */ + struct index index; void *mmap_addr; /* Max length of chunk to mmap() when updating the current mapping. */ size_t mmap_max_len; @@ -106,4 +109,11 @@ BT_HIDDEN enum bt_component_status ctf_fs_init(struct bt_component *source, struct bt_value *params); +BT_HIDDEN +void ctf_fs_destroy(struct bt_component *component); + +BT_HIDDEN +enum bt_component_status ctf_fs_iterator_init(struct bt_component *source, + struct bt_notification_iterator *it); + #endif /* BABELTRACE_PLUGIN_CTF_FS_H */