Changeset 983561b in subsurface


Ignore:
Timestamp:
Jan 12, 2017, 2:15:53 PM (8 months ago)
Author:
Subsurface <dirk@…>
Branches:
master
Children:
48b2b3d
Parents:
70e2404
git-author:
Anton Lundin <glance@…> (12/29/16 07:02:02)
git-committer:
Subsurface <dirk@…> (01/12/17 14:15:53)
Message:

ostctools_import: Switch to using dc_parser_new2

Instead of creating the individual parsers, and keeping track of their
arguments, this just uses the "new" dc_parser_new2 function ment for
buffer parsing.

Signed-off-by: Anton Lundin <glance@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/libdivecomputer.c

    r70e2404 r983561b  
    10831083        case DC_FAMILY_UWATEC_ALADIN:
    10841084        case DC_FAMILY_UWATEC_MEMOMOUSE:
    1085                 rc = uwatec_memomouse_parser_create(&parser, data->context, 0, 0);
    1086                 break;
    10871085        case DC_FAMILY_UWATEC_SMART:
    10881086        case DC_FAMILY_UWATEC_MERIDIAN:
    1089                 rc = uwatec_smart_parser_create (&parser, data->context, dc_descriptor_get_model(data->descriptor), 0, 0);
    1090                 break;
    10911087        case DC_FAMILY_HW_OSTC:
    1092 #if defined(SSRF_CUSTOM_SERIAL)
    1093                 rc = hw_ostc_parser_create (&parser, data->context, data->deviceid, 0);
    1094 #else
    1095                 rc = hw_ostc_parser_create (&parser, data->context, data->deviceid);
    1096 #endif
    1097                 break;
    10981088        case DC_FAMILY_HW_FROG:
    10991089        case DC_FAMILY_HW_OSTC3:
    1100 #if defined(SSRF_CUSTOM_SERIAL)
    1101                 rc = hw_ostc_parser_create (&parser, data->context, data->deviceid, 1);
    1102 #else
    1103                 rc = hw_ostc_parser_create (&parser, data->context, data->deviceid);
    1104 #endif
     1090                rc = dc_parser_new2(&parser, data->context, data->descriptor, 0, 0);
    11051091                break;
    11061092        default:
Note: See TracChangeset for help on using the changeset viewer.