Skip to content

Commit 2622135

Browse files
authored
Merge pull request #83 from mikeller/update_from_upstream_202506
2 parents 2e6aab2 + 6dbb648 commit 2622135

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2115
-271
lines changed

contrib/android/Android.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ LOCAL_SRC_FILES := \
3939
src/divesoft_freedom_parser.c \
4040
src/divesystem_idive.c \
4141
src/divesystem_idive_parser.c \
42+
src/halcyon_symbios.c \
43+
src/halcyon_symbios_parser.c \
4244
src/hdlc.c \
4345
src/hw_frog.c \
4446
src/hw_ostc3.c \

contrib/msvc/libdivecomputer.vcxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@
207207
<ClCompile Include="..\..\src\divesoft_freedom_parser.c" />
208208
<ClCompile Include="..\..\src\divesystem_idive.c" />
209209
<ClCompile Include="..\..\src\divesystem_idive_parser.c" />
210+
<ClCompile Include="..\..\src\halcyon_symbios.c" />
211+
<ClCompile Include="..\..\src\halcyon_symbios_parser.c" />
210212
<ClCompile Include="..\..\src\hdlc.c" />
211213
<ClCompile Include="..\..\src\hw_frog.c" />
212214
<ClCompile Include="..\..\src\hw_ostc.c" />
@@ -337,6 +339,7 @@
337339
<ClInclude Include="..\..\src\diverite_nitekq.h" />
338340
<ClInclude Include="..\..\src\divesoft_freedom.h" />
339341
<ClInclude Include="..\..\src\divesystem_idive.h" />
342+
<ClInclude Include="..\..\src\halcyon_symbios.h" />
340343
<ClInclude Include="..\..\src\hdlc.h" />
341344
<ClInclude Include="..\..\src\hw_frog.h" />
342345
<ClInclude Include="..\..\src\hw_ostc.h" />

doc/man/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ MANPAGES = \
1818
dc_descriptor_get_product.3 \
1919
dc_descriptor_get_vendor.3 \
2020
dc_descriptor_get_transports.3 \
21-
dc_descriptor_iterator.3 \
21+
dc_descriptor_iterator_new.3 \
2222
dc_device_close.3 \
2323
dc_device_foreach.3 \
2424
dc_device_open.3 \

doc/man/dc_bluetooth_iterator_new.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ opened with
4444
and a
4545
.Fa descriptor
4646
usually found by searching through
47-
.Xr dc_descriptor_iterator 3 .
47+
.Xr dc_descriptor_iterator_new 3 .
4848
.Pp
4949
On returning
5050
.Dv DC_STATUS_SUCCESS

doc/man/dc_descriptor_free.3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
Frees a descriptor usually returned with
3737
.Xr dc_iterator_next 3
3838
as created with
39-
.Xr dc_descriptor_iterator 3 .
39+
.Xr dc_descriptor_iterator_new 3 .
4040
It's safe to pass
4141
.Dv NULL
4242
to this function.
4343
.Sh SEE ALSO
44-
.Xr dc_descriptor_iterator 3 ,
44+
.Xr dc_descriptor_iterator_new 3 ,
4545
.Xr dc_iterator_free 3
4646
.Sh AUTHORS
4747
The

doc/man/dc_descriptor_get_model.3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
.In libdivecomputer/descriptor.h
3232
.Ft "unsigned int"
3333
.Fo dc_descriptor_get_model
34-
.Fa "dc_descriptor_t *descriptor"
34+
.Fa "const dc_descriptor_t *descriptor"
3535
.Fc
3636
.Sh DESCRIPTION
3737
Gets the model number of a dive computer descriptor or 0 if none was
@@ -40,7 +40,7 @@ defined for the computer.
4040
.Sh RETURN VALUES
4141
This returns the model number or 0 if none exists.
4242
.Sh SEE ALSO
43-
.Xr dc_descriptor_iterator 3
43+
.Xr dc_descriptor_iterator_new 3
4444
.Sh AUTHORS
4545
The
4646
.Lb libdivecomputer

doc/man/dc_descriptor_get_product.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
.In libdivecomputer/descriptor.h
3131
.Ft "const char *"
3232
.Fo dc_descriptor_get_product
33-
.Fa "dc_descriptor_t *descriptor"
33+
.Fa "const dc_descriptor_t *descriptor"
3434
.Fc
3535
.Sh DESCRIPTION
3636
Gets the product

doc/man/dc_descriptor_get_transports.3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
.In libdivecomputer/descriptor.h
3131
.Ft "unsigned int"
3232
.Fo dc_descriptor_get_transports
33-
.Fa "dc_descriptor_t *descriptor"
33+
.Fa "const dc_descriptor_t *descriptor"
3434
.Fc
3535
.Sh DESCRIPTION
3636
Gets the transports supported by the given
3737
.Fa descriptor .
3838
The
3939
.Fa descriptor
4040
usually found by searching through
41-
.Xr dc_descriptor_iterator 3 .
41+
.Xr dc_descriptor_iterator_new 3 .
4242
.Sh RETURN VALUES
4343
Returns a union (bitwise OR) of the transports supported by the given
4444
.Fa descriptor .
@@ -59,7 +59,7 @@ if(transports & DC_TRANSPORT_USBHID) {
5959
}
6060
.Ed
6161
.Sh SEE ALSO
62-
.Xr dc_descriptor_iterator 3 .
62+
.Xr dc_descriptor_iterator_new 3 .
6363
.Sh AUTHORS
6464
The
6565
.Lb libdivecomputer

doc/man/dc_descriptor_get_vendor.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
.In libdivecomputer/descriptor.h
3131
.Ft "const char *"
3232
.Fo dc_descriptor_get_vendor
33-
.Fa "dc_descriptor_t *descriptor"
33+
.Fa "const dc_descriptor_t *descriptor"
3434
.Fc
3535
.Sh DESCRIPTION
3636
Gets the vendor

doc/man/dc_descriptor_iterator.3 renamed to doc/man/dc_descriptor_iterator_new.3

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@
2222
.Dt DC_DESCRIPTOR_ITERATOR 3
2323
.Os
2424
.Sh NAME
25-
.Nm dc_descriptor_iterator
25+
.Nm dc_descriptor_iterator_new
2626
.Nd get all supported dive computers
2727
.Sh LIBRARY
2828
.Lb libdivecomputer
2929
.Sh SYNOPSIS
3030
.In libdivecomputer/descriptor.h
3131
.Ft dc_status_t
32-
.Fo dc_descriptor_iterator
32+
.Fo dc_descriptor_iterator_new
3333
.Fa "dc_iterator_t **iterator"
34+
.Fa "dc_descriptor_t *descriptor"
3435
.Fc
3536
.Sh DESCRIPTION
3637
Gets all descriptors available to
@@ -56,7 +57,7 @@ The following iterates over all descriptors, printing the vendor, then
5657
frees the iterator.
5758
It does no error checking.
5859
.Bd -literal
59-
dc_descriptor_iterator(&iter));
60+
dc_descriptor_iterator_new(&iter, context));
6061
while (dc_iterator_next(iter, &desc) == DC_STATUS_SUCCESS) {
6162
printf("%s\en", dc_descriptor_get_vendor(desc));
6263
dc_descriptor_free(desc);

0 commit comments

Comments
 (0)