mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-21 04:01:01 +03:00
26
src/plugin/errno.rs
Normal file
26
src/plugin/errno.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
pub const ERR_SUCCESS: i32 = 0;
|
||||
|
||||
// ======================================================
|
||||
// errors that will be handled by RustDesk
|
||||
|
||||
pub const ERR_RUSTDESK_HANDLE_BASE: i32 = 10000;
|
||||
|
||||
// not loaded
|
||||
pub const ERR_PLUGIN_LOAD: i32 = 10001;
|
||||
// not initialized
|
||||
pub const ERR_PLUGIN_MSG_CB: i32 = 10101;
|
||||
// invalid
|
||||
pub const ERR_CALL_INVALID_METHOD: i32 = 10201;
|
||||
pub const ERR_CALL_NOT_SUPPORTED_METHOD: i32 = 10202;
|
||||
// failed on calling
|
||||
pub const ERR_CALL_INVALID_ARGS: i32 = 10301;
|
||||
pub const ERR_PEER_ID_MISMATCH: i32 = 10302;
|
||||
|
||||
// ======================================================
|
||||
// errors that must be handled by plugin
|
||||
|
||||
pub const ERR_PLUGIN_HANDLE_BASE: i32 = 20000;
|
||||
|
||||
pub const EER_CALL_FAILED: i32 = 200021;
|
||||
pub const ERR_PEER_ON_FAILED: i32 = 30012;
|
||||
pub const ERR_PEER_OFF_FAILED: i32 = 30012;
|
||||
Reference in New Issue
Block a user