NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_tools.h
浏览该文件的文档.
1
8#ifndef NIM_SDK_DLL_API_NIM_TOOLS_H_
9#define NIM_SDK_DLL_API_NIM_TOOLS_H_
10
11#include "nim_tools_def.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22NIM_SDK_DLL_API const char* nim_tool_get_user_appdata_dir(const char* app_account);
23
30NIM_SDK_DLL_API const char* nim_tool_get_user_specific_appdata_dir(const char* app_account, enum NIMAppDataType appdata_type);
31
37
43
49NIM_SDK_DLL_API const char* nim_tool_get_md5(const char* input);
50
56NIM_SDK_DLL_API const char* nim_tool_get_file_md5(const char* file_path);
57
63
83NIM_SDK_DLL_API void nim_tool_get_audio_text_async(const char* json_audio_info,
84 const char* json_extension,
86 const void* user_data);
87
104 const char* replace_str,
105 const char* lib_name,
106 const char* json_extension,
108 const void* user_data);
109
117
125
126#ifdef __cplusplus
127};
128#endif //__cplusplus
129#endif // NIM_SDK_DLL_API_NIM_TOOLS_H_
#define NIM_SDK_DLL_API
Definition: nim_build_config.h:14
NIM_SDK_DLL_API const char * nim_tool_get_user_specific_appdata_dir(const char *app_account, enum NIMAppDataType appdata_type)
NIM_SDK_DLL_API const char * nim_tool_get_local_appdata_dir()
NIM_SDK_DLL_API const char * nim_tool_get_uuid()
NIM_SDK_DLL_API const char * nim_tool_get_file_md5(const char *file_path)
NIM_SDK_DLL_API void nim_tool_get_audio_text_async(const char *json_audio_info, const char *json_extension, nim_tool_get_audio_text_cb_func cb, const void *user_data)
NIM_SDK_DLL_API const char * nim_tool_get_md5(const char *input)
NIM_SDK_DLL_API const char * nim_tool_get_user_appdata_dir(const char *app_account)
NIM_SDK_DLL_API void nim_tool_reg_collect_log_callback(nim_tool_sdk_collect_log_cb_func cb, const void *user_data)
SDK 在进行日志反馈时应用层需要添加的日志文件回调
NIM_SDK_DLL_API void nim_tool_filter_client_antispam_async(const char *text, const char *replace_str, const char *lib_name, const char *json_extension, nim_tool_filter_client_antispam_cb_func cb, const void *user_data)
NIM_SDK_DLL_API const char * nim_tool_get_cur_module_dir()
NIM_SDK_DLL_API void nim_tool_reg_sdk_log_callback(nim_tool_sdk_log_cb_func cb, const void *user_data)
工具类 接口相关的常量函数等定义头文件
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
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
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