mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-16 13:27:23 +00:00
feat: remote printer, reuse fs
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
07d3cc5d15
commit
f4cc39135c
3 changed files with 106 additions and 52 deletions
|
|
@ -69,10 +69,6 @@ message OSLogin {
|
|||
string password = 2;
|
||||
}
|
||||
|
||||
message ClientFeature {
|
||||
bool printer = 1;
|
||||
}
|
||||
|
||||
message LoginRequest {
|
||||
string username = 1;
|
||||
bytes password = 2;
|
||||
|
|
@ -457,6 +453,12 @@ message FileTransferSendRequest {
|
|||
string path = 2;
|
||||
bool include_hidden = 3;
|
||||
int32 file_num = 4;
|
||||
|
||||
enum FileType {
|
||||
Generic = 0;
|
||||
Printer = 1;
|
||||
}
|
||||
FileType file_type = 5;
|
||||
}
|
||||
|
||||
message FileTransferSendConfirmRequest {
|
||||
|
|
@ -848,40 +850,6 @@ message VoiceCallResponse {
|
|||
int64 ack_timestamp = 3;
|
||||
}
|
||||
|
||||
message PrinterRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message PrinterResponse {
|
||||
int32 id = 1;
|
||||
bool accepted = 2;
|
||||
}
|
||||
|
||||
message PrinterBlock {
|
||||
int32 id = 1;
|
||||
bytes data = 2;
|
||||
bool compressed = 3;
|
||||
}
|
||||
|
||||
message PrinterDone {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message PrinterError {
|
||||
int32 id = 1;
|
||||
string error = 2;
|
||||
}
|
||||
|
||||
message Printer {
|
||||
oneof union {
|
||||
PrinterRequest printer_request = 1;
|
||||
PrinterResponse printer_response = 2;
|
||||
PrinterBlock printer_block = 3;
|
||||
PrinterDone printer_done = 4;
|
||||
PrinterError printer_error = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message Message {
|
||||
oneof union {
|
||||
SignedId signed_id = 3;
|
||||
|
|
@ -910,6 +878,5 @@ message Message {
|
|||
PointerDeviceEvent pointer_device_event = 26;
|
||||
Auth2FA auth_2fa = 27;
|
||||
MultiClipboards multi_clipboards = 28;
|
||||
Printer printer = 29;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue