void (*packet_seek)(struct bt_stream_pos *pos,
size_t offset, int whence))
{
void (*packet_seek)(struct bt_stream_pos *pos,
size_t offset, int whence))
{
/* Should lock traversed_paths mutex here if used in multithread */
traversed_paths = g_ptr_array_new();
/* Should lock traversed_paths mutex here if used in multithread */
traversed_paths = g_ptr_array_new();
ret = nftw(path, traverse_trace_dir, 10, 0);
/* Process the array if ntfw did not return a fatal error */
ret = nftw(path, traverse_trace_dir, 10, 0);
/* Process the array if ntfw did not return a fatal error */
fprintf(stderr, "[error] Cannot open any trace for reading.\n\n");
ret = -ENOENT; /* failure */
}
fprintf(stderr, "[error] Cannot open any trace for reading.\n\n");
ret = -ENOENT; /* failure */
}