New libdivecomputer code