diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/fastfetch.h | |
Add the files
Diffstat (limited to 'src/fastfetch.h')
| -rw-r--r-- | src/fastfetch.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/fastfetch.h b/src/fastfetch.h new file mode 100644 index 0000000..ac9fa6c --- /dev/null +++ b/src/fastfetch.h @@ -0,0 +1,46 @@ +#pragma once + +#include "fastfetch_config.h" + +#include <stdint.h> +#include <stdbool.h> + +#include "common/arrutil.h" +#include "common/FFstrbuf.h" +#include "common/FFlist.h" +#include "common/FFPlatform.h" +#include "common/unused.h" + +#include "options/logo.h" +#include "options/display.h" +#include "options/general.h" + +typedef struct FFconfig { + FFOptionsLogo logo; + FFOptionsDisplay display; + FFOptionsGeneral general; +} FFconfig; + +typedef struct FFLogoLineCacheState { + FFlist lines; + uint32_t nextLine; + uint32_t rightOffset; +} FFLogoLineCacheState; + +typedef struct FFstate { + uint32_t logoWidth; + uint32_t logoHeight; + uint32_t keysHeight; + bool terminalLightTheme; + bool titleFqdn; + uint32_t dynamicInterval; + FFPlatform platform; + FFLogoLineCacheState logoLineCache; +} FFstate; + +typedef struct FFinstance { + FFconfig config; + FFstate state; +} FFinstance; +extern FFinstance instance; // Defined in `common/init.c` +extern FFModuleBaseInfo** ffModuleInfos[]; |