<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-04-03 9:13 GMT+02:00 Jef Driesen <span dir="ltr"><<a href="mailto:jef@libdivecomputer.org" target="_blank">jef@libdivecomputer.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span></span><br>
The dc_parser_new() function requires a valid device handle. In this offline parsing scenario, you don't have that. That's a shortcoming which is already on my todo list:<br>
<br>
The dive callback of the dc_device_foreach() function will be changed to no longer return the binary data, but immediately return a parser object. The consequence is that you'll no longer need the dc_parser_new() function, except for the offline parsing scenario. For this purpose, it will be changed to take a device descriptor instead of a device handle. The raw data will also need to be passed directly to this new dc_parser_new, such that we can get rid of the silly dc_parser_set_data() function.<span><font color="#888888"><br>
<br></font></span></blockquote><div>Thanks Jeff,  I was just typing  about this point when received your mail.<br></div></div><br></div><div class="gmail_extra">Regards.<br><br></div><div class="gmail_extra">Salva<br></div></div>