X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf-text%2Fctf-text.c;h=a4316e8fd6d0fccf37f03fa021c2bd3a1380f5b9;hp=62cb5310092dce9dcdbbc1f28673a11bd7259bbe;hb=c716f83b53677d5f2e6a15463408f464006eafb7;hpb=06789ffdba97a7be3cceae51e97e82cc5a6c318a diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index 62cb5310..a4316e8f 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -22,8 +22,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -76,7 +76,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,15 +211,15 @@ 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); - struct ctf_stream_class *stream_class = stream->stream_class; + struct ctf_stream_declaration *stream_class = stream->stream_class; int field_nr_saved; struct ctf_event *event_class; - struct ctf_stream_event *event; + struct ctf_event_definition *event; uint64_t id; int ret; int dom_print = 0; @@ -459,7 +459,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;