Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/flipperzero-protobuf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Prosvetova <anna@prosvetova.me>2021-11-01 19:51:08 +0300
committerGitHub <noreply@github.com>2021-11-01 19:51:08 +0300
commit0e6d374ab1a12f95a3cd04444376a261e7252db4 (patch)
tree6c8f16416137ddbc73bc87edd013ba50410af85a
parent76f43b8c6510306d40c006b696d9d1b14a252dc1 (diff)
Add storage_stat (#12)
-rw-r--r--flipper.proto2
-rw-r--r--storage.options1
-rw-r--r--storage.proto8
3 files changed, 11 insertions, 0 deletions
diff --git a/flipper.proto b/flipper.proto
index e9d9a62..f234290 100644
--- a/flipper.proto
+++ b/flipper.proto
@@ -54,6 +54,8 @@ message Main {
StopSession stop_session = 19;
.PB_Status.PingRequest ping_request = 5;
.PB_Status.PingResponse ping_response = 6;
+ .PB_Storage.StatRequest storage_stat_request = 24;
+ .PB_Storage.StatResponse storage_stat_response = 25;
.PB_Storage.ListRequest storage_list_request = 7;
.PB_Storage.ListResponse storage_list_response = 8;
.PB_Storage.ReadRequest storage_read_request = 9;
diff --git a/storage.options b/storage.options
index a0bed62..4ce438e 100644
--- a/storage.options
+++ b/storage.options
@@ -1,5 +1,6 @@
PB_Storage.File.name type:FT_POINTER
PB_Storage.File.data type:FT_POINTER
+PB_Storage.StatRequest.path type:FT_POINTER
PB_Storage.ListRequest.path type:FT_POINTER
PB_Storage.ReadRequest.path type:FT_POINTER
PB_Storage.WriteRequest.path type:FT_POINTER
diff --git a/storage.proto b/storage.proto
index d45377d..8427496 100644
--- a/storage.proto
+++ b/storage.proto
@@ -14,6 +14,14 @@ message File {
bytes data = 4;
}
+message StatRequest {
+ string path = 1;
+}
+
+message StatResponse {
+ File file = 1;
+}
+
message ListRequest {
string path = 1;
}