struct ctf_trace *td;
int ret;
+ /*
+ * If packet_seek is NULL, we provide our default version.
+ */
+ if (!packet_seek)
+ packet_seek = ctf_packet_seek;
+
td = g_new0(struct ctf_trace, 1);
switch (flags & O_ACCMODE) {
#include <fts.h>
#include <fcntl.h> /* For O_RDONLY */
-/* TODO ybrosseau: should be hidden in the CTF format */
-#include <babeltrace/ctf/types.h> /* for ctf_packet_seek */
-
#include <glib.h>
struct bt_context *bt_context_create(void)
ret = -1;
goto end;
}
- td = fmt->open_trace(path, O_RDONLY,
- ctf_packet_seek, NULL);
+ td = fmt->open_trace(path, O_RDONLY, NULL, NULL);
if (!td) {
fprintf(stderr, "[error] [Context] Cannot open_trace of the format %s .\n\n",
path);