| 963 | return ret; |
| 964 | } |
| 965 | bool encode_cycle_input_states(pb_ostream_t *stream, const pb_field_t *field, void *const *arg) |
| 966 | { |
| 967 | proto_CyclingInputState proto_cycle; |
| 968 | for (auto &state : cycle_input_states) |
| 969 | { |
| 970 | proto_cycle.id = state.first; |
| 971 | proto_cycle.state = state.second; |
| 972 | pb_encode_tag_for_field(stream, field); |
| 973 | pb_encode_submessage(stream, proto_CyclingInputState_fields, &proto_cycle); |
| 974 | } |
| 975 | return true; |
| 976 | } |
| 977 | bool decode_toggle_input_states(pb_istream_t *stream, const pb_field_t *field, void **arg) |
| 978 | { |
| 979 | proto_ToggleInputState proto_toggle; |
nothing calls this directly
no test coverage detected