⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xhc_include.h

📁 MTK手机QQ游戏开发指南,有详细说明,只收GPRS流量费
💻 H
字号:
#ifndef _XHC_INCLUDE_H
#define _XHC_INCLUDE_H 


#include "XHC_struct.h"
#include "XHC_menu_struct.h"

//XHC_main.c
extern S8 XHC_root_path[];

//XHC_memory.c
S32 XHC_mem_app_startup(XHC_CALLBACK_PTR2 success_callback, void * para);
S32 XHC_mem_app_free(S32 mem_app_id);
#define XHC_app_alloc(mem_size) XHC_app_alloc_int((mem_size), NULL, __FILE__, __LINE__)
void *XHC_app_alloc2(S32 mem_size);
void XHC_app_free(void** ptr);
void *XHC_frm_alloc(S32 mem_size);
void XHC_frm_free(void** ptr);
void* XHC_get_tmp_buff(S32 size);
S32 XHC_app_mem_get_info(S32* curr_use, S32* curr_free, S32* max_use);

//XHC_net.c
S16 XHC_net_socket_connect(U32 ip, U16 port, XHC_CALLBACK_PTR2 soc_notify, void* para);
S32 XHC_net_socket_close(S16 soc_id);
S32 XHC_net_http_post_buffer( S8 * str_send_url, S8 *  str_send_host, S8*  str_reply_path, 
        S8*  buffer,S32 buffer_len, XHC_CALLBACK_PTR2 http_rsp_func, void*  para);
S32 XHC_net_http_post_file( S8 * str_send_url, S8 *  str_send_host, S8*  str_reply_path, 
        S8*  file_name,S32 file_name_len, XHC_CALLBACK_PTR2 http_rsp_func, void*  para);
S32 XHC_net_http_free_request_id(U8 request_id);

//XHC_other.c
extern S32 XHC_trace_buff[];
void XHC_trace(const char *fmt,...);
void XHC_trace_int(const S8 *fmt,...);
void XHC_assert_fail(char* expr, char* file, U32 line, char* fail_desc);
S32 XHC_send_msg(S32 opera, U8* phone_number, S8* sms_code, U8 send_type);
void XHC_list_data_account(FuncPtr done_func);
S32 XHC_check_in_sleep();

S8 *XHC_GetString(U16 StringId);
S8 *XHC_GetImage(U16 ImageId);
U16 XHC_ID(U16 in_id);
U16 XHC_MENU_ID(U16 in_id);

//XHC_data.c
S32 XHC_array_init(xhc_array_struct* array, S32 init_size, S32 increment, S32 is_sort);
S32 XHC_array_init2(xhc_array_struct* array, S32 init_size, S32 increment, S32 is_sort,
                       void* (*mem_alloc_func)(S32), void (*mem_free_func)(void** ));
S32 XHC_array_free(xhc_array_struct*  array);
S32 XHC_array_add(xhc_array_struct* array, void* obj);
void* XHC_array_find(xhc_array_struct* array, XHC_CALLBACK_PTR2 cmp_func, void * _para, S32 * index);
void* XHC_array_get(xhc_array_struct* array,S32 index);
S32 XHC_array_get_size(xhc_array_struct* array);
S32 XHC_array_get_bound(xhc_array_struct* array);
S32 XHC_array_get_index(xhc_array_struct* array,void* obj);
S32 XHC_array_insert(xhc_array_struct* array,void* obj,S32 index);
S32 XHC_array_delete_all(xhc_array_struct* array);
S32 XHC_array_delete(xhc_array_struct* array,S32 index);
S32 XHC_array_set(xhc_array_struct* array,void* obj,S32 index);
S32 XHC_array_move(xhc_array_struct* array,S32 from,S32 to);
S32 XHC_array_set_size(xhc_array_struct* array,S32 new_size);
S32 XHC_array_reverse(xhc_array_struct* array);

