Files
fastfetch/src/fastfetch.h
T

46 lines
977 B
C
Raw Normal View History

2021-02-18 22:25:36 +01:00
#pragma once
2022-06-18 14:25:31 +02:00
#include "fastfetch_config.h"
2021-02-18 22:25:36 +01:00
#include <stdint.h>
#include <stdbool.h>
2023-08-14 20:00:04 +08:00
2026-06-02 10:59:18 +08:00
#include "common/arrutil.h"
2026-01-06 09:48:38 +08:00
#include "common/FFstrbuf.h"
#include "common/FFlist.h"
#include "common/FFPlatform.h"
#include "common/unused.h"
2021-04-09 14:07:05 +02:00
#include "options/logo.h"
2023-10-26 10:26:15 +08:00
#include "options/display.h"
#include "options/general.h"
2021-11-09 15:14:25 +01:00
2026-03-29 09:28:49 +08:00
typedef struct FFconfig {
2023-10-25 14:43:46 +08:00
FFOptionsLogo logo;
2023-10-26 10:26:15 +08:00
FFOptionsDisplay display;
FFOptionsGeneral general;
2021-02-27 18:30:05 +01:00
} FFconfig;
2021-02-19 16:23:41 +01:00
2026-05-22 16:47:55 +08:00
typedef struct FFLogoLineCacheState {
FFlist lines;
uint32_t nextLine;
uint32_t rightOffset;
} FFLogoLineCacheState;
2026-03-29 09:28:49 +08:00
typedef struct FFstate {
2022-04-06 14:02:05 +02:00
uint32_t logoWidth;
2022-04-02 14:35:43 +02:00
uint32_t logoHeight;
uint32_t keysHeight;
bool titleFqdn;
uint32_t dynamicInterval;
FFPlatform platform;
2026-05-22 16:47:55 +08:00
FFLogoLineCacheState logoLineCache;
2021-06-20 21:04:55 +02:00
} FFstate;
2026-03-29 09:28:49 +08:00
typedef struct FFinstance {
2021-06-20 21:04:55 +02:00
FFconfig config;
FFstate state;
} FFinstance;
extern FFinstance instance; // Defined in `common/init.c`
extern FFModuleBaseInfo** ffModuleInfos[];