diff options
author | LionZXY <nikita@kulikof.ru> | 2022-04-10 12:00:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 12:00:07 +0300 |
commit | 09735acede175d807fc6fd9f61a26745ae59b51e (patch) | |
tree | e8062d572b0a649a753cb430fc4a8ed2bc8b5914 | |
parent | 40aab82a0cf09adf687a7634ce1dc0bb5a7a60a2 (diff) | |
parent | 0403ae1ba7a4501274da54b3aa6274f76fdd090c (diff) |
Merge branch 'dev' into ktq/storage_appendktq/storage_append
-rw-r--r-- | .github/CODEOWNERS | 4 | ||||
-rw-r--r-- | Changelog | 36 | ||||
-rw-r--r-- | flipper.proto | 7 | ||||
-rw-r--r-- | storage.options | 34 | ||||
-rw-r--r-- | storage.proto | 8 | ||||
-rw-r--r-- | system.options | 30 | ||||
-rw-r--r-- | system.proto | 22 |
7 files changed, 108 insertions, 33 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a14b866..5ee29a4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,6 @@ # Who owns all the code by default -* @DrZlo13 @albkharisov +* @DrZlo13 @skotopes @gornekich @nminaylov # CI -.github/** @DrZlo13 @aprosvetova
\ No newline at end of file +.github/** @DrZlo13 @aprosvetova @skotopes @gornekich @nminaylov
\ No newline at end of file diff --git a/Changelog b/Changelog new file mode 100644 index 0000000..3248761 --- /dev/null +++ b/Changelog @@ -0,0 +1,36 @@ +# Changelog + +## [0.5] +### Added +- System message: PowerInfo + +## [0.4] +### Added +- System message: UpdateRequest +- Storage messages: BackupCreateRequest, BackupRestoreRequest + +## [0.3] +### Fixed +- BLE disconnection after writing / erasing FLASH + +## [0.2] +### Added +- System messages: ProtobufVersion +- Support parallel RPC sessions +- Screen streaming optimization + +## [0.1] +### Added +- Code owners +- CI setup +- System messages: Ping, Reboot, DeviceInfo, FactoryReset, DateTime, + AudiovisualAlert +- Storage messages: Info, Stat, Read, Write, Delete, Mkdir, Md5sum, + Rename +- App messages: Start, LockStatus +- Gui messages: ScreenStream, ScreenFrame, SendInput, VirtualDisplay + +## [0.0] +### Added +- Introduced Flipper Zero Protobuf repository +- StorageList messages diff --git a/flipper.proto b/flipper.proto index cd3cee9..72bf07b 100644 --- a/flipper.proto +++ b/flipper.proto @@ -66,6 +66,11 @@ message Main { .PB_System.GetDateTimeResponse system_get_datetime_response = 36; .PB_System.SetDateTimeRequest system_set_datetime_request = 37; .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_System.PowerInfoRequest system_power_info_request = 44; + .PB_System.PowerInfoResponse system_power_info_response = 45; .PB_Storage.InfoRequest storage_info_request = 28; .PB_Storage.InfoResponse storage_info_response = 29; .PB_Storage.StatRequest storage_stat_request = 24; @@ -80,6 +85,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 2647c40..a3faa16 100644 --- a/storage.proto +++ b/storage.proto @@ -74,3 +74,11 @@ message RenameRequest { string old_path = 1; string new_path = 2; } + +message BackupCreateRequest { + string archive_path = 1; +} + +message BackupRestoreRequest { + string archive_path = 1; +} diff --git a/system.options b/system.options index c13b6c3..d74cb2b 100644 --- a/system.options +++ b/system.options @@ -1,14 +1,16 @@ -PB_System.PingRequest.data type:FT_POINTER -PB_System.PingRequest.data max_size:1024 -PB_System.PingResponse.data type:FT_POINTER -PB_System.PingResponse.data max_size:1024 -PB_System.DeviceInfoResponse.key type:FT_POINTER -PB_System.DeviceInfoResponse.value type:FT_POINTER -PB_System.DateTime.hour int_size:IS_8 -PB_System.DateTime.minute int_size:IS_8 -PB_System.DateTime.second int_size:IS_8 -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.PingRequest.data type:FT_POINTER +PB_System.PingRequest.data max_size:1024 +PB_System.PingResponse.data type:FT_POINTER +PB_System.PingResponse.data max_size:1024 +PB_System.DeviceInfoResponse.key type:FT_POINTER +PB_System.DeviceInfoResponse.value type:FT_POINTER +PB_System.DateTime.hour int_size:IS_8 +PB_System.DateTime.minute int_size:IS_8 +PB_System.DateTime.second int_size:IS_8 +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 +PB_System.PowerInfoResponse.key type:FT_POINTER +PB_System.PowerInfoResponse.value type:FT_POINTER diff --git a/system.proto b/system.proto index 5483947..25d2197 100644 --- a/system.proto +++ b/system.proto @@ -54,4 +54,24 @@ message DateTime { } message PlayAudiovisualAlertRequest { -}
\ No newline at end of file +} + +message ProtobufVersionRequest { +} + +message ProtobufVersionResponse { + uint32 major = 1; + uint32 minor = 2; +} + +message UpdateRequest { + string update_folder = 1; +} + +message PowerInfoRequest { +} + +message PowerInfoResponse { + string key = 1; + string value = 2; +} |