summaryrefslogtreecommitdiff
path: root/block.proto
diff options
context:
space:
mode:
Diffstat (limited to 'block.proto')
-rw-r--r--block.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/block.proto b/block.proto
new file mode 100644
index 0000000..e29e9c0
--- /dev/null
+++ b/block.proto
@@ -0,0 +1,20 @@
+syntax = "proto3";
+
+package main;
+
+message Block {
+ string name = 1; // `autogenpb:sort` `autogenpb:unique`
+ uint32 major = 2;
+ uint32 minor = 3;
+ uint64 size_bytes = 4;
+ bool removable = 5;
+ bool read_only = 6;
+ string type = 7; // e.g., "disk", "part", "rom", "loop"
+ repeated string mountpoints = 8;
+}
+
+message Blocks { // `autogenpb:marshal` `autogenpb:mutex`
+ string uuid = 1; // `autogenpb:uuid:abe10848-cf2b-4440-b5a8-0aaa2ce50aad`
+ string version = 2; // `autogenpb:version:v0.0.1`
+ repeated Block Blocks = 3; // THIS MUST BE Block and then Blocks
+}