NIM PC Cross Platform SDK
nim_global.h
Go to the documentation of this file.
1
7#ifndef NIM_SDK_DLL_API_NIM_GLOBAL_H_
8#define NIM_SDK_DLL_API_NIM_GLOBAL_H_
9
10#include "nim_global_def.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
20NIM_SDK_DLL_API void nim_global_free_str_buf(char* str);
21
27NIM_SDK_DLL_API void nim_global_free_buf(void* data);
28
38NIM_SDK_DLL_API void nim_global_set_proxy(enum NIMProxyType type, const char* host, int port, const char* user, const char* password);
39
57NIM_SDK_DLL_API void nim_global_detect_proxy(enum NIMProxyType type,
58 const char* host,
59 int port,
60 const char* user,
61 const char* password,
63 const void* user_data);
64
72NIM_SDK_DLL_API void nim_global_reg_exception_report_cb(const char* json_extension, nim_sdk_exception_cb_func cb, const void* user_data);
73
89NIM_SDK_DLL_API void nim_global_get_sdk_cache_file_info_async(const char* login_id,
90 const char* file_type,
91 int64_t end_timestamp,
92 const char* json_extension,
94 const void* user_data);
95
111NIM_SDK_DLL_API void nim_global_del_sdk_cache_file_async(const char* login_id,
112 const char* file_type,
113 int64_t end_timestamp,
114 const char* json_extension,
116 const void* user_data);
117
126NIM_SDK_DLL_API void nim_global_sdk_feedback_async(const char* url, const char* json_extension, nim_sdk_feedback_cb_func cb, const void* user_data);
127
134NIM_SDK_DLL_API void nim_global_reg_sdk_db_error_cb(nim_global_sdk_db_error_cb_func cb, const void* user_data);
135
143NIM_SDK_DLL_API void nim_global_upload_sdk_log(const char* feedback_message, nim_global_upload_sdk_log_cb_func cb, const void* user_data);
144
145#ifdef __cplusplus
146};
147#endif //__cplusplus
148#endif // NIM_SDK_DLL_API_NIM_GLOBAL_H_
NIM_SDK_DLL_API void nim_global_get_sdk_cache_file_info_async(const char *login_id, const char *file_type, int64_t end_timestamp, const char *json_extension, nim_sdk_get_cache_file_info_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_upload_sdk_log(const char *feedback_message, nim_global_upload_sdk_log_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_sdk_feedback_async(const char *url, const char *json_extension, nim_sdk_feedback_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_reg_exception_report_cb(const char *json_extension, nim_sdk_exception_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_reg_sdk_db_error_cb(nim_global_sdk_db_error_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_del_sdk_cache_file_async(const char *login_id, const char *file_type, int64_t end_timestamp, const char *json_extension, nim_sdk_del_cache_file_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_free_buf(void *data)
NIM_SDK_DLL_API void nim_global_set_proxy(enum NIMProxyType type, const char *host, int port, const char *user, const char *password)
NIM_SDK_DLL_API void nim_global_detect_proxy(enum NIMProxyType type, const char *host, int port, const char *user, const char *password, nim_global_detect_proxy_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_global_free_str_buf(char *str)
辅助能力 接口相关的常量函数等定义头文件
NIMProxyType
Definition: nim_global_def.h:186
void(* nim_sdk_get_cache_file_info_cb_func)(const char *info, const void *user_data)
Definition: nim_global_def.h:120
void(* nim_global_detect_proxy_cb_func)(bool network_connect, enum NIMProxyDetectStep step, const char *json_params, const void *user_data)
Definition: nim_global_def.h:208
void(* nim_sdk_feedback_cb_func)(enum NIMResCode rescode, const void *user_data)
Definition: nim_global_def.h:136
void(* nim_sdk_exception_cb_func)(enum NIMSDKException exception, const char *log, const void *user_data)
Definition: nim_global_def.h:77
void(* nim_sdk_del_cache_file_cb_func)(enum NIMResCode rescode, const void *user_data)
Definition: nim_global_def.h:128
void(* nim_global_sdk_db_error_cb_func)(const char *error_info, const void *user_data)
Definition: nim_global_def.h:170
void(* nim_global_upload_sdk_log_cb_func)(int rescode, const void *user_data)
Definition: nim_global_def.h:178