Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# Regression test for #545:
# Field descriptor width automatic sizing is inaccurate with oneofs
Import("env")
env.NanopbProto("submsg_callback")
env.Object("submsg_callback.pb.c")

View file

@ -0,0 +1,23 @@
syntax = "proto2";
import "nanopb.proto";
message SubMessage3 {
required uint32 foo = 1;
}
message SubMessage2 {
oneof oneof {
SubMessage3 submsg = 1 [(nanopb).submsg_callback = true];
}
}
message SubMessage1 {
repeated SubMessage2 msgs = 1 [(nanopb).max_count = 16];
}
message MainMessage {
required SubMessage1 msg = 1;
required uint32 foo = 2;
}