mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
939165d4cf
Fixes: #561
30 lines
774 B
C
30 lines
774 B
C
#pragma once
|
|
|
|
#ifndef FF_INCLUDED_util_platform_FFPlatform
|
|
#define FF_INCLUDED_util_platform_FFPlatform
|
|
|
|
#include "util/FFstrbuf.h"
|
|
#include "util/FFlist.h"
|
|
|
|
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
|
|
|
|
FFstrbuf userName;
|
|
FFstrbuf hostName;
|
|
FFstrbuf userShell;
|
|
|
|
FFstrbuf systemName;
|
|
FFstrbuf systemRelease;
|
|
FFstrbuf systemVersion;
|
|
FFstrbuf systemArchitecture;
|
|
} FFPlatform;
|
|
|
|
void ffPlatformInit(FFPlatform* platform);
|
|
void ffPlatformDestroy(FFPlatform* platform);
|
|
|
|
#endif
|