fix(track-core): sync track proto fields

This commit is contained in:
2026-06-17 15:05:37 +08:00
parent 5ed07253d8
commit 7a988778f4
5 changed files with 55 additions and 6 deletions
+7
View File
@@ -17,6 +17,9 @@ struct TrackSchemeDecoder {
[[nodiscard]]
static TrackSchemeDecoder from_proto(const proto_type &proto);
[[nodiscard]]
proto_type to_proto() const;
[[nodiscard]]
expected<track_core::DecodedScheme, error_t> decode_core() const;
@@ -37,6 +40,8 @@ struct TrackSchemeMgr {
error_t err{ESP_OK};
static Add from_proto(const proto_type &proto);
[[nodiscard]]
proto_type to_proto() const;
};
struct Clear {};
@@ -52,6 +57,8 @@ struct TrackSchemeMgr {
explicit TrackSchemeMgr() = default;
static TrackSchemeMgr from_proto(const proto_type &proto);
[[nodiscard]]
proto_type to_proto() const;
std::variant<Unknown, Add, Clear> choice{Unknown{}};
};