2023-01-15 15:57:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "util/FFstrbuf.h"
|
|
|
|
|
#include "util/FFlist.h"
|
|
|
|
|
|
2024-07-02 10:12:26 +08:00
|
|
|
typedef struct FFPlatformSysinfo
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf name;
|
|
|
|
|
FFstrbuf release;
|
|
|
|
|
FFstrbuf version;
|
|
|
|
|
FFstrbuf architecture;
|
|
|
|
|
FFstrbuf displayVersion;
|
|
|
|
|
uint32_t pageSize;
|
|
|
|
|
} FFPlatformSysinfo;
|
|
|
|
|
|
|
|
|
|
typedef struct FFPlatform
|
|
|
|
|
{
|
2023-01-15 15:57:26 +01:00
|
|
|
FFstrbuf homeDir; // Trailing slash included
|
|
|
|
|
FFstrbuf cacheDir; // Trailing slash included
|
|
|
|
|
FFlist configDirs; // List of FFstrbuf, trailing slash included
|
|
|
|
|
FFlist dataDirs; // List of FFstrbuf, trailing slash included
|
2023-08-24 13:47:20 +08:00
|
|
|
FFstrbuf exePath; // The real path of current exe
|
2023-01-15 15:57:26 +01:00
|
|
|
|
|
|
|
|
FFstrbuf userName;
|
|
|
|
|
FFstrbuf hostName;
|
|
|
|
|
FFstrbuf userShell;
|
|
|
|
|
|
2024-07-02 10:12:26 +08:00
|
|
|
FFPlatformSysinfo sysinfo;
|
2023-01-15 15:57:26 +01:00
|
|
|
} FFPlatform;
|
|
|
|
|
|
|
|
|
|
void ffPlatformInit(FFPlatform* platform);
|
|
|
|
|
void ffPlatformDestroy(FFPlatform* platform);
|