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

📄 xhc_include.h

📁 MTK平台QQ移植
💻 H
字号:
#ifndef _XHC_INCLUDE_H
#define _XHC_INCLUDE_H 

#include "XHC_prot.h"

//XHC_main.c
extern S8 XHC_root_path[];
extern U16 XHC_MOD_MMI;
extern S8 XHC_tmp_buff[];
extern S8 XHC_tmp_buff2[];

//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_free(void** ptr);
void *XHC_scr_alloc(S32 mem_size);
void XHC_scr_free(void** ptr);

//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);
extern S32     XHC_data_account_id;

//XHC_other.c
void XHC_trace(const char *fmt,...);
void XHC_assert_fail(char* expr, char* file, U32 line, char* fail_desc);
void XHC_send_msg(U8* phone_number, S8* sms_code);
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 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, ...);

//XHC ps
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 XHC_ps_decode_file(void * in_para, U16 * file_name, xhc_ps_decode_struct* decode_list, U16 decode_list_len);

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

#endif

⌨️ 快捷键说明

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