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
14
extern
"C"
{
15
#endif
17
enum
NIMAppDataType
{
19
kNIMAppDataTypeUnknownOtherRes
= 0,
21
kNIMAppDataTypeImage
= 1,
23
kNIMAppDataTypeAudio
= 2,
25
kNIMAppDataTypeVideo
= 3,
26
};
27
32
static
const
char
*
kNIMTransAudioKeyMime
=
"mime"
;
34
static
const
char
*
kNIMTransAudioKeySample
=
"samp"
;
36
static
const
char
*
kNIMTransAudioKeyAudioUrl
=
"url"
;
38
static
const
char
*
kNIMTransAudioKeyDuration
=
"dur"
;
// Trans Audio Msg Info Keys
40
49
typedef
void (*
nim_tool_get_audio_text_cb_func
)(
int
rescode,
const
char
* text,
const
char
* json_extension,
const
void
* user_data);
50
63
typedef
void (*
nim_tool_filter_client_antispam_cb_func
)(
bool
succeed,
int
ret,
const
char
* text,
const
char
* json_extension,
const
void
* user_data);
64
71
typedef
void (*
nim_tool_sdk_log_cb_func
)(
const
char
* log_content,
const
void
* user_data);
72
79
typedef
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_
kNIMTransAudioKeyAudioUrl
static const char * kNIMTransAudioKeyAudioUrl
string 语音url
Definition:
nim_tools_def.h:36
nim_tool_get_audio_text_cb_func
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
NIMAppDataType
Definition:
nim_tools_def.h:17
kNIMAppDataTypeImage
@ kNIMAppDataTypeImage
图片消息文件
Definition:
nim_tools_def.h:21
kNIMAppDataTypeUnknownOtherRes
@ kNIMAppDataTypeUnknownOtherRes
其他资源文件(除了消息历史文件和已知类型之外的消息数据缓存文件)
Definition:
nim_tools_def.h:19
kNIMAppDataTypeAudio
@ kNIMAppDataTypeAudio
语音消息文件
Definition:
nim_tools_def.h:23
kNIMAppDataTypeVideo
@ kNIMAppDataTypeVideo
视频消息文件
Definition:
nim_tools_def.h:25
kNIMTransAudioKeyDuration
static const char * kNIMTransAudioKeyDuration
long 语音时长,毫秒
Definition:
nim_tools_def.h:38
nim_tool_filter_client_antispam_cb_func
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
kNIMTransAudioKeySample
static const char * kNIMTransAudioKeySample
string 语音采样率
Definition:
nim_tools_def.h:34
kNIMTransAudioKeyMime
static const char * kNIMTransAudioKeyMime
string 语音类型
Definition:
nim_tools_def.h:32
nim_tool_sdk_collect_log_cb_func
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
nim_tool_sdk_log_cb_func
void(* nim_tool_sdk_log_cb_func)(const char *log_content, const void *user_data)
Definition:
nim_tools_def.h:71
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
include
nim_tools_def.h
Generated by
1.9.4