2023-08-17 16:00:24 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2023-08-29 11:13:55 +08:00
|
|
|
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
|
2023-11-16 16:41:08 +08:00
|
|
|
bool configLoaded;
|
2023-08-29 11:13:55 +08:00
|
|
|
} FFdata;
|
|
|
|
|
|
2023-08-17 16:00:24 +08:00
|
|
|
bool ffParseModuleOptions(const char* key, const char* value);
|
2023-08-29 11:13:55 +08:00
|
|
|
void ffPrepareCommandOption(FFdata* data);
|
2023-10-26 15:39:28 +08:00
|
|
|
void ffPrintCommandOption(FFdata* data, yyjson_mut_doc* jsonDoc);
|
|
|
|
|
void ffMigrateCommandOptionToJsonc(FFdata* data, yyjson_mut_doc* jsonDoc);
|