18 #ifndef _DW_PLATFORM_API_ERROR_CODES_H_
19 #define _DW_PLATFORM_API_ERROR_CODES_H_
23 const int yy_success = 0x00000000;
24 const int yy_e_unknown = 0x00000001;
26 const int yy_e_buffer_length_is_out_of_limit = 0x0002;
27 const int yy_e_user_not_found = 0x0003;
28 const int yy_e_channel_not_found = 0x0004;
30 const int yy_e_cloud_add_data_failed = 0x0005;
31 const int yy_e_cloud_quary_data_failed = 0x0006;
32 const int yy_e_cloud_wrong_format = 0x0007;
34 const int yy_e_empty_msg = 0x0008;
35 const int yy_e_empty_user_list = 0x0009;
36 const int yy_e_user_count_out_of_limit = 0x000a;
38 const int yy_e_no_permission = 0x000b;
39 const int yy_e_value_out_of_range = 0x000c;
40 const int yy_e_not_found = 0x000d;
42 const int yy_e_string_is_too_long = 0x000e;
44 const int yy_e_parameter_value_not_defined = 0x000f;
46 const int yy_e_can_not_open_ui = 0x0010;
48 const int yy_e_improper_channel_mic_mode = 0x0011;
51 const int yy_e_temp_audio_session_inner_exception = 0x9000;
52 const int yy_e_temp_audio_session_illegal_param = 0x9001;
53 const int yy_e_temp_audio_session_not_in_room = 0x9002;
54 const int yy_e_temp_audio_session_failed_to_leave_pre_room = 0x9003;
55 const int yy_e_temp_audio_session_failed_to_login = 0x9004;
56 const int yy_e_temp_audio_session_failed_to_create_room = 0x9005;
57 const int yy_e_temp_audio_session_failed_to_enter_room = 0x9006;
58 const int yy_e_temp_audio_session_failed_to_leave_room = 0x9007;
59 const int yy_e_temp_audio_session_failed_to_start_speak = 0x9008;
60 const int yy_e_temp_audio_session_failed_to_stop_speak = 0x9009;
61 const int yy_e_temp_audio_session_occupied_by_other_app = 0x900a;
64 const int yy_e_connect_id_is_not_exist = 0xa000;
65 const int yy_e_failed_to_send_conn_data = 0xa001;
68 const int yy_e_video_session_inner_exception = 0xb000;
69 const int yy_e_video_session_illegal_param = 0xb001;
70 const int yy_e_video_session_not_in_video_session = 0xb002;
71 const int yy_e_video_session_occupied_by_other_app = 0xb003;
72 const int yy_e_video_session_failed_to_get_camera_list = 0xb004;
73 const int yy_e_video_session_failed_to_set_camera = 0xb005;
74 const int yy_e_video_session_failed_to_start_video = 0xb006;
75 const int yy_e_video_session_failed_to_stop_video = 0xb007;
76 const int yy_e_video_session_no_video_window = 0xb008;
77 const int yy_e_video_session_bad_camera_index = 0xb009;
78 const int yy_e_video_session_is_publishing = 0xb00a;
80 const int yy_api_result_success = 0;
81 const int yy_api_register_api_failed_already_register = 0x000f0002;
82 const int yy_api_register_api_failed_time_out = 0x000f0003;
83 const int yy_api_register_api_failed_platform_not_exist = 0x000f0004;
84 const int yy_api_register_api_failed_platform_max_connect = 0x000f0005;
85 const int yy_api_register_api_failed_api_can_not_run = 0x000f0006;
86 const int yy_api_register_api_failed_api_sys_err = 0x000f0007;
87 const int yy_api_register_api_failed_platform_can_not_connected = 0x000f0008;
89 const int yy_api_release_failed_platform_exit = 0x000f0009;
90 const int yy_api_release_failed_yy_exit = 0x000f0010;
92 const int yy_api_transfer_data_failed_api_not_register_successed = 0x000f0011;
93 const int yy_api_transfer_data_failed_no_sender_state_error = 0x000f0012;
94 const int yy_api_transfer_ui_data_failed_api_not_register_successed = 0x000f0013;
95 const int yy_api_transfer_ui_data_failed_sender_state_error = 0x000f0014;
96 const int yy_api_get_channel_info_failed_api_not_register_successed = 0x000f0015;
97 const int yy_api_get_channel_info_failed_sender_state_error = 0x000f0016;
98 const int yy_api_get_user_info_failed_api_not_register_successed = 0x000f0017;
99 const int yy_api_get_user_info_failed_sender_state_error = 0x000f0018;
101 const int yy_api_pre_close_app = 0x000f0018;
103 const int yy_api_get_user_name_failed_copy_str_err = 0x000f0110;
104 const int yy_api_get_user_sign_failed_copy_str_err = 0x000f0111;
106 const int yy_api_callback_aready_exist = 0x000f0600;
107 const int yy_api_callback_not_exist = 0x000f0601;
108 const int yy_api_route_sender_error = 0x000f0602;
109 const int yy_api_callback_is_null = 0x000f0603;
111 const int yy_api_block_waite_time_out = 0x000f0700;
112 const int yy_api_block_watie_error = 0x000f0701;
113 const int yy_api_terminal_is_null = 0x000f0702;
114 const int yy_api_asyn_call_error = 0x000f0703;
115 const int yy_api_disconnect_error = 0x000f0704;
117 const int yy_api_not_connect_addon_server = 0x000f0801;
118 const int yy_api_string_is_null = 0x000f0802;
119 const int yy_api_buffer_is_too_small = 0x000f0803;
120 const int yy_api_point_is_null = 0x000f0804;
121 const int yy_api_contains_illegal_characters = 0x000f0805;
122 const int yy_api_call_interface_too_frequently = 0x000f0900;
123 const int yy_wstr_to_utf8_error =0x000f0a00;
124 const int yy_api_block_interface_is_calling = 0x000f0b00;
126 const int yy_api_file_name_is_illegal = 0x000f0c00;
128 const int yy_e_api_call_error = 0x0000F230;
129 const int yy_e_api_param_error = 0x0000F231;
130 const int yy_e_api_return_format_error = 0x0000F232;
133 const int yy_e_api_in_mike_list = 0x0000F240;
134 const int yy_e_api_out_mike_list = 0x0000F241;
137 const int yy_e_api_sub_channel_is_not_exist = 0x0000F250;
138 const int yy_e_api_already_reception_channel = 0x0000F260;
139 const int yy_e_api_too_often = 0x0000F271;
141 const int yy_e_api_already_clear_reception_channel = 0x0000F261;
142 const int yy_e_api_already_is_this_role = 0x0000F270;
143 const int yy_e_api_already_is_this_name = 0x0000F271;
147 const int yy_e_async_success = yy_success;
148 const int yy_e_async_lowbound = 0x00010000;
149 const int yy_e_async_internal = yy_e_async_lowbound + 1;
150 const int yy_e_async_failed = yy_e_async_lowbound + 2;
151 const int yy_e_async_notimpl = yy_e_async_lowbound + 3;
152 const int yy_e_async_invalidarg = yy_e_async_lowbound + 4;
153 const int yy_e_async_reducecall = yy_e_async_lowbound + 5;
154 const int yy_e_async_unexpected = yy_e_async_lowbound + 6;
155 const int yy_e_async_outofmem = yy_e_async_lowbound + 7;
156 const int yy_e_async_pending = yy_e_async_lowbound + 8;
157 const int yy_e_async_timeout = yy_e_async_lowbound + 9;
158 const int yy_e_async_sendfailed = yy_e_async_lowbound + 10;
159 const int yy_e_async_notregisterd = yy_e_async_lowbound + 11;
160 const int yy_e_async_upbound = 0x0001ffff;
166 inline bool IS_SUCCESS(
int nRet)
168 return (nRet == yy_success);
173 #endif //_DW_PLATFORM_API_ERROR_CODES_H_