xref: /aosp_15_r20/external/nanopb-c/examples/network_server/fileproto.proto (revision c8d645cafcee3f91213d30caa0fe303887010b9b)
1// This defines protocol for a simple server that lists files.
2//
3// See also the nanopb-specific options in fileproto.options.
4
5syntax = "proto2";
6
7message ListFilesRequest {
8    optional string path = 1 [default = "/"];
9}
10
11message FileInfo {
12    required uint64 inode = 1;
13    required string name = 2;
14}
15
16message ListFilesResponse {
17    optional bool path_error = 1 [default = false];
18    repeated FileInfo file = 2;
19}
20
21