Files
fastfetch/src/fastfetch.h
T
李通洲 e0eba8ce21 Chore: run clang-format
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00

44 lines
892 B
C

#pragma once
#include "fastfetch_config.h"
#include <stdint.h>
#include <stdbool.h>
#ifdef _MSC_VER
# define __attribute__(x)
#endif
#include "common/arrayUtils.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 FFstate {
uint32_t logoWidth;
uint32_t logoHeight;
uint32_t keysHeight;
bool terminalLightTheme;
bool titleFqdn;
uint32_t dynamicInterval;
FFPlatform platform;
} FFstate;
typedef struct FFinstance {
FFconfig config;
FFstate state;
} FFinstance;
extern FFinstance instance; // Defined in `common/init.c`
extern FFModuleBaseInfo** ffModuleInfos[];