Since the memory capacity of the device is unknown, a fixed size buffer could cause problems. The public API now returns the size of the downloaded data.
22 lines
560 B
C
22 lines
560 B
C
#ifndef UWATEC_MEMOMOUSE_H
|
|
#define UWATEC_MEMOMOUSE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
typedef struct memomouse memomouse;
|
|
|
|
int uwatec_memomouse_open (memomouse **device, const char* name);
|
|
|
|
int uwatec_memomouse_close (memomouse *device);
|
|
|
|
int uwatec_memomouse_read (memomouse *device, unsigned char data[], unsigned int size);
|
|
|
|
int uwatec_memomouse_extract_dives (const unsigned char data[], unsigned int size, dive_callback_t callback, void *userdata);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif /* UWATEC_MEMOMOUSE_H */
|