Visibility: split graph API into public and private interfaces
[babeltrace.git] / plugins / ctf / fs / fs.h
index b3bd3544245e74a2bb1da5ce97ca6cf861c775a7..3749137d820936e71283c0ef637410e3c2e67680 100644 (file)
@@ -29,9 +29,9 @@
  */
 
 #include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/plugin/component.h>
+#include <babeltrace/component/component.h>
+#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."
 
@@ -60,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;
@@ -104,7 +106,28 @@ struct ctf_fs_component {
 };
 
 BT_HIDDEN
-enum bt_component_status ctf_fs_init(struct bt_component *source,
-               struct bt_value *params);
+enum bt_component_status ctf_fs_init(struct bt_private_component *source,
+               struct bt_value *params, void *init_method_data);
+
+BT_HIDDEN
+void ctf_fs_destroy(struct bt_private_component *component);
+
+BT_HIDDEN
+enum bt_notification_iterator_status ctf_fs_iterator_init(
+               struct bt_private_component *source,
+               struct bt_private_port *port,
+               struct bt_private_notification_iterator *it);
+
+void ctf_fs_iterator_destroy(struct bt_private_notification_iterator *it);
+
+enum bt_notification_iterator_status ctf_fs_iterator_next(
+               struct bt_private_notification_iterator *iterator);
+
+struct bt_notification *ctf_fs_iterator_get(
+               struct bt_private_notification_iterator *iterator);
+
+BT_HIDDEN
+struct bt_value *ctf_fs_query(struct bt_component_class *comp_class,
+               const char *object, struct bt_value *params);
 
 #endif /* BABELTRACE_PLUGIN_CTF_FS_H */
This page took 0.024833 seconds and 4 git commands to generate.