Skip to content

Commit 42b1e19

Browse files
authored
Remove legacy C API [AP-1684] (#1404)
# Removal Warning This PR will be merged on **8/4/2024**. On this date the legacy C API will become unavailable, it will not be reintroduced. On or shortly after this date libsbp version v6.0.0 will be tagged and released # Description @swift-nav/devinfra Remove legacy C API including all generated code, examples, templates, and sbpg module. Remove all references to "v4" API which were lying around in a handful of places. There is no such thing as the V4 API any more, there is just the libsbp API # API compatibility Yes Legacy C API completely removed including: - Any message types in the form `struct msg_xxx_t` - Functions relating to sending or processing encoded payloads or frames - payload and frame callback types - `#define`s message types - in the form `SBP_MSG_XXX` - C++ `LegacyState` wrapper - All files under the `libsbp/legacy` directory - V4 compatibility headers for modern API in `libsbp/v4/<package.h>` ## API compatibility plan The modern API was introduce to this repository in Sep 2021. The legacy API was retained but all symbols were marked as deprecated and compile time messages were output by GCC and Clang whenever a legacy header was used In Dec 2023 the legacy was moved to a more difficult to access place. It was no longer accessible simply by include `libsbp/sbp.h` All headers were retained but even more compile time messages were added indicating that these files would be deleted in the next major version This PR is the final stage of the deprecation plan. Any users of this repository should have already converted their code to use the moden API. # JIRA Reference https://swift-nav.atlassian.net/browse/AP-1684
1 parent faba77a commit 42b1e19

File tree

1,222 files changed

+32259
-307235
lines changed

Some content is hidden

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

1,222 files changed

+32259
-307235
lines changed

c/BUILD.bazel

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -67,30 +67,6 @@ filegroup(
6767
visibility = ["//visibility:public"],
6868
)
6969

70-
SBP_LEGACY_C_SOURCES = glob(["test/legacy/auto*.c"])
71-
72-
swift_cc_test(
73-
name = "sbp-legacy-test",
74-
srcs = [
75-
"test/check_main_legacy.c",
76-
"test/check_edc.c",
77-
"test/check_sbp.c",
78-
"test/check_bitfield_macros.c",
79-
"test/check_suites_legacy.h",
80-
] + SBP_LEGACY_C_SOURCES,
81-
includes = [
82-
"include/libsbp",
83-
],
84-
copts = [
85-
"-Wno-deprecated-declarations",
86-
],
87-
type = UNIT,
88-
deps = [
89-
":sbp",
90-
"@check",
91-
],
92-
)
93-
9470
SBP_C_SOURCES = glob(["test/auto*.c"])
9571

9672
swift_cc_test(
@@ -140,22 +116,3 @@ swift_cc_test(
140116
],
141117
)
142118

143-
SBP_CPP_LEGACY_SOURCES = glob(["test/legacy/cpp/auto*.cc"])
144-
145-
swift_cc_test(
146-
name = "sbp-cpp-legacy-test",
147-
srcs = [
148-
"test/legacy/cpp/test_sbp_stdio.cc",
149-
] + SBP_CPP_LEGACY_SOURCES,
150-
data = [
151-
"test/legacy/cpp/sbp_data/gnss_data.sbp",
152-
],
153-
copts = [
154-
"-Wno-deprecated-declarations",
155-
],
156-
type = UNIT,
157-
deps = [
158-
":sbp",
159-
"@googletest//:gtest_main",
160-
],
161-
)

c/examples/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ option(BUILD_EXAMPLES "" OFF)
22

33
if(BUILD_EXAMPLES)
44
add_custom_target(examples)
5-
add_subdirectory(legacy)
65
add_subdirectory(libsbp)
76
endif()

c/examples/legacy/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

c/examples/legacy/cpp_example/CMakeLists.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

c/examples/legacy/cpp_example/README.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

c/examples/legacy/cpp_example/cpp_example.cc

Lines changed: 0 additions & 118 deletions
This file was deleted.

c/examples/legacy/example/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

c/examples/legacy/example/README.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)