📄 xos_generals_vtbl.h.svn-base
字号:
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name: xOS_Generals_VTBL.h
//Author: AnyLook
//Version: 1.0
//Date: 2008/07/31
//Description:
// xOS Include file
//Others:
//Function List:
//<Name> <desc>
//Simple
//History:
//<author> <time> <version > <desc>
// AnyLook 2008/07/31 1.0 build this moudle
//**************************************************************
#ifndef _xOS_GENERALS_VTBL_H
#define _xOS_GENERALS_VTBL_H
#include "xOS.h"
#include "xOS_general.h"
INTERFACE(Generals)
{
void (*SetRanSeed)(uint32 dwSeed);
uint32 (*GetRanNext)(void);
void (*GetRand)(byte *pDest, int nSize);
int (*GetDeviceInfo)(xOSDevInfo *pInfo);
void *(*memmove)(void *pd, const void *ps, uint32 s);
void *(*memset)(void *pd, int c, uint32 s);
// Standard String Functions...
char *(*strcpy)(char *dst, const char *src);
char *(*strcat)(char *dst, const char *src);
int (*strcmp)(const char *s1, const char *s2);
uint32 (*strlen)(const char *s);
char *(*strchr)(const char *s1, int ch);
char *(*strrchr)(const char *s1, int ch);
int (*sprintf)(char *pszDest,const char *pszFormat, ...);
// Wide String Functions...
wchar *(*wstrcpy)(wchar *pDest, const wchar *pSrc);
wchar *(*wstrcat)(wchar *pDest, const wchar *pSrc);
int (*wstrcmp)(const wchar *s1, const wchar *s2, uint32 nLen);
int (*wstrlen)(const wchar *p);
wchar *(*wstrchr)(const wchar *s1, wchar ch);
wchar *(*wstrrchr)(const wchar *s1, wchar ch);
//void (*wsprintf)(wchar *pDest, int nSize, const wchar *pFormat, ...);
// String Conversions...
wchar *(*strtowstr)(const char *pszIn, wchar *pDest, int nSize);
char *(*wstrtostr)(const wchar *pIn, char *pszDest, int nSize);
double (*wstrtofloat)(const wchar *pszNum);
boolean (*floattowstr)(double val, wchar *psz, int nSize);
boolean (*utf8towstr)(const byte *pszIn, int nLen, wchar *pszDest,
int nSizeDestBytes);
boolean (*wstrtoutf8)(const wchar *pszIn, int nLen, byte *pszDest,
int nSizeDestBytes);
void (*wstrlower)(wchar *pszDest);
void (*wstrupper)(wchar *pszDest);
// AEE/BREW version, See above for flags
//uint32 (*GetVersion)(byte *pszFormatted, int nSize, uint16 wFlags);
// ATOI
int (*atoi)(const char *psz);
// Floating point - covers issues related to floating point usage across
// ARM/THUMB
double (*f_op)(double v1, double v2,int nType);
boolean (*f_cmp)(double v1, double v2,int nType);
// Debug
void (*dbgprintf)(const char *psz,...);
uint32 (*GetTimeMS)(void);
uint32 (*GetUpTimeMS)(void);
//uint32 (*GetSeconds)(void);
void (*GetDateTime)(uint32 dwSecs, xOSDateTime *pDate);
// Applet helper function - current applet
uint32 (*strtoul)(const char *nptr, char **endptr, int base );
char *(*strncpy)(char *strDest, const char *strSource,uint32 count );
int (*strncmp)(const char *a, const char *b, uint32 length );
int (*stricmp)(const char *a, const char *b);
int (*strnicmp)(const char *a, const char *b, uint32 length);
char *(*strstr)(const char *haystack, const char *needle);
int (*memcmp)(const void *a, const void *b, uint32 length );
void *(*memchr)(const void *src, int c, uint32 length );
void *(*memcpy)(void *dst, const void *src, uint32 len);
void *(*revcpy)(void *dst, const void *src, uint32 len);
void (*strexpand)(const byte *pSrc, int nCount, wchar *pDest,int nSize);
char *(*stristr)(const char *cpszHaystack, const char *cpszNeedle);
char *(*memstr)(const char *cpHaystack, const char *cpszNeedle, uint32 nHaystackLen);
int (*wstrncmp)(const wchar *s1, const wchar *s2, uint32 nLen);
char *(*strdup)(const char *psz);
boolean (*strbegins)(const char *cpszPrefix, const char *psz);
boolean (*strends)(const char *cpszSuffic, const char *psz);
char *(*strchrend)(const char *pszSrc, char c);
char *(*strchrsend)(const char *pszSrc, const char *pszChars);
char *(*memrchr)(const char *pcSrch, int c, uint32 nLen);
char *(*memchrend)(const char *pcSrch, int c, uint32 nLen);
char *(*memrchrbegin)(const char *pcSrch, int c, uint32 nLen);
char *(*strlower)(char *psz);
char *(*strupper)(char *psz);
int (*wstricmp)(const wchar * p1, const wchar * p2);
int (*wstrnicmp)(const wchar * p1, const wchar * p2, uint32 length);
boolean (*inet_aton)(const char *pc, uint32 *pulAddr);
void (*inet_ntoa)(uint32 ulAddr, char *pc, uint32 nLen);
uint32 (*swapl)(uint32 ul);
uint16 (*swaps)(uint16 us);
// Heap/File query functions.
int (*vsprintf)(char * pszDest,const char * pszFormat, int* arg);
int32 (*vsnprintf)(char *buf, uint32 f, const char *format, int* list);
int32 (*snprintf)(char *buf, uint32 f, const char *format, ...);
// Added for 2.0
uint32 (*DateTimeToSeconds)(xOSDateTime* pDate);
uint32 (*strlcpy)(char * dst, const char * src, uint32 nSize);
uint32 (*strlcat)(char * dst, const char * src, uint32 nSize);
uint32 (*wstrlcpy)(wchar * dst, const wchar * src, uint32 nSize);
uint32 (*wstrlcat)(wchar * dst, const wchar * src, uint32 nSize);
void *(*setstaticptr)(int nSPId, void *pNew);
// Utility functions for IPV6.
int (*inet_pton)(int af, const char *src, void *dst);
const char *(*inet_ntop)(int af, const void *src, char *dst, uint32 size);
};
#endif //_xOS_GENERALS_VTBL_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -