1DC_PARSER_SET_DATA(3) BSD Library Functions Manual DC_PARSER_SET_DATA(3)
2
4 dc_parser_set_data — assigns parse data to a dive parser
5
7 library “libdivecomputer”
8
10 #include <libdivecomputer/parser.h>
11
12 dc_status_t
13 dc_parser_set_data(dc_parser_t *parser, const unsigned char *data,
14 unsigned int size);
15
17 Assigns the binary sequence data of length size bytes to parser, which
18 was created with dc_parser_new(3). How the data is parsed depends upon
19 the values provided to dc_parser_new(3). The data usually comes from the
20 callback assigned to dc_device_foreach(3).
21
23 Returns DC_STATUS_OK on success and another code on failure.
24
26 dc_device_foreach(3), dc_parser_new(3)
27
29 The library “libdivecomputer” library was written by Jef Driesen,
30 jef@libdivecomputer.org. The manpages were written by
31 Kristaps Dzonsons, kristaps@bsd.lv.
32
33BSD January 5, 2017 BSD