plugin_framework, support log callback

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-25 15:35:48 +08:00
parent ce1ce19567
commit 2051dca5b4
7 changed files with 118 additions and 51 deletions

View File

@@ -60,7 +60,8 @@ struct MsgToConfig {
/// id: The id of this plugin.
/// content: The content.
/// len: The length of the content.
pub fn cb_msg(
#[no_mangle]
pub extern "C" fn cb_msg(
peer: *const c_char,
target: *const c_char,
id: *const c_char,