From 1e7a50db174e6389c36ef356b6a32b9b13890dec Mon Sep 17 00:00:00 2001 From: unitexe Date: Mon, 22 Dec 2025 13:23:47 -0600 Subject: A devinfod prototype - Get root - Get select u-boot environment variables - Get build info from /etc/buildinfo - Get versions from /etc/sw-versions --- proto/devinfo.proto | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 proto/devinfo.proto (limited to 'proto/devinfo.proto') diff --git a/proto/devinfo.proto b/proto/devinfo.proto new file mode 100644 index 0000000..5061ffa --- /dev/null +++ b/proto/devinfo.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package unit.info.v0; + +import "buildinfo.proto"; +import "ubootenv.proto"; +import "swversions.proto"; + +service DevInfo { + rpc GetBuildInfo (GetBuildInfoRequest) returns (GetBuildInfoResponse) {} + rpc GetRoot (GetRootRequest) returns (GetRootResponse) {} + rpc GetSwVersions (GetSwVersionsRequest) returns (GetSwVersionsResponse) {} + rpc GetUbootEnv (GetUbootEnvRequest) returns (GetUbootEnvResponse) {} +} + +message GetBuildInfoRequest {} + +message GetBuildInfoResponse { + BuildInfo info = 1; +} + +message GetRootRequest {} + +message GetRootResponse { + string root = 1; +} + +message GetSwVersionsRequest {} + +message GetSwVersionsResponse { + SwVersions versions = 1; +} + +message GetUbootEnvRequest {} + +message GetUbootEnvResponse { + UbootEnv env = 1; +} -- cgit v1.2.3