Skip to content

Commit

Permalink
Storage, ListRequest: md5sum calculation (#45)
Browse files Browse the repository at this point in the history
* Storage, ListRequest: md5sum calculation
* Storage options: File.md5sum size
  • Loading branch information
DrZlo13 authored Aug 8, 2023
1 parent 08a907d commit 7e011a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.19]
### Added
- Storage ListRequest message now supports md5sum calculation for each file

## [0.18]
### Added
- Loader is now able to load apps from SD card
Expand Down
1 change: 1 addition & 0 deletions storage.options
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ 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.File.md5sum max_length:32
PB_Storage.*.path max_length:255

2 changes: 2 additions & 0 deletions storage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ message File {
string name = 2;
uint32 size = 3;
bytes data = 4;
string md5sum = 5;
}

message InfoRequest {
Expand Down Expand Up @@ -41,6 +42,7 @@ message StatResponse {

message ListRequest {
string path = 1;
bool include_md5 = 2;
}

message ListResponse {
Expand Down

0 comments on commit 7e011a9

Please sign in to comment.