X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Findex.h;h=e7f9cdbd07d98ebafacc1dfb122fb525e18778f3;hp=fc184e97dc74d4844b6741a90af8d8fe0cb805eb;hb=5c32d0aeb3f1e338ff61f9b5c865a01763a3ec4b;hpb=1c20f0e29cbf8627bfb1ff444572d52d6655c4e2 diff --git a/src/bin/lttng-relayd/index.h b/src/bin/lttng-relayd/index.h index fc184e97d..e7f9cdbd0 100644 --- a/src/bin/lttng-relayd/index.h +++ b/src/bin/lttng-relayd/index.h @@ -36,10 +36,9 @@ struct relay_index { int to_close_fd; /* Index packet data. This is the data that is written on disk. */ - struct lttng_packet_index index_data; + struct ctf_packet_index index_data; /* key1 = stream_id, key2 = net_seq_num */ - struct lttng_ht_two_u64 key; struct lttng_ht_node_two_u64 index_n; struct rcu_head rcu_node; pthread_mutex_t mutex; @@ -47,14 +46,12 @@ struct relay_index { struct relay_index *relay_index_create(uint64_t stream_id, uint64_t net_seq_num); -struct relay_index *relay_index_find(uint64_t stream_id, - uint64_t net_seq_num, struct lttng_ht *ht); -void relay_index_add(struct relay_index *index, struct lttng_ht *ht, - struct relay_index **_index); -int relay_index_write(int fd, struct relay_index *index, struct lttng_ht *ht); +struct relay_index *relay_index_find(uint64_t stream_id, uint64_t net_seq_num); +void relay_index_add(struct relay_index *index, struct relay_index **_index); +int relay_index_write(int fd, struct relay_index *index); void relay_index_free(struct relay_index *index); void relay_index_free_safe(struct relay_index *index); -void relay_index_delete(struct relay_index *index, struct lttng_ht *ht); -void relay_index_destroy_by_stream_id(uint64_t stream_id, struct lttng_ht *ht); +void relay_index_delete(struct relay_index *index); +void relay_index_destroy_by_stream_id(uint64_t stream_id); #endif /* _RELAY_INDEX_H */