X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=formats%2Fctf-text%2Fctf-text.c;h=bf028615fd301fbfd922528bed6471eb14a8474d;hb=2f5d314fe2dd003583aec6ec11ba9425f8abdcba;hp=62cb5310092dce9dcdbbc1f28673a11bd7259bbe;hpb=06789ffdba97a7be3cceae51e97e82cc5a6c318a;p=babeltrace.git diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 62cb5310..bf028615 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -76,7 +77,7 @@ enum bt_loglevel { struct trace_descriptor *ctf_text_open_trace(const char *path, int flags, - void (*packet_seek)(struct stream_pos *pos, size_t offset, + void (*packet_seek)(struct stream_pos *pos, size_t index, int whence), FILE *metadata_fp); void ctf_text_close_trace(struct trace_descriptor *descriptor); @@ -211,8 +212,8 @@ const char *print_loglevel(int value) } static -int ctf_text_write_event(struct stream_pos *ppos, - struct ctf_stream *stream) +int ctf_text_write_event(struct stream_pos *ppos, struct ctf_stream *stream) + { struct ctf_text_stream_pos *pos = container_of(ppos, struct ctf_text_stream_pos, parent); @@ -459,7 +460,7 @@ error: struct trace_descriptor *ctf_text_open_trace(const char *path, int flags, - void (*packet_seek)(struct stream_pos *pos, size_t offset, + void (*packet_seek)(struct stream_pos *pos, size_t index, int whence), FILE *metadata_fp) { struct ctf_text_stream_pos *pos;