159 Commits

Author SHA1 Message Date
Jef Driesen
596af5a17b Add LGPL license headers. 2008-10-05 20:14:18 +00:00
Jef Driesen
5a570d1732 Only export functions that are part of the public api. 2008-10-03 17:34:03 +00:00
Jef Driesen
ce2f9359cb Removed the interface detection code since it is no longer required. 2008-10-03 14:56:41 +00:00
Jef Driesen
d05ff6bb09 Mark the private function as static. 2008-09-27 06:10:27 +00:00
Jef Driesen
537f8a51c1 Convert to unix style line endings. 2008-09-27 06:09:56 +00:00
Jef Driesen
ffe99a8724 Always read at least 8 bytes, because reading fewer bytes is unreliable. 2008-09-27 06:09:14 +00:00
Jef Driesen
276f45acd2 Allow the library to be compiled as C++ code.
Moved the initialization of the backend pointers to the beginning of the 
source file. Without the need for a tentative definition, the library 
can be compiled with a C++ compiler.
2008-09-03 10:16:35 +00:00
Jef Driesen
376ce23ce2 Include the public header file. 2008-09-03 10:04:13 +00:00
Jef Driesen
dfeea21c36 Add explicit casts to improve type safety. 2008-09-03 08:51:07 +00:00
Jef Driesen
599827d5a3 Improve the type safety by using the device_status_t enum. 2008-09-03 08:46:21 +00:00
Jef Driesen
9f1e100fe8 Fixed another misuse of the status codes. 2008-08-28 21:35:26 +00:00
Jef Driesen
b031d8dc2c Stop abusing status codes to return size information to the application.
When necessary, an output parameter is added to provide the size 
information. Status codes are strictly reserved for providing status 
information only.
2008-08-28 09:07:09 +00:00
Jef Driesen
d9170ad576 Implemented progress notifications for the Suunto Eon. 2008-08-19 12:59:05 +00:00
Jef Driesen
e2ec7329e6 Implemented progress notifications for the Uwatec Smart. 2008-08-19 12:36:04 +00:00
Jef Driesen
2e4026ffc4 Implemented progress notifications for the Uwatec Memomouse. 2008-08-19 11:53:25 +00:00
Jef Driesen
b884d90125 Implemented progress notifications for the Uwatec Aladin. 2008-08-19 11:37:04 +00:00
Jef Driesen
7e9a1be445 Implemented progress notifications for the Reefnet Sensus Ultra. 2008-08-19 11:24:01 +00:00
Jef Driesen
b3c1de2336 Implemented progress notifications for the Reefnet Sensus Pro. 2008-08-19 11:18:17 +00:00
Jef Driesen
dd847c5cf6 Implemented progress notifications for the Suunto D9 and Vyper2. 2008-08-19 10:17:13 +00:00
Jef Driesen
ddf43fb828 Implemented progress notifications for the Suunto Vyper. 2008-08-19 09:58:42 +00:00
Jef Driesen
1b957f2588 Added the initial support for progress notifications. 2008-08-19 09:53:07 +00:00
Jef Driesen
f467f4fd8d Automatically abort when a dive is older than the provided timestamp. 2008-08-14 10:30:33 +00:00
Jef Driesen
6306e4e625 Moved the code to extract dives to a single function. 2008-08-14 09:45:49 +00:00
Jef Driesen
5e8d18944a Moved all array reversal functions to a common file. 2008-07-30 09:03:37 +00:00
Jef Driesen
7c03ddcb15 Moved all the checksum functions to a common file. 2008-07-30 08:56:08 +00:00
Jef Driesen
eee1c4cd74 Fixed a bug in the previous commit.
The dump() function returns the size of the downloaded data, not a 
status code.
2008-07-29 18:13:03 +00:00
Jef Driesen
44e76cfa8e Implement the device_foreach() function on top of device_dump(). 2008-07-22 07:57:00 +00:00
Jef Driesen
5ae3b98d5d Implement the device_dump() function on top of device_read(). 2008-07-22 06:05:36 +00:00
Jef Driesen
16b14e55ef Allow to abort a transfer by returning FALSE from the callback. 2008-07-22 05:35:08 +00:00
Jef Driesen
4f63295802 Add a function to initialize the base class. 2008-07-22 05:31:26 +00:00
Jef Driesen
ba919d0b15 Add autotools generated files to svn:ignore property. 2008-07-18 15:01:36 +00:00
Jef Driesen
eaf10b59da Rename the device_download() function to device_dump().
The new name makes it more clear that it's not the recommended function 
to download data.
2008-07-17 05:25:53 +00:00
Jef Driesen
59b123eb5c Corrected the name of a function in the header file. 2008-07-17 05:24:58 +00:00
Jef Driesen
c40f67c557 Skip the entire header of the packet, not only the first byte. 2008-07-16 16:59:31 +00:00
Jef Driesen
a5143d8c7c Wait a small amount of time before sending the command.
Without this delay, the transfer will fail most of the time.
2008-07-10 12:25:02 +00:00
Jef Driesen
d12a44c458 Always return the size of the downloaded data. 2008-07-10 08:10:04 +00:00
Jef Driesen
8a90c18a06 Port the Oceanic Atom 2 to the new api. 2008-07-08 10:11:14 +00:00
Jef Driesen
b99a32d643 Remove all remaining pieces of the legacy api from the Uwatec code. 2008-07-08 10:06:46 +00:00
Jef Driesen
080cbffe1f Port the Uwatec Smart to the new api. 2008-07-08 10:03:51 +00:00
Jef Driesen
cf82a0a545 Port the Uwatec Memomouse to the new api. 2008-07-08 09:37:21 +00:00
Jef Driesen
644d84db7b Port the Uwatec Aladin to the new api. 2008-07-08 09:32:45 +00:00
Jef Driesen
4ec390303e Remove all remaining pieces of the legacy api from the Reefnet code. 2008-07-07 12:54:25 +00:00
Jef Driesen
f561e591b4 Port the Reefnet Sensus Ultra to the new api. 2008-07-07 12:51:29 +00:00
Jef Driesen
9548565220 Port the Reefnet Sensus Pro to the new api. 2008-07-07 12:48:47 +00:00
Jef Driesen
92bdb5dd1e Remove all remaining pieces of the legacy api from the Suunto code. 2008-07-04 21:43:09 +00:00
Jef Driesen
630f32ff8e Port the Suunto Eon to the new api. 2008-07-04 15:02:16 +00:00
Jef Driesen
d0823f6a9d Port the Suunto Vyper2 to the new api. 2008-07-04 14:10:38 +00:00
Jef Driesen
8d3c7b29b8 Port the Suunto D9 to the new api. 2008-07-04 13:47:37 +00:00
Jef Driesen
a5fb93d199 Port the Suunto Vyper to the new api. 2008-07-04 13:35:57 +00:00
Jef Driesen
ea01b66dec Added the first steps towards the implementation of the new api.
For this new api, each device will be implemented as a separate backend 
for a common interface. This will make it easier to support multiple 
devices in a single application.
2008-07-04 12:49:47 +00:00