This change moves the base Service class to pw_rpc's public API and adds
a source_set that provides service.h separately to the rest of RPC. This
is done to allow creating APIs to globally register services without
having to pull in the entirety of pw_rpc (and potentially creating
dependency cycles).
Change-Id: I80eb34ed35b74caffb71444a59ee05eff5bc8fba
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/15360
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
This change adds a protoc plugin which generates service code for pw_rpc
using nanopb as the protobuf implementation. Only the plugin code is
added here; it is not yet integrated into the build system.
Change-Id: Ia24bb5d130bf54c7afb41af2bca7f346e14bed9b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12941
Commit-Queue: Alexei Frolov <frolv@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>