X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.h;h=27ae0f3df394bdacd632f9195c430295f7b4545d;hb=refs%2Ftags%2F4.3.0.1;hp=e48d21efa0c7cb626983885356b510d8c5e45357;hpb=7fd163f5a448c2f3a3ad1978a46ef3a84c6497b1;p=rocksndiamonds.git diff --git a/src/libgame/misc.h b/src/libgame/misc.h index e48d21ef..27ae0f3d 100644 --- a/src/libgame/misc.h +++ b/src/libgame/misc.h @@ -120,6 +120,8 @@ int log_2(unsigned int); boolean getTokenValueFromString(char *, char **, char **); +char *getUUID(void); + void InitCounter(void); unsigned int Counter(void); void Delay(unsigned int); @@ -146,6 +148,9 @@ char *getRealName(void); char *getFixedUserName(char *); char *getDefaultUserName(int); +char *getTimestampFromEpoch(time_t); +char *getCurrentTimestamp(void); + time_t getFileTimestampEpochSeconds(char *); char *getBasePath(char *); @@ -168,6 +173,8 @@ char *getStringToLower(const char *); void setString(char **, char *); boolean strEqual(char *, char *); boolean strEqualN(char *, char *, int); +boolean strEqualCase(char *, char *); +boolean strEqualCaseN(char *, char *, int); boolean strPrefix(char *, char *); boolean strSuffix(char *, char *); boolean strPrefixLower(char *, char *); @@ -220,6 +227,10 @@ void WriteUnusedBytesToFile(FILE *, unsigned int); #define putFileChunkBE(f,s,x) putFileChunk(f,s,x,BYTE_ORDER_BIG_ENDIAN) #define putFileChunkLE(f,s,x) putFileChunk(f,s,x,BYTE_ORDER_LITTLE_ENDIAN) +char *getUTF8FromLatin1(char *); +char *getLatin1FromUTF8(char *); +char *getEscapedJSON(char *); + char *getKeyNameFromKey(Key); char *getX11KeyNameFromKey(Key); Key getKeyFromKeyName(char *); @@ -247,6 +258,7 @@ int seekFile(File *, long, int); int getByteFromFile(File *); char *getStringFromFile(File *, char *, int); int copyFile(char *, char *); +boolean touchFile(char *); Directory *openDirectory(char *); int closeDirectory(Directory *);