Libdivecomputer: start actually importing the dive data

So this actually reports the dive data that libdivecomputer generates.
It doesn't import special events etc, but neither do we for the xml
importer.

It is also slow as heck, since it doesn't try to do the "hey, I already
have this dive" logic and always imports everything, but the basics are
definitely there.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-12 13:25:05 -07:00
parent aa416e3c96
commit 42f627b8b1
5 changed files with 50 additions and 29 deletions

2
main.c
View file

@ -37,7 +37,7 @@ static int sortfn(const void *_a, const void *_b)
* This doesn't really report anything at all. We just sort the
* dives, the GUI does the reporting
*/
static void report_dives(void)
void report_dives(void)
{
int i;