RASCSI/src/raspberrypi/rascsi_interface.proto
Uwe Seimet 8cf24e7163
Feature serialization improvements (#159)
* Re-added lost code

* Avoid some potential serialization issues
2021-08-03 20:41:18 -05:00

55 lines
862 B
Protocol Buffer

syntax = "proto3";
package rascsi_interface;
// The supported device types
enum PbDeviceType {
UNDEFINED = 0;
SASI_HD = 1;
SCSI_HD = 2;
MO = 3;
CD = 4;
BR = 5;
NUVOLINK = 6;
DAYNAPORT = 7;
}
// rascsi remote operations
enum PbOperation {
NONE = 0;
LIST = 1;
ATTACH = 2;
DETACH = 3;
INSERT = 4;
EJECT = 5;
PROTECT = 6;
LOG_LEVEL = 7;
}
// Commands rascsi can execute
message PbCommand {
PbOperation cmd = 1;
int32 id = 2;
int32 un = 3;
PbDeviceType type = 4;
string params = 5;
}
// The result of a command
message PbResult {
bool status = 1;
string msg = 2;
}
// The device meta data
message PbDevice {
int32 id = 1;
int32 un = 2;
string type = 3;
string file = 4;
bool read_only = 5;
}
message PbDevices {
repeated PbDevice devices = 1;
}