blob: ac9fa6c260f1646f62315d54594ef0a913cd43b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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[];
|