SmartAudio/package/libs/libyunxin/lib/include/api/nim_plugin_in.h

38 lines
1.4 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @file nim_plugin_in.h
* @brief 插件接入 接口头文件
* @copyright (c) 2015-2017, NetEase Inc. All rights reserved
* @author Oleg
* @date 2015/12/28
*/
#ifndef NIM_SDK_DLL_API_NIM_PLUGIN_IN_H_
#define NIM_SDK_DLL_API_NIM_PLUGIN_IN_H_
#include "nim_sdk_dll.h"
#include "../export_headers/nim_plugin_in_def.h"
#ifdef __cplusplus
extern"C"
{
#endif
/** @fn void nim_plugin_chatroom_request_enter_async(const int64_t room_id, const char *json_extension, nim_plugin_chatroom_request_enter_cb_func cb, const void *user_data)
* 异步获取进入聊天室的信息
* @param[in] room_id 聊天室ID
* @param[in] json_extension json扩展参数备用目前不需要
* @param[in] cb 回调函数, 定义见nim_plugin_in_def.h
* @param[in] user_data APP的自定义用户数据SDK只负责传回给回调函数cb不做任何处理
* @return void 无返回值
* @note 错误码 200:成功
* 414:参数错误
* 404:聊天室不存在
* 403:不允许进入该聊天室
* 415:服务不可用,没有聊天室服务器可分配
* 13003:在黑名单中
*/
NIM_SDK_DLL_API void nim_plugin_chatroom_request_enter_async(const int64_t room_id, const char *json_extension, nim_plugin_chatroom_request_enter_cb_func cb, const void *user_data);
#ifdef __cplusplus
};
#endif //__cplusplus
#endif //NIM_SDK_DLL_API_NIM_PLUGIN_IN_H_