//XHC_str.c
S8* XHC_ucs2_tolower(S8 *c);
S8* XHC_ucs2_toupper(S8 *c);
S32 XHC_ucs2_strlen(const S8 *arrOut);
S32 XHC_ucs2_strcmp(const S8 *string1, const S8 *string2);
S32 XHC_ucs2_unconditional_strcmp(const S8 *string1, const S8 *string2);
S8 *XHC_ucs2_strcpy(S8 *strDestination, const S8 *strSource);
S32 XHC_ucs2_strncmp(const S8 *string1, const S8 *string2, kal_uint32 size);
S8 *XHC_ucs2_strncpy(S8 *strDestination, const S8 *strSource, kal_uint32 size);
S8 *XHC_ucs2_strcat(S8 *strDestination, const S8 *strSource);
S8 *XHC_ucs2_strcat_safe(S8 *strDestination, const S8 *strSource, S32 dest_size);
U16 *XHC_ucs2_strstr(const U16 *a, const U16 *p);
S8 *XHC_ucs2_strchr(const S8 *string,  U16 ch);
S8 *XHC_ucs2_strrchr(const S8 * string, U16 ch);
S8 *XHC_ucs2_strupr(S8 *string);
S8 *XHC_ucs2_strlwr(S8 *string);
S32 XHC_ucs2_stricmp(const S8 *str_src, const S8 *str_dst);
S32 XHC_ucs2_strnicmp(const S8 *str_src,const S8 *str_dst,kal_uint32 count);
U16 XHC_ucs2_towlower(U16 wc);
U16 XHC_ucs2_towupper(U16 wc);
S32 XHC_ucs2_wcslen(const U16 *string);
S32 XHC_ucs2_wcscmp(const U16 *str_src, const U16 *str_dst);
S32 XHC_ucs2_wcsncmp(const U16 *str_src, const U16 *str_dst, kal_uint32 count);
U16 *XHC_ucs2_wcscpy(U16 *str_dst, const U16 *str_src);
U16 *XHC_ucs2_wcsncpy(U16 *str_dst, const U16 *str_src, kal_uint32 count);
U16 *XHC_ucs2_wcscat(U16 *str_dst, const U16 *str_src);
U16 *XHC_ucs2_wcsncat(U16 *str_dst, const U16 *str_src, kal_uint32 count);
U16 *XHC_ucs2_wcsstr(const U16 *string, const U16 *str_char_set);
U16 *XHC_ucs2_wcschr(const U16 *string,  U16 ch);
U16 *XHC_ucs2_wcsrchr(const U16 * string, U16 ch);
U16 *XHC_ucs2_wcslwr(U16 *string);
U16 *XHC_ucs2_wcsupr(U16 *string);
S32 XHC_ucs2_wcsicmp(const U16 *str_src, const U16 *str_dst);
S32 XHC_ucs2_wcsnicmp(const U16 *str_src, const U16 *str_dst, kal_uint32 count);
U16 XHC_asc_str_to_ucs2_str(S8 *pOutBuffer, S8 *pInBuffer);
U16 XHC_asc_str_n_to_ucs2_str(S8 *pOutBuffer, S8 *pInBuffer, kal_uint32 len);
U16 XHC_asc_str_to_ucs2_str_ex(S8 *pOutBuffer, S8 *pInBuffer);
U16 XHC_asc_str_n_to_ucs2_str_ex(S8 *pOutBuffer, S8 *pInBuffer, kal_uint32 len);
U16 XHC_ucs2_str_to_asc_str(S8 *pOutBuffer, S8 *pInBuffer);
U16 XHC_asc_str_to_ucs2_wcs(U16 *pOutBuffer, S8 *pInBuffer);
U16 XHC_asc_str_to_ucs2_wcs_ex(U16 *dest, S8 *src, kal_uint32 *src_end_pos);
U16 XHC_asc_str_n_to_ucs2_wcs(U16 *pOutBuffer, S8 *pInBuffer, kal_uint32 len);
U16 XHC_asc_str_n_to_ucs2_wcs_ex(U16 *dest, S8 *src, kal_uint32 len, kal_uint32 *src_end_pos);
U16 XHC_ucs2_wcs_to_asc_str(S8 *pOutBuffer, U16 *pInBuffer);
U16 XHC_ucs2_wcs_n_to_asc_str(S8 *pOutBuffer, U16 *pInBuffer, kal_uint32 len);
U16 XHC_ucs2_str_n_to_asc_str(S8 *pOutBuffer, S8 *pInBuffer, kal_uint32 len);
U8 XHC_unicode_to_ucs2encoding(U16 unicode, U8 *charLength, U8 *arrOut);
U8 XHC_ucs2encoding_to_unicode(U16 *pUnicode, U8 *arr);
U16 *XHC_ucs2_strtolower(U16 *s);
S32 XHC_unicode_to_utf8_len(U16 ucs2);
S32 XHC_stricmp(S8 *s, S8 *t);
S32 XHC_strnicmp(S8 *s, S8 *t, int n);
S8 *XHC_strtolower(S8 *s);
S32 XHC_log2(kal_uint32 i);
S32 XHC_log10(kal_uint32 i);
S32 XHC_intdigits(kal_uint32 i);
S8 *XHC_ucs2_strncat(S8 *strDestination, const S8 *strSource, kal_uint32 size);
S32 XHC_atoi(U16* s);
S8 *HW_itoa(S32 value, S8 *s, S32 radix);
U16* XHC_itoa(S32 i);
S32 XHC_ucs2_sprintf(S8 *buffer, const S8 *format, ...);
S32 XHC_ucs2_sprintf2(U16* out_buffer,S32 out_buf_len, const U16 *format, ...);

