Global: init --format json support (#527)

This commit is contained in:
李通洲 committed 2023-09-05 15:29:46 +08:00
1 parent 2f46a77ff2
commit 14f26879de
66 files changed
+321 -153

No files matched your search

+17
View File
@@ -5,7 +5,24 @@
#include "fastfetch.h"
typedef struct FFCustomValue
{
bool printKey;
FFstrbuf key;
FFstrbuf value;
} FFCustomValue;
// Things only needed by fastfetch
typedef struct FFdata
{
FFstrbuf structure;
FFlist customValues; // List of FFCustomValue
bool loadUserConfig;
} FFdata;
bool ffParseModuleCommand(const char* type);
bool ffParseModuleOptions(const char* key, const char* value);
void ffPrepareCommandOption(FFdata* data);
void ffPrintCommandOption(FFdata* data);
#endif