Remove all remaining pieces of the legacy api from the Suunto code.
This commit is contained in:
parent
630f32ff8e
commit
92bdb5dd1e
@ -1,15 +1,6 @@
|
||||
#ifndef SUUNTO_H
|
||||
#define SUUNTO_H
|
||||
|
||||
#include "device.h"
|
||||
|
||||
#define SUUNTO_SUCCESS 0
|
||||
#define SUUNTO_ERROR -1
|
||||
#define SUUNTO_ERROR_IO -2
|
||||
#define SUUNTO_ERROR_MEMORY -3
|
||||
#define SUUNTO_ERROR_PROTOCOL -4
|
||||
#define SUUNTO_ERROR_TIMEOUT -5
|
||||
|
||||
#include "suunto_eon.h"
|
||||
#include "suunto_vyper.h"
|
||||
#include "suunto_vyper2.h"
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
#include "ringbuffer.h"
|
||||
|
||||
|
||||
int
|
||||
device_status_t
|
||||
suunto_common_extract_dives (const unsigned char data[], unsigned int begin, unsigned int end, unsigned int eop, unsigned int peek, dive_callback_t callback, void *userdata)
|
||||
{
|
||||
assert (eop >= begin && eop < end);
|
||||
@ -49,5 +49,5 @@ suunto_common_extract_dives (const unsigned char data[], unsigned int begin, uns
|
||||
|
||||
assert (data[current] == 0x82);
|
||||
|
||||
return SUUNTO_SUCCESS;
|
||||
return DEVICE_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@ -5,9 +5,10 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include "suunto.h"
|
||||
#include "device.h"
|
||||
|
||||
int suunto_common_extract_dives (const unsigned char data[], unsigned int begin, unsigned int end, unsigned int eop, unsigned int peek, dive_callback_t callback, void *userdata);
|
||||
device_status_t
|
||||
suunto_common_extract_dives (const unsigned char data[], unsigned int begin, unsigned int end, unsigned int eop, unsigned int peek, dive_callback_t callback, void *userdata);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user