//XHC ps
S32 XHC_ps_decode_file(void * in_para, U16 * file_name, xhc_ps_decode_struct* decode_list, 
                       U16 decode_list_len);
S32 XHC_ps_decode_buffer(void * in_para, S8 *in_buffer, S32 in_buf_len, 
                        xhc_ps_decode_struct* decode_list, U16 decode_list_len,  S32 offset);
S32 XHC_ps_decode_item(S8 *in_buffer,S32 in_buf_len, S8** field_list, S16* field_len_list, U16* field_count_rtn);
void XHC_ps_set_binary_format(U8 is_enable);

//XHC_gui.c
void XHC_gui_show_text(U8* text, U8* guiBuffer);
void XHC_gui_popup(S8 *string, U16 imageID);

//XHC_util.c
S32 XHC_get_disk_space(U16* disk_path, U64* disk_free_space, U64* disk_total_space);
S32 XHC_make_call_prepare(void);

//XHC_menu.c
S32 XHC_menu_init();

xhc_menu_source_state_enum XHC_menu_source_get_state(U16 source_index);
S32 XHC_menu_create_source(U16 source_index, S8* name_en, U16 source_type, S8* data, S32 data_len,
        BOOL slow_parse, BOOL hide_no_sim, U16 source_icon, BOOL is_sms_suffix, void* (*mem_alloc_func)(S32 ), void  (*mem_free_func)(void** ));
S32 XHC_menu_entry_source(U16 source_index, S8* name_en);
S32 XHC_menu_refresh_source_from_net(U16 source_index);
S32 XHC_menu_refresh_source_from_buffer(U16 source_index, S8* buffer, S32 buf_len);
S32 XHC_menu_source_free(U16 source_index);
S32 XHC_menu_source_parse(U16 source_index);
//adp
extern U16 XHC_MOD_MMI;
extern S32 XHC_data_account_id;
extern U16 XHC_timer;
extern U16 XHC_MSG_ID_APP_SOC_NOTIFY_IND;
extern U16 XHC_MSG_ID_WPS_SET_CHANNEL_REQ;
extern U16 XHC_MSG_ID_WPS_SET_CHANNEL_RSP;
extern U16 XHC_MSG_ID_WPS_UNSET_CHANNEL_REQ;
extern U16 XHC_MSG_ID_WPS_UNSET_CHANNEL_RSP;
extern U16 XHC_MSG_ID_WPS_HTTP_REQ;
extern U16 XHC_MSG_ID_WPS_HTTP_RSP; 
extern U16 XHC_MSG_ID_WPS_DL_PROGRESS_IND;
extern U16 XHC_MSG_ID_MMI_EM_STATUS_IND;
extern U16 XHC_MSG_ID_MMI_EM_START_RSP;

extern U16 XHC_MOD_WPS;
extern U16 XHC_WPS_APP_SAP;

extern U16 XHC_resource_base_id;
extern U16 XHC_menu_base_id;
extern U16 XHC_mem_asm_id;

extern U16 XHC_KEY_0;
extern U16 XHC_KEY_1;
extern U16 XHC_KEY_2;
extern U16 XHC_KEY_3;
extern U16 XHC_KEY_4;
extern U16 XHC_KEY_5;
extern U16 XHC_KEY_6;
extern U16 XHC_KEY_7;
extern U16 XHC_KEY_8;
extern U16 XHC_KEY_9;
extern U16 XHC_KEY_LSK;
extern U16 XHC_KEY_RSK;
extern U16 XHC_KEY_CSK;
extern U16 XHC_KEY_UP_ARROW;
extern U16 XHC_KEY_DOWN_ARROW;
extern U16 XHC_KEY_LEFT_ARROW;
extern U16 XHC_KEY_RIGHT_ARROW;
extern U16 XHC_KEY_SEND;
extern U16 XHC_KEY_END;
extern U16 XHC_KEY_STAR;
extern U16 XHC_KEY_POUND;
extern U16 XHC_KEY_ENTER;

extern U16 XHC_KEY_EVENT_DOWN;
extern U16 XHC_KEY_EVENT_UP;
extern U16 XHC_KEY_LONG_PRESS;
extern U16 XHC_IMG_GLOBAL_L1;
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -