mirror of
https://github.com/rustdesk/hbb_common.git
synced 2025-07-01 23:47:24 +00:00
Feat. Remote printer.
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
1819875476
commit
07d3cc5d15
@ -69,6 +69,10 @@ message OSLogin {
|
|||||||
string password = 2;
|
string password = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ClientFeature {
|
||||||
|
bool printer = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message LoginRequest {
|
message LoginRequest {
|
||||||
string username = 1;
|
string username = 1;
|
||||||
bytes password = 2;
|
bytes password = 2;
|
||||||
@ -86,6 +90,7 @@ message LoginRequest {
|
|||||||
OSLogin os_login = 12;
|
OSLogin os_login = 12;
|
||||||
string my_platform = 13;
|
string my_platform = 13;
|
||||||
bytes hwid = 14;
|
bytes hwid = 14;
|
||||||
|
string platform_additions = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Auth2FA {
|
message Auth2FA {
|
||||||
@ -843,6 +848,40 @@ message VoiceCallResponse {
|
|||||||
int64 ack_timestamp = 3;
|
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 {
|
message Message {
|
||||||
oneof union {
|
oneof union {
|
||||||
SignedId signed_id = 3;
|
SignedId signed_id = 3;
|
||||||
@ -871,5 +910,6 @@ message Message {
|
|||||||
PointerDeviceEvent pointer_device_event = 26;
|
PointerDeviceEvent pointer_device_event = 26;
|
||||||
Auth2FA auth_2fa = 27;
|
Auth2FA auth_2fa = 27;
|
||||||
MultiClipboards multi_clipboards = 28;
|
MultiClipboards multi_clipboards = 28;
|
||||||
|
Printer printer = 29;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2378,6 +2378,10 @@ pub mod keys {
|
|||||||
pub const OPTION_FLUTTER_CURRENT_AB_NAME: &str = "current-ab-name";
|
pub const OPTION_FLUTTER_CURRENT_AB_NAME: &str = "current-ab-name";
|
||||||
pub const OPTION_ALLOW_REMOTE_CM_MODIFICATION: &str = "allow-remote-cm-modification";
|
pub const OPTION_ALLOW_REMOTE_CM_MODIFICATION: &str = "allow-remote-cm-modification";
|
||||||
|
|
||||||
|
pub const OPTION_PRINTER_INCOMING_JOB_ACTION: &str = "printer-incomming-job-action";
|
||||||
|
pub const OPTION_PRINTER_ALLOW_AUTO_PRINT: &str = "allow-printer-auto-print";
|
||||||
|
pub const OPTION_PRINTER_SELECTED_NAME: &str = "printer-selected-name";
|
||||||
|
|
||||||
// android floating window options
|
// android floating window options
|
||||||
pub const OPTION_DISABLE_FLOATING_WINDOW: &str = "disable-floating-window";
|
pub const OPTION_DISABLE_FLOATING_WINDOW: &str = "disable-floating-window";
|
||||||
pub const OPTION_FLOATING_WINDOW_SIZE: &str = "floating-window-size";
|
pub const OPTION_FLOATING_WINDOW_SIZE: &str = "floating-window-size";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user