mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 14:31:00 +01:00
JsonConfig: refactor to get rid of data-ffjson_*
This commit is contained in:
1 parent
5f52c64d4d
commit
dca9ce4b2d
37 files changed
+463
-364
No files matched your search
@@ -11,7 +11,7 @@ void ffPrintBreak(FFinstance* instance)
|
||||
}
|
||||
|
||||
#ifdef FF_HAVE_JSONC
|
||||
bool ffParseBreakJsonObject(FFinstance* instance, const char* type, FF_MAYBE_UNUSED JSONCData* data, FF_MAYBE_UNUSED json_object* module)
|
||||
bool ffParseBreakJsonObject(FFinstance* instance, const char* type, FF_MAYBE_UNUSED json_object* module)
|
||||
{
|
||||
if (strcasecmp(type, FF_BREAK_MODULE_NAME) != 0)
|
||||
return false;
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
void ffPrintBreak(FFinstance* instance);
|
||||
|
||||
#ifdef FF_HAVE_JSONC
|
||||
#include "common/config.h"
|
||||
bool ffParseBreakJsonObject(FFinstance* instance, const char* type, JSONCData* data, json_object* module);
|
||||
#include "common/jsonconfig.h"
|
||||
bool ffParseBreakJsonObject(FFinstance* instance, const char* type, json_object* module);
|
||||
#endif
|
||||
Reference in new issue
Block a user