mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
e0eba8ce21
```bash find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i ```
38 lines
949 B
C
38 lines
949 B
C
#pragma once
|
|
|
|
#include "common/FFstrbuf.h"
|
|
#include "common/FFlist.h"
|
|
|
|
typedef struct FFPlatformSysinfo {
|
|
FFstrbuf name;
|
|
FFstrbuf release;
|
|
FFstrbuf version;
|
|
FFstrbuf architecture;
|
|
uint32_t pageSize;
|
|
} FFPlatformSysinfo;
|
|
|
|
typedef struct FFPlatform {
|
|
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
|
|
FFstrbuf exePath; // The real path of current exe (empty if unavailable)
|
|
FFstrbuf cwd; // Trailing slash included
|
|
|
|
uint32_t pid;
|
|
#ifndef _WIN32
|
|
uint32_t uid;
|
|
#else
|
|
FFstrbuf sid;
|
|
#endif
|
|
FFstrbuf userName;
|
|
FFstrbuf fullUserName;
|
|
FFstrbuf hostName;
|
|
FFstrbuf userShell;
|
|
|
|
FFPlatformSysinfo sysinfo;
|
|
} FFPlatform;
|
|
|
|
void ffPlatformInit(FFPlatform* platform);
|
|
void ffPlatformDestroy(FFPlatform* platform);
|