feat: remote printer, reuse fs

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2025-03-22 00:13:16 +08:00
parent 07d3cc5d15
commit f4cc39135c
3 changed files with 106 additions and 52 deletions

View file

@ -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;
}
}