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:
authorhedger <hedger@users.noreply.github.com>2022-03-30 14:17:40 +0300
committerGitHub <noreply@github.com>2022-03-30 14:17:40 +0300
commitc3f9a638f5f27fd99133cd9886ed74114b47ca31 (patch)
treec50b070e25d80a8b43faa62579462ad42aa3caf8
parentcd11b029ac21462ea8a7615126d0a29e087c2908 (diff)
Hedger/compactfw (#26)0.4
* Added backup/restore requests; added update request * Moved backup&restore to storage.proto * Fixed options for new messages
-rw-r--r--Changelog5
-rw-r--r--flipper.proto3
-rw-r--r--storage.options34
-rw-r--r--storage.proto10
-rw-r--r--system.options1
-rw-r--r--system.proto3
6 files changed, 39 insertions, 17 deletions
diff --git a/Changelog b/Changelog
index 2320586..9bb94ee 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,10 @@
# Changelog
+## [0.4]
+### Added
+- System message: UpdateRequest
+- Storage messages: BackupCreateRequest, BackupRestoreRequest
+
## [0.3]
### Fixed
- BLE disconnection after writing / erasing FLASH
diff --git a/flipper.proto b/flipper.proto
index 9aad7ba..2d05be7 100644
--- a/flipper.proto
+++ b/flipper.proto
@@ -68,6 +68,7 @@ message Main {
.PB_System.PlayAudiovisualAlertRequest system_play_audiovisual_alert_request = 38;
.PB_System.ProtobufVersionRequest system_protobuf_version_request = 39;
.PB_System.ProtobufVersionResponse system_protobuf_version_response = 40;
+ .PB_System.UpdateRequest system_update_request = 41;
.PB_Storage.InfoRequest storage_info_request = 28;
.PB_Storage.InfoResponse storage_info_response = 29;
.PB_Storage.StatRequest storage_stat_request = 24;
@@ -82,6 +83,8 @@ message Main {
.PB_Storage.Md5sumRequest storage_md5sum_request = 14;
.PB_Storage.Md5sumResponse storage_md5sum_response = 15;
.PB_Storage.RenameRequest storage_rename_request = 30;
+ .PB_Storage.BackupCreateRequest storage_backup_create_request = 42;
+ .PB_Storage.BackupRestoreRequest storage_backup_restore_request = 43;
.PB_App.StartRequest app_start_request = 16;
.PB_App.LockStatusRequest app_lock_status_request = 17;
.PB_App.LockStatusResponse app_lock_status_response = 18;
diff --git a/storage.options b/storage.options
index 479d414..fe07c54 100644
--- a/storage.options
+++ b/storage.options
@@ -1,20 +1,22 @@
-PB_Storage.File.name type:FT_POINTER
-PB_Storage.File.data type:FT_POINTER
-PB_Storage.InfoRequest.path 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
-PB_Storage.DeleteRequest.path type:FT_POINTER
-PB_Storage.MkdirRequest.path type:FT_POINTER
-PB_Storage.Md5sumRequest.path type:FT_POINTER
-PB_Storage.RenameRequest.old_path type:FT_POINTER
-PB_Storage.RenameRequest.new_path type:FT_POINTER
+PB_Storage.File.name type:FT_POINTER
+PB_Storage.File.data type:FT_POINTER
+PB_Storage.InfoRequest.path 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
+PB_Storage.DeleteRequest.path type:FT_POINTER
+PB_Storage.MkdirRequest.path type:FT_POINTER
+PB_Storage.Md5sumRequest.path type:FT_POINTER
+PB_Storage.RenameRequest.old_path type:FT_POINTER
+PB_Storage.RenameRequest.new_path type:FT_POINTER
+PB_Storage.BackupCreateRequest.archive_path type:FT_POINTER
+PB_Storage.BackupRestoreRequest.archive_path type:FT_POINTER
-PB_Storage.ListResponse.file max_count:8
+PB_Storage.ListResponse.file max_count:8
// not affected by nanopb, so server & client should keep in mind these max values
-PB_Storage.File.data max_size:512
-PB_Storage.Md5sumResponse.md5sum max_length:32
-PB_Storage.*.path max_length:255
+PB_Storage.File.data max_size:512
+PB_Storage.Md5sumResponse.md5sum max_length:32
+PB_Storage.*.path max_length:255
diff --git a/storage.proto b/storage.proto
index a293b18..0e03ebc 100644
--- a/storage.proto
+++ b/storage.proto
@@ -72,4 +72,12 @@ message Md5sumResponse {
message RenameRequest {
string old_path = 1;
string new_path = 2;
-} \ No newline at end of file
+}
+
+message BackupCreateRequest {
+ string archive_path = 1;
+}
+
+message BackupRestoreRequest {
+ string archive_path = 1;
+}
diff --git a/system.options b/system.options
index c13b6c3..e7b7187 100644
--- a/system.options
+++ b/system.options
@@ -11,4 +11,5 @@ PB_System.DateTime.day int_size:IS_8
PB_System.DateTime.month int_size:IS_8
PB_System.DateTime.year int_size:IS_16
PB_System.DateTime.weekday int_size:IS_8
+PB_System.UpdateRequest.update_folder type:FT_POINTER
diff --git a/system.proto b/system.proto
index f3ffadb..43914fe 100644
--- a/system.proto
+++ b/system.proto
@@ -64,3 +64,6 @@ message ProtobufVersionResponse {
uint32 minor = 2;
}
+message UpdateRequest {
+ string update_folder = 1;
+}