X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Findex.h;h=9a10cea446e7529553a94588c296c0d867e12e28;hp=fc184e97dc74d4844b6741a90af8d8fe0cb805eb;hb=50adc26400482c07210afcda8ef1d3322f75871d;hpb=1c20f0e29cbf8627bfb1ff444572d52d6655c4e2 diff --git a/src/bin/lttng-relayd/index.h b/src/bin/lttng-relayd/index.h index fc184e97d..9a10cea44 100644 --- a/src/bin/lttng-relayd/index.h +++ b/src/bin/lttng-relayd/index.h @@ -36,7 +36,7 @@ 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; @@ -47,14 +47,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 */