DC_DEVICE_SET_FINGERPRINT(3) | Library Functions Manual | DC_DEVICE_SET_FINGERPRINT(3) |
dc_device_set_fingerprint
—
#include
<libdivecomputer/device.h>
dc_status_t
dc_device_set_fingerprint
(dc_device_t
*device, const unsigned char data[],
unsigned int size);
In general usage, the fingerprint is acquired (and saved) from the
first dive downloaded from a dive computer by
dc_device_foreach(3). In
subsequent openings of the device, the fingerprint is set with
dc_device_set_fingerprint
and, when a dive reports a
fingerprint matching that dive, the download exits before reporting that
dive. (The first fingerprint is saved again for subsequent invocations.) In
this way, only the newest dives are reported.
DC_STATUS_SUCCESS
if the fingerprint was
set or one of several error values on error.
January 5, 2017 | NetBSD 10.0 |