2023-08-17 16:00:24 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2023-08-29 11:13:55 +08:00
|
|
|
// Things only needed by fastfetch
|
|
|
|
|
typedef struct FFdata
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf structure;
|
2026-01-15 10:35:01 +08:00
|
|
|
FFstrbuf structureDisabled;
|
2023-11-16 16:41:08 +08:00
|
|
|
bool configLoaded;
|
2023-08-29 11:13:55 +08:00
|
|
|
} FFdata;
|
|
|
|
|
|
|
|
|
|
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);
|
2025-09-03 09:36:16 +08:00
|
|
|
bool ffParseModuleOptions(const char* key, const char* value);
|