Shell: add JSON config support

This commit is contained in:
李通洲
2023-06-01 11:37:52 +08:00
committed by 李通洲
parent fa28529308
commit 786d538276
14 changed files with 140 additions and 58 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include "fastfetch.h"
#define FF_SHELL_MODULE_NAME "Shell"
void ffPrintShell(FFinstance* instance, FFShellOptions* options);
void ffInitShellOptions(FFShellOptions* options);
bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const char* value);
void ffDestroyShellOptions(FFShellOptions* options);
#ifdef FF_HAVE_JSONC
#include "common/jsonconfig.h"
void ffParseShellJsonObject(FFinstance* instance, json_object* module);
#endif