relayd: replace uses of block FDs by the fs_handle interface
[lttng-tools.git] / src / bin / lttng-relayd / index.h
index dda5b910b5b8c8df0b88dcd1bda2fd50f9be8c66..11c0c5d0c1d82388eac3cfb7cbba2b51649ddb03 100644 (file)
@@ -26,9 +26,9 @@
 #include <common/hashtable/hashtable.h>
 #include <common/index/index.h>
 
-#include "stream-fd.h"
-
 struct relay_stream;
+struct relay_connection;
+struct lttcomm_relayd_index;
 
 struct relay_index {
        /*
@@ -46,6 +46,8 @@ struct relay_index {
 
        /* Index packet data. This is the data that is written on disk. */
        struct ctf_packet_index index_data;
+       /* Data + padding size of this packet, filled by the data thread. */
+       uint64_t total_size;
 
        bool has_index_data;
        bool flushed;
@@ -73,5 +75,9 @@ int relay_index_try_flush(struct relay_index *index);
 void relay_index_close_all(struct relay_stream *stream);
 void relay_index_close_partial_fd(struct relay_stream *stream);
 uint64_t relay_index_find_last(struct relay_stream *stream);
+int relay_index_switch_all_files(struct relay_stream *stream);
+int relay_index_set_control_data(struct relay_index *index,
+               const struct lttcomm_relayd_index *data,
+               unsigned int minor_version);
 
 #endif /* _RELAY_INDEX_H */
This page took 0.023586 seconds and 4 git commands to generate.