Kernel: support JSON config

This commit is contained in:
李通洲 committed 2023-06-10 09:15:15 +08:00
1 parent 9c066e9494
commit 169785a8bb
12 files changed
+118 -38

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include "fastfetch.h"
#include "modules/kernel/option.h"
void ffPrintKernel(FFinstance* instance, FFKernelOptions* options);
void ffInitKernelOptions(FFKernelOptions* options);
bool ffParseKernelCommandOptions(FFKernelOptions* options, const char* key, const char* value);
void ffDestroyKernelOptions(FFKernelOptions* options);
#ifdef FF_HAVE_JSONC
#include "common/config.h"
bool ffParseKernelJsonObject(FFinstance* instance, const char* type, JSONCData* data, json_object* module);
#endif