Logo printing: keep state and config separate

This commit is contained in:
Linus Dierheimer
2021-11-11 19:10:52 +01:00
parent 42b8182428
commit 1c8eca1010
4 changed files with 51 additions and 49 deletions
+3 -2
View File
@@ -30,12 +30,12 @@ typedef struct FFlogo
const char** names; //Null terminated
char* lines;
const char** colors; // colors[0] is used as key color
bool isFromUser;
} FFlogo;
typedef struct FFconfig
{
FFlogo* logo;
bool logoIsFromUserFile;
const FFlogo* logo;
uint16_t logoKeySpacing;
FFstrbuf separator;
@@ -121,6 +121,7 @@ typedef struct FFconfig
typedef struct FFstate
{
uint32_t logoWidth;
char* logoLinesIndex;
struct passwd* passwd;
struct utsname utsname;