NIM PC Cross Platform SDK
nim_tools_def.h
Go to the documentation of this file.
1
8#ifndef NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
9#define NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
10
11#include "public_defines.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
26};
27
32static const char* kNIMTransAudioKeyMime = "mime";
34static const char* kNIMTransAudioKeySample = "samp";
36static const char* kNIMTransAudioKeyAudioUrl = "url";
38static const char* kNIMTransAudioKeyDuration = "dur"; // Trans Audio Msg Info Keys
40
49typedef void (*nim_tool_get_audio_text_cb_func)(int rescode, const char* text, const char* json_extension, const void* user_data);
50
63typedef void (*nim_tool_filter_client_antispam_cb_func)(bool succeed, int ret, const char* text, const char* json_extension, const void* user_data);
64
71typedef void (*nim_tool_sdk_log_cb_func)(const char* log_content, const void* user_data);
72
79typedef void (*nim_tool_sdk_collect_log_cb_func)(char** log_files, uint64_t* length, const void* user_data);
80
81#ifdef __cplusplus
82};
83#endif //__cplusplus
84#endif // NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
static const char * kNIMTransAudioKeyAudioUrl
string 语音url
Definition: nim_tools_def.h:36
void(* nim_tool_get_audio_text_cb_func)(int rescode, const char *text, const char *json_extension, const void *user_data)
Definition: nim_tools_def.h:49
NIMAppDataType
Definition: nim_tools_def.h:17
@ kNIMAppDataTypeImage
图片消息文件
Definition: nim_tools_def.h:21
@ kNIMAppDataTypeUnknownOtherRes
其他资源文件(除了消息历史文件和已知类型之外的消息数据缓存文件)
Definition: nim_tools_def.h:19
@ kNIMAppDataTypeAudio
语音消息文件
Definition: nim_tools_def.h:23
@ kNIMAppDataTypeVideo
视频消息文件
Definition: nim_tools_def.h:25
static const char * kNIMTransAudioKeyDuration
long 语音时长,毫秒
Definition: nim_tools_def.h:38
void(* nim_tool_filter_client_antispam_cb_func)(bool succeed, int ret, const char *text, const char *json_extension, const void *user_data)
Definition: nim_tools_def.h:63
static const char * kNIMTransAudioKeySample
string 语音采样率
Definition: nim_tools_def.h:34
static const char * kNIMTransAudioKeyMime
string 语音类型
Definition: nim_tools_def.h:32
void(* nim_tool_sdk_collect_log_cb_func)(char **log_files, uint64_t *length, const void *user_data)
SDK 日志上报时用户层指定的要上报的日志文件回调
Definition: nim_tools_def.h:79
void(* nim_tool_sdk_log_cb_func)(const char *log_content, const void *user_data)
Definition: nim_tools_def.h:71
NIM SDK 及 NIM ChatRoom SDK 公用头文件