NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_nos.h
浏览该文件的文档.
1
7#ifndef NIM_SDK_DLL_API_NIM_NOS_H_
8#define NIM_SDK_DLL_API_NIM_NOS_H_
9
10#include "nim_nos_def.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
25NIM_SDK_DLL_API void nim_nos_init_config(const char* json_tags, nim_nos_init_config_cb_func cb, const char* json_extension, const void* user_data);
26
34
42
60NIM_SDK_DLL_API void nim_nos_download_media(const char* json_msg,
62 const void* res_user_data,
64 const void* prg_user_data);
65
73
90NIM_SDK_DLL_API void nim_nos_upload(const char* local_file,
92 const void* res_user_data,
94 const void* prg_user_data);
113NIM_SDK_DLL_API void nim_nos_upload2(const char* local_file,
114 const char* tag,
116 const void* res_user_data,
118 const void* prg_user_data);
135NIM_SDK_DLL_API void nim_nos_download(const char* nos_url,
137 const void* res_user_data,
139 const void* prg_user_data);
140
169 const char* json_extension,
171 const void* res_user_data,
173 const void* prg_user_data,
175 const void* speed_user_data,
177 const void* info_user_data);
178
207NIM_SDK_DLL_API void nim_nos_download_ex(const char* nos_url,
208 const char* json_extension,
210 const void* res_user_data,
212 const void* prg_user_data,
214 const void* speed_user_data,
216 const void* info_user_data);
217
226NIM_SDK_DLL_API void nim_nos_stop_download_ex(const char* task_id, const char* json_extension);
227
256NIM_SDK_DLL_API void nim_nos_upload_ex(const char* local_file,
257 const char* json_extension,
259 const void* res_user_data,
261 const void* prg_user_data,
263 const void* speed_user_data,
265 const void* info_user_data);
266
297NIM_SDK_DLL_API void nim_nos_upload_ex2(const char* local_file,
298 const char* tag,
299 const char* json_extension,
301 const void* res_user_data,
303 const void* prg_user_data,
305 const void* speed_user_data,
307 const void* info_user_data);
308
317NIM_SDK_DLL_API void nim_nos_stop_upload_ex(const char* task_id, const char* json_extension);
318
326
340 const char* json_extension,
342 const void* user_data);
343
350
351#ifdef __cplusplus
352};
353#endif //__cplusplus
354#endif // NIM_SDK_DLL_API_NIM_NOS_H_
#define NIM_SDK_DLL_API
Definition: nim_build_config.h:14
NIM_SDK_DLL_API void nim_nos_download_media_ex(const char *json_msg, const char *json_extension, nim_nos_download_cb_func res_cb, const void *res_user_data, nim_nos_download_prg_cb_func prg_cb, const void *prg_user_data, nim_nos_download_speed_cb_func speed_cb, const void *speed_user_data, nim_nos_download_info_cb_func info_cb, const void *info_user_data)
NIM_SDK_DLL_API void nim_nos_stop_upload_ex(const char *task_id, const char *json_extension)
NIM_SDK_DLL_API void nim_nos_set_quick_trans(int quick_trans)
NIM_SDK_DLL_API void nim_nos_reg_upload_cb(nim_nos_upload_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_nos_download_ex(const char *nos_url, const char *json_extension, nim_nos_download_cb_func res_cb, const void *res_user_data, nim_nos_download_prg_cb_func prg_cb, const void *prg_user_data, nim_nos_download_speed_cb_func speed_cb, const void *speed_user_data, nim_nos_download_info_cb_func info_cb, const void *info_user_data)
NIM_SDK_DLL_API void nim_nos_upload2(const char *local_file, const char *tag, nim_nos_upload_cb_func res_cb, const void *res_user_data, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data)
NIM_SDK_DLL_API void nim_nos_init_config(const char *json_tags, nim_nos_init_config_cb_func cb, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API void nim_nos_safeurl_to_originurl(const char *safe_url, const char *json_extension, nim_nos_safeurl_to_originurl_cb_func callback_result, const void *user_data)
NIM_SDK_DLL_API void nim_nos_upload(const char *local_file, nim_nos_upload_cb_func res_cb, const void *res_user_data, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data)
NIM_SDK_DLL_API void nim_nos_stop_download_ex(const char *task_id, const char *json_extension)
NIM_SDK_DLL_API void nim_nos_reg_download_cb(nim_nos_download_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_nos_download(const char *nos_url, nim_nos_download_cb_func res_cb, const void *res_user_data, nim_nos_download_prg_cb_func prg_cb, const void *prg_user_data)
NIM_SDK_DLL_API void nim_nos_download_media(const char *json_msg, nim_nos_download_cb_func res_cb, const void *res_user_data, nim_nos_download_prg_cb_func prg_cb, const void *prg_user_data)
NIM_SDK_DLL_API void nim_nos_stop_download_media(const char *json_msg)
NIM_SDK_DLL_API void nim_nos_upload_ex(const char *local_file, const char *json_extension, nim_nos_upload_cb_func res_cb, const void *res_user_data, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data, nim_nos_upload_speed_cb_func speed_cb, const void *speed_user_data, nim_nos_upload_info_cb_func info_cb, const void *info_user_data)
NIM_SDK_DLL_API void nim_nos_reg_custom_token_cb(nim_nos_custom_token_cb_func cb)
NIM_SDK_DLL_API void nim_nos_upload_ex2(const char *local_file, const char *tag, const char *json_extension, nim_nos_upload_cb_func res_cb, const void *res_user_data, nim_nos_upload_prg_cb_func prg_cb, const void *prg_user_data, nim_nos_upload_speed_cb_func speed_cb, const void *speed_user_data, nim_nos_upload_info_cb_func info_cb, const void *info_user_data)
NOS云存储服务 接口相关的常量函数等定义头文件
void(* nim_nos_upload_cb_func)(int rescode, const char *url, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:106
void(* nim_nos_download_speed_cb_func)(int64_t download_speed, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:82
void(* nim_nos_download_info_cb_func)(int64_t actual_download_size, int64_t download_speed, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:96
void(* nim_nos_custom_token_cb_func)(const char *url, char *token, const int length)
Definition: nim_nos_def.h:153
void(* nim_nos_safeurl_to_originurl_cb_func)(int rescode, const char *origin_url, const void *user_data)
Definition: nim_nos_def.h:144
void(* nim_nos_download_cb_func)(int rescode, const char *file_path, const char *call_id, const char *res_id, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:58
void(* nim_nos_download_prg_cb_func)(int64_t downloaded_size, int64_t file_size, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:73
void(* nim_nos_upload_prg_cb_func)(int64_t uploaded_size, int64_t file_size, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:116
void(* nim_nos_upload_speed_cb_func)(int64_t upload_speed, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:125
void(* nim_nos_upload_info_cb_func)(int64_t actual_upload_size, int64_t upload_speed, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:135
void(* nim_nos_init_config_cb_func)(enum NIMNosInitConfigResultType rescode, const char *json_result, const char *json_extension, const void *user_data)
Definition: nim_nos_def.h:38