fix(track-core): sync track proto fields
This commit is contained in:
@@ -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{}};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user