feat: add cb for ffi

This commit is contained in:
Kingtous
2023-04-28 15:09:45 +08:00
parent 952598af25
commit 5c0f249390
3 changed files with 38 additions and 14 deletions

View File

@@ -17,6 +17,8 @@ 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;
// no handlers on calling
pub const ERR_NOT_HANDLED: i32 = 10401;
// ======================================================
// errors that should be handled by the plugin