commit | d95e1e90cecbb1b5d50674cd01acc13beaa9836b | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Sep 14 22:10:51 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 22 15:55:46 2021 +0000 |
tree | 64ada2693c706e1cb0ed0fce18b75acbf0d360f4 | |
parent | d744bcc81b81a440d02f4a7b21c6a58e5f5d7e36 [diff] |
pw_rpc: Simplify ServerReader/Writer Open API - Update the Reader/Writer Open function to take a single, simpler template argument. Before: RawServerWriter::Open<&ServiceNameImpl::MethodName, CalculateMethodId("MethodName")>(...) After: RawServerWriter::Open<pw_rpc::raw::ServiceName::MethodName>(...) This uses the new MethodInfo type to extract information about the RPC method, avoiding the need for the user to calculate the method ID. - Remove the CalculateMethodId() function, which is no longer necessary. This keeps method IDs as an implementation detail that is hidden from pw_rpc users. - Add tests for opening responder objects for unary RPCs. Change-Id: Ifa7cabbc35fa28986df1a2a2449695adb2d24eb2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/61060 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev