commit | d249632825dd803974b846ec84759960d4bf1bb5 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Fri Sep 10 17:22:14 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 21 17:21:25 2021 +0000 |
tree | 4e9dd92463de26fcdc1aefb02d3c9ea96f518353 | |
parent | dd46587b659063d9430f6d1533545e885c0a5ac2 [diff] |
pw_rpc: Update generated code structure - Reorganize generated code to all be nested under pw_rpc::<impl>, where impl is raw, nanopb, or (eventually) pwpb. - Nest generated code under a service class rather than a service namespace. A service class allows private members, is easier to alias, and can be passed to a template that works generically with RPCs of different protobuf libraries. - Provide aliases to continue to support code using the old namespaces. - Restructure pw_rpc codegen to use an abstract base class and to share more code between Nanopb and raw. Change-Id: Ifddfac45d5112cf1df0cd65b3a4bade1aaeaad6e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/61000 